FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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
Reply to topic    Frihost Forum Index -> Computers -> Operating Systems

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