php internal functions are not run

January 17, 2014 1.5k views
in centos, apache system, the php is runing but not work any functions like include(), php_info(), ... any suggestion?
2 Answers
sometimes Apache is running, but php is not.

now to check if php is running or not, run this command in your console or puTTy if you use it:

/etc/init.d/httpd restart

if it is restarted with Green OK, then yes php is running on your server. if not, then you need to fix that issue.

you need to test php file on your server using the php code here:

save the php file and upload it to your server root /www/ and then in the browser see it if working or not...
but not work any functions like include(), php_info(), ...

include() is probably trying to include a file that doesn't exist (make sure the path is correct).

php_info() doesn't exist, I believe you mean phpinfo()
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!