PHP include not working for me

Started by richyb, November 05, 2015, 04:25:06 PM

Previous topic - Next topic

richyb

I have website setup like domain.com/category/pagename.html and i have added a php include to the very top of the pagename.html file :  <?php include('../folder/file.php'); ?>

The problem is this is showing in the page source which means its not able to find the file.php.

I have correctly setup a php.ini file and the htaccess file in the root of the domain as i use the same setup on another server which uses WHM/Cpanel and works pefectly.

Is there anything i need to configure within CWP for this to work correctly.

brijendrasial

There is no special configuration. You can check your php error log to see if something is missing.

helpbijkanker

So I have that specific issue and Ha reinstalled Centos and Centos web-panel... an the problem presist.
Only *.html websites ar working.

Igor S.

Hi, check the /usr/loca/apache/logs/error_log for error.


Quote from: helpbijkanker on December 02, 2015, 07:38:51 PM
So I have that specific issue and Ha reinstalled Centos and Centos web-panel... an the problem presist.
Only *.html websites ar working.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services