Slimshaneey
asked on
Cant get PHP files in Apache2 to run, get download page.
Hi there, been having some problems with a new install of Ubuntu 8.10 server. Basically, It was running but wouldnt report any error messages, just showing me blank pages, however simple pages without errors ran fine. So I tried uninstalling and reinstalling Apache and PHP5 and now when I run a php file i get the file download dialog in the browser. Ive tried adding the application mime type in apache2.conf but doesnt seem to want to work. Any ideas?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Followed those, still getting the download pop up. Have been completely uninstalling before each try and still not working.
You need to clean up your system and install a lamp-server as per ubuntu standard procedure:
sudo apt-get install lamp-server^
This will provide all configurations needed.
sudo apt-get install lamp-server^
This will provide all configurations needed.
ASKER
tried sudo apt-get install lamp-server^,
Didnt work :-(
Didnt work :-(
Can't help.
On a clean system, that command installs and configures a perfect lamp server. It is easier to clean your system and reinstall it, than trying to trick the whole configuration.
On a clean system, that command installs and configures a perfect lamp server. It is easier to clean your system and reinstall it, than trying to trick the whole configuration.
ASKER
How do I "clean my system"?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Still didnt work... :-(
ASKER
OK, got it working. Here is what I did.
sudo aptitude purge apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
This got rid of everything related to the lamp stack off the box.
Then I ran
sudo apt-get autoremove --purge
to get rid of any left overs or orphaned dependencies.
Then I ran
sudo apt-get install lamp-server^
Works fine now lol
Many thanks for the help though. If no one has any objections I will share out the points, majority to fmarzocca for help and patience?
sudo aptitude purge apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.0 mysql-common mysql-server mysql-server-5.0 php5-common php5-mysql
This got rid of everything related to the lamp stack off the box.
Then I ran
sudo apt-get autoremove --purge
to get rid of any left overs or orphaned dependencies.
Then I ran
sudo apt-get install lamp-server^
Works fine now lol
Many thanks for the help though. If no one has any objections I will share out the points, majority to fmarzocca for help and patience?
Glad to read you have fixed! That was exactly what I was meaning with my post ID: 24754080
ASKER
Many thanks for your help and patience guys!
sudo apt-get install lamp-server^