Control Web Panel

WebPanel => PHP => Topic started by: richyb on November 05, 2015, 04:25:06 PM

Title: PHP include not working for me
Post by: richyb on November 05, 2015, 04:25:06 PM
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.
Title: Re: PHP include not working for me
Post by: brijendrasial on November 05, 2015, 04:49:33 PM
There is no special configuration. You can check your php error log to see if something is missing.
Title: Re: PHP include not working for me
Post by: 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.
Title: Re: PHP include not working for me
Post by: Igor S. on December 08, 2015, 09:57:56 AM
Hi, check the /usr/loca/apache/logs/error_log for error.


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