Jump to content

Enabling PHP for CentOS 7


Recommended Posts

Hi,

I installed PHP (source code) version 7.2.3 in one of our development environments.

I am setting up wordpress, and to test whether or not PHP is working I insert this in the browser :

http://192.168.120.203/wp-admin/install.php

I get this error :

Quote

Error: PHP is not running.WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.

So how do I ensure that PHP is running. I can see the php version when I run php -v :

[root@dev-mumo ~]# php -v
PHP 7.2.3 (cli) (built: Jan 27 2020 21:41:21) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
[root@dev-mumo ~]#

I am not sure what to do next to make sure php is running.

Edited by anaigini
Link to comment
Share on other sites

Wordpress is going to run under/through the webserver.  There are many ways to configure this, whether it be apache/mod_php, or nginx/php-fpm, or apache/php-fpm etc.  We would need more information on your webserver and it's configuration.  Did you try to make a simple phpinfo()  file in the root directory of your wordpress install?  Are there any other php apps setup to run on this server?

Step 1:  make a test file:

// test.php
<?php

phpinfo();

Navigate to this and report back the results.

Step2:  Provide details on the web server and php configuration.  Double check the php specific parts of this configuration

Step3:  Provde this information from your shell:  

sudo rpm -qa | grep php

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.