Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: dmleo77 on September 14, 2017, 07:00:16 PM

Title: PHP not working
Post by: dmleo77 on September 14, 2017, 07:00:16 PM
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.
Title: Re: PHP not working
Post by: studio4host on September 15, 2017, 01:12:18 PM
if this is only phpinfo error then you can add this script to any account/domain and open it in your browser
Code: [Select]
<?php phpinfo();?>
Title: Re: PHP not working
Post by: dmleo77 on September 16, 2017, 09:53:00 PM
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.
Title: Re: PHP not working
Post by: 24x7servermanagement on September 18, 2017, 07:44:04 AM
Is PHP installed on the server?

Check using this command :-

Code: [Select]
php -v
Title: Re: PHP not working
Post by: studio4host on September 21, 2017, 12:28:37 PM
this should help if you have the latest version of cwp

Code: [Select]
yum reinstall cwp-httpd
yum reinstall cwp-suphp
yum reinstall cwp-php

then restart httpd
Code: [Select]
service httpd restart
Title: Re: PHP not working
Post by: dmleo77 on October 18, 2017, 12:44:34 PM
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.
Title: Re: PHP not working
Post by: priyalhdp on May 29, 2018, 03:11:19 PM
this should help if you have the latest version of cwp

Code: [Select]
yum reinstall cwp-httpd
yum reinstall cwp-suphp
yum reinstall cwp-php

then restart httpd
Code: [Select]
service httpd restart


This is Working. After reinstall the modules php works properly
Thanks!
Title: Re: PHP not working
Post by: victor salvi on May 08, 2019, 09:13:54 PM
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