We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Cant get PHP files in Apache2 to run, get download page.

Medium Priority
465 Views
Last Modified: 2013-11-15
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?
Comment
Watch Question

Fabio MarzoccaFreelancer
CERTIFIED EXPERT

Commented:
try from a terminal:

sudo apt-get install lamp-server^
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Michael WorshamCloud/Infrastructure Solutions Architect
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Followed those, still getting the download pop up. Have been completely uninstalling before each try and still not working.
Fabio MarzoccaFreelancer
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
tried sudo apt-get install lamp-server^,
Didnt work :-(
Fabio MarzoccaFreelancer
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
How do I "clean my system"?
Freelancer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Still didnt work... :-(

Author

Commented:
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?
Fabio MarzoccaFreelancer
CERTIFIED EXPERT

Commented:
Glad to read you have fixed! That was exactly what I was meaning with my post ID: 24754080
      

Author

Commented:
Many thanks for your help and patience guys!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.