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
  • 30,621
Moe
  • 23

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
  • 30,621
0

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

For a fix, see here.

Kwilk
  • 33