Author Topic: PHP include not working for me  (Read 8555 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP include not working for me
« 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.

Re: PHP include not working for me
« Reply #1 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.

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

Offline
*****
Re: PHP include not working for me
« Reply #3 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.
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