FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


php5 installation in ubuntu





wizzit
hi there!

im having a problem in php5 installation and configuration, i installed php5 in my pc and after installation i run my apache and test a program but everytime i run a program i always encounter this problem, it automatically bring me to a dialog box asking me to open or save the program i made. how can i solve this?

Thanks for your help Very Happy
WickedGravity
Borrowed from Ubuntu's Wiki.

Installing PHP 5

To only install PHP5:

Code:
sudo aptitude install php5


If PHP4 is present on your system, also install the following

Code:
sudo aptitude install libapache2-mod-php5


Troubleshooting

Does your browser ask if you want to download the php file instead of displaying it? If Apache is not actually parsing the php after you restarted it, install libapache2-mod-php5. It is installed when you install the php5 package, but may have been removed inadvertently by packages which need to run a different version of php. You may also need to actually enable it, by doing:

Code:
sudo a2enmod php5


followed by

Code:
sudo /etc/init.d/apache2 restart
Related topics
PHP version 5.0
Ubuntu Linux blank screen on startup
UBUNTU HELP!!
Why you should not be using Ubuntu!
Which Linux distribution is the best?
php 5 PEAR installation
How to set up PEAR with my php5
Ubuntu Dapper Drake
ubuntu installation and windows
Can't login to Ubuntu!
Playing Red Alert 2 Yuri's Revenge in Ubuntu Linux or Fedora
Ubuntu Ati problem
PHP5 MySQL Config on XP
PHP5 Synfony + Ubuntu : quelqu'un a essayé ?
Reply to topic    Frihost Forum Index -> Computers -> Operating Systems

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.