Mobile app version of vmapp.org
Login or Join
Murray155

: Wordpress installation issues I Installed Wordpress under (UBUNTU)/var/www/wordpress. wp-config.php is modified as recommended. When trying to access http://x.y.z.a/wordpress/wp-admin/wp-install.php it

@Murray155

Posted in: #WebHosting #Wordpress

I Installed Wordpress under (UBUNTU)/var/www/wordpress. wp-config.php is modified as recommended.

When trying to access x.y.z.a/wordpress/wp-admin/wp-install.php it doesn't open the page but instead downloads the file...

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray155

3 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

You need to install PHP5 which is really easy just follow my 5 simple steps and voila your done.


Connect to your Ubuntu using SSH or bring up the terminal if using Desktop.
sudo apt-get update
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart


All done and PHP should now work, you may run into MySQL problems if you have not installed this either... let us know if you encounter any more problems and I'll assist.

PHP5 installed but prompted to download php file


Enable mod_write - sudo a2enmod rewrite
Enable .htaccess sudo nano /etc/apache2/sites-available/default find the lines with the directory setting i.e /var/www find AllowOverride none and change to AllowOverride All
Now create a blank .htaccess file if you don't have one already sudo nano /var/www/.htaccess add the following line AddType application/x-httpd-php .php .htm .html and this one below it AddHandler x-httpd-php .php .htm .html
sudo /etc/init.d/apache2 restart

10% popularity Vote Up Vote Down


 

@Turnbaugh106

PHP is not installed or not configured properly on your server, Install LAMP or install php and configure it manually. There are instructions for doing so here: help.ubuntu.com/community/ApacheMySQLPHP
Edit:

If php is installed but still there is the same issue of being downloaded, it means that the apache/php configuration is not done right.

If you have recently installed any plugins relating to php and apache, make sure to restart apache before the new settings take effect:

/etc/init.d/apache2 restart

If still not working, try to follow the recommendation in here: serverfault.com/questions/215455/what-causes-php-pages-to-consistently-download-instead-of-running-normally
If that is too hard because you are not experienced with linux/ubuntu, then you should uninstall apache/php/mysql, and reinstall them again, which should make the appropriate settings, but this time follow a guide from the start like the one posted above.

10% popularity Vote Up Vote Down


 

@YK1175434

You must have to install xampp to run .php files. Because web browser doesn't understand .php files.

PHP files are rendered in Server like Apache and then it work in web browsers.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme