amonk Posted April 4, 2009 Share Posted April 4, 2009 Hi, I've just set up a CentOS partition on my disk (was just XP), as a development machine. I have run all the updates, installs I need, MySQL is working, same for Apache and its mod_userdir, phpMyAdmin. Here's my problem - I just rebooted my system and browsed to a page that gives 4 warnings: Warning: include(includes/header.html) [function.include.html]: failed to open stream: Permission denied in /var/www/html/learn_php/index.php on line 7 Warning: include() [function.include.html]: Failed opening 'includes/header.html' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/learn_php/index.php on line 7 Warning: include(includes/footer.html) [function.include.html]: failed to open stream: Permission denied in /var/www/html/learn_php/index.php on line 11 Warning: include() [function.include.html]: Failed opening 'includes/footer.html' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/learn_php/index.php on line 11 Anyone got any ideas about why this is happening? I've already got quite a bit of experience with PHP, but I have never had this problem before... - Even when I installed this same version of PHP on IIS 5.1 running on my XP partition! Link to comment https://forums.phpfreaks.com/topic/152556-solved-weird-error-messages/ Share on other sites More sharing options...
amonk Posted April 4, 2009 Author Share Posted April 4, 2009 Oooppsss... Sorry, I had just moved the file to a different directory, so the permissions were unset, I have just reset the permissions and its fine now. *PROBLEM SOLVED* Link to comment https://forums.phpfreaks.com/topic/152556-solved-weird-error-messages/#findComment-801275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.