Solved

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

Posted on 2009-07-01
13
346 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?
0
Comment
Question by:Slimshaneey
13 Comments
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
try from a terminal:

sudo apt-get install lamp-server^
0
 
LVL 14

Assisted Solution

by:shobinsun
shobinsun earned 50 total points
Comment Utility
0
 
LVL 29

Assisted Solution

by:Michael W
Michael W earned 50 total points
Comment Utility
0
 
LVL 11

Author Comment

by:Slimshaneey
Comment Utility
Followed those, still getting the download pop up. Have been completely uninstalling before each try and still not working.
0
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
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.
0
 
LVL 11

Author Comment

by:Slimshaneey
Comment Utility
tried sudo apt-get install lamp-server^,
Didnt work :-(
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
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.
0
 
LVL 11

Author Comment

by:Slimshaneey
Comment Utility
How do I "clean my system"?
0
 
LVL 14

Accepted Solution

by:
fmarzocca earned 400 total points
Comment Utility
sudo apt-get purge apache2
sudo apt-get purge php5
sudo apt-get purge mysql-server
sudo apt-get autoremove --purge
sudo apt-get install lamp-server^
0
 
LVL 11

Author Comment

by:Slimshaneey
Comment Utility
Still didnt work... :-(
0
 
LVL 11

Author Comment

by:Slimshaneey
Comment Utility
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?
0
 
LVL 14

Expert Comment

by:fmarzocca
Comment Utility
Glad to read you have fixed! That was exactly what I was meaning with my post ID: 24754080
      
0
 
LVL 11

Author Closing Comment

by:Slimshaneey
Comment Utility
Many thanks for your help and patience guys!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now