PHP not working

Started by dmleo77, September 14, 2017, 07:00:16 PM

Previous topic - Next topic

dmleo77

I am new to network administration.
I have a web server and several domains hosting.
Everything was working well, but 2 days ago I discovered that php do not work. The server was up and fine for more than a year.
The CWP panel works ok, apache and nginx seems ok, I only see this error:

PHP Info
You are running PHP version: 7.1.9
Warning: [obfuscated](http://90.69.151.228/phpinfo.php): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /usr/local/cwpsrv/htdocs/resources/admin/modules/php_info.php on line 0

Please help.

studio4host

if this is only phpinfo error then you can add this script to any account/domain and open it in your browser

<?php phpinfo();?>
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

dmleo77

I have some wordpress sites. None of them are working. Plain html works fine. Php file do not work.
I didnt do nothing. From a day to another the php stop working.

the phpinfo script doesn work at all. no information.

24x7servermanagement

Is PHP installed on the server?

Check using this command :-

php -v
https://www.24x7servermanagement.com/
Server Management, Server Security, Server Monitoring.
India's Leading Managed Service Provider !!

studio4host

this should help if you have the latest version of cwp

yum reinstall cwp-httpd
yum reinstall cwp-suphp
yum reinstall cwp-php


then restart httpd
service httpd restart
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

dmleo77

Thank you for your time.

How it is possible that, from one day to another, without touching nothing the Centos OS stop working corectly?

Rubbish...no offence.

priyalhdp

Quote from: studio4host on September 21, 2017, 12:28:37 PM
this should help if you have the latest version of cwp

yum reinstall cwp-httpd
yum reinstall cwp-suphp
yum reinstall cwp-php


then restart httpd
service httpd restart


This is Working. After reinstall the modules php works properly
Thanks!

victor salvi

Hello guys i have an issue whenever i install cwp my php not work i don't why i tried account permison also but the problem still there

is there any solution i can try ??

if any one help me i would realy thankful of them