I have set a local website from following here,
I have followed everything as it is but when I access my site via Mozilla Browser, it asks me where to download and save instead of displaying the index.php
Any solution?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI have set a local website from following here,
I have followed everything as it is but when I access my site via Mozilla Browser, it asks me where to download and save instead of displaying the index.php
Any solution?
By the look of the issue, it seems you've not installed PHP as it denies to view page, and downloads instead.
As I've commented, Apache doesn't come packed with PHP as it is a separate package. Installing php
package should simply fix your issue.
try
sudo apt-get install php5
apache2 doesn't come with php preinstalled. And then restart apache2
sudo service apache2 restart
sudo apt-get install php5 libapache2-mod-php5
. Installing only the php5
package is not enough, you also need to install the apache php module.
php
doesn't come packed with apache.. by looking at your question, it seems you don't have `php installed. Can you kindly add more in-detail as to what you've done so far. This will help me to assist you better. :)