php internal functions are not run

  • Posted on January 17, 2014
  • s_sahinAsked by s_sahin

in centos, apache system, the php is runing but not work any functions like include(), php_info(), … any suggestion?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

<blockquote>but not work any functions like include(), php_info(), … </blockquote> <br>include() is probably trying to include a file that doesn’t exist (make sure the path is correct). <br> <br>php_info() doesn’t exist, I believe you mean phpinfo()

sometimes Apache is running, but php is not. <br> <br>now to check if php is running or not, run this command in your console or puTTy if you use it: <br> <br>/etc/init.d/httpd restart <br> <br>if it is restarted with Green OK, then yes php is running on your server. if not, then you need to fix that issue. <br> <br>you need to test php file on your server using the php code here: <br> <br><?php phpinfo(); ?> <br> <br>save the php file and upload it to your server root /www/ and then in the browser see it if working or not…