1

I installed Wordpress, php7.0 and apache2. I also installed the php7.0 module for apache and it is enabled.

I can create a php file (named phpinfo.php) with content <?php phpinfo(); ?>, and can see the correct output when I open http://localhost/phpinfo.php.

My problem is when I try to open http://localhost/blog/wp-admin/install.php, it says:

**ERROR: PHP is not running**

and shows the whole installation page without the interpreted php.

Does somebody know what the cause of that is, or even better, how I can fix it?

pa4080
  • 29,831
Moe
  • 23
  • 1
    Make sure you have wordpress needed php modules installed in you apache server – George Udosen Sep 08 '17 at 14:27
  • ... sudo apt install wordpress should require these modules as dependencies. But you can try to install them as it is described under the section Pre-Requirements from this answer. – pa4080 Sep 08 '17 at 14:31
  • Thank you @pa4080 there were two dependencies that missed! Its working perfectly now. Will you write this as an 'answer'? I can then accept it :) – Moe Sep 08 '17 at 14:35

2 Answers2

1

According to the @George's suggestion and @Moe's report, actually, some PHP dependencies were missing. As it is described here, all php dependencies for Wordpress can be installed through the following commands:

sudo apt update
sudo apt install php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc
pa4080
  • 29,831
0

This no longer works with Ubuntu 18.04.2 as mcrypt is deprecated.

For a fix, see here.

Kwilk
  • 33
  • 1
  • 3