Author Topic: PHP not working  (Read 19571 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP not working
« 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.
« Last Edit: September 14, 2017, 07:21:10 PM by dmleo77 »

Offline
*
Re: PHP not working
« Reply #1 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();?>
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.

Offline
*
Re: PHP not working
« Reply #2 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.

Offline
**
Re: PHP not working
« Reply #3 on: September 18, 2017, 07:44:04 AM »
Is PHP installed on the server?

Check using this command :-

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

Offline
*
Re: PHP not working
« Reply #4 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
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.

Offline
*
Re: PHP not working
« Reply #5 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.

Offline
*
Re: PHP not working
« Reply #6 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!

Offline
*
Re: PHP not working
« Reply #7 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