Mod_fcgid Stderr Php Fatal Error Require
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack fatal error: require(): failed opening required wordpress Overflow the company Business Learn more about hiring developers or posting ads with us
Fatal Error: Require_once(): Failed Opening Required Drupal
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community fatal error require_once failed opening required pear php of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up PHP Fatal Error Failed opening required File up vote 24 down vote favorite 7 I am fatal error: require_once() [function.require]: failed opening required getting the following error from Apache [Sat Mar 19 23:10:50 2011] [warn] mod_fcgid: stderr: PHP Fatal error: require_once() [function.require]: Failed opening required '/common/configs/config_templates.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/viapics1/public_html/common/configs/config.inc.php on line 158 I am definately not an expert of Apache but the file config.inc.php & config_templates.inc.php are there. I also tried navigating to a test.html page I placed in common/configs/ so I assume there is no rights issues going on. I also set the
(include_path='.:/usr/share/php:/usr/share/pear') In Unknown On Line 0
rights on config_templates.inc.php to give everyone read, write, and execute rights. Not sure what to do at this point, I checked to see if there was a /usr/share/php directory and I found there was not but when I did yum install php it said it had the latest. Ideas? php path share|improve this question edited Feb 16 '14 at 6:06 Your Common Sense 109k19103179 asked Mar 19 '11 at 19:06 Al Katawazi 3,05051632 4 +1 for posting entire and exact error message. That's what everyone should do, but almost nobody does, while it makes impossible to answer the question without it. –Your Common Sense Mar 19 '11 at 19:18 add a comment| 5 Answers 5 active oldest votes up vote 49 down vote accepted It's not actually apache related question. nor even PHP related. You have to distinguish a virtual server path from a filesystem path. There is no /common/configs/config_templates.inc.php file on the server, but rather /home/viapics1/public_html/common/configs/config_templates.inc.php if you change your code to something like require_once($_SERVER['DOCUMENT_ROOT'].'/common/configs/config_templates.inc.php'); it will work from any file placed in any directory. Also, if you're sure that templates will always remain the same directory (as related to the current calling script), you can write absolute path this way: require_once(dirname(__FILE__).'/config_templates.inc.php'); Or since PHP 5.3 you can use _
pages do not show anything and appear blank 3 posts / 0 new Log in or register to post comments Last post #1 Fri, 08/05/2011 - 21:59 mattc web pages do not show anything and fatal error require_once() failed opening required magento appear blank This is a re-post to forums as I posted to the fatal error require_once() failed opening required codeigniter wrong place the first time.. Thank you andreychek for pointing me in the right direction! Hello, First I am a
Require_once() Failed Opening Required Wordpress
newbie when it comes to this and I am just learning. I have installed virtaulmin on centos 5.3 with the isntall.sh. Everything installed with no issues at all. I created a virtual http://stackoverflow.com/questions/5364233/php-fatal-error-failed-opening-required-file server and mysql db and loaded WP files into the new virtual sites public_html folder. All the pages were there and the normal wp site was good to go. I then uploaded a new theme and tried to activate it and now I am left with a blank pages in the admin and on the front end. I have searched and search and I think it https://www.virtualmin.com/node/19081 is a php permission issue but I am not sure. I also had this same issue with just webmin isntalled. I would like someone to help me figure this out and explain how to correct it. You tell me what you need and I will give it to you. Again I am new to all of this so be kind. andreychek also gave me a couple of things to check and I did. First was to be sure that the files are owned by the virtual server owner and they are. Second was my error log in home/logs/error_log which the last few lines are below. Again I am new at this so please explain in terms I will understand. error_log:
[Sat Aug 06 04:59:12 2011] [error] [client xxx.xx.xx.xxx] PHP Warning: require_once(/home/dev/public_html/wp-content/themes/genesis/lib/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/dev/public_html/wp-content/themes/outreach/functions.php on line 3, referer: http://dev.mjprostudios.com/wp-admin/themes.php
[Sat Aug 06 04:59:12 2011] [error] [client xxx.xx.xx.xxx] PHP Fatal error: require_once() [function.require]: Failed opening required '/home/dev/public_html/wp-content/themes/genesis/lib/init.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/dev/public_html/wp-content/themes/outreach/functions.php on line 3, referer: http://dev.mjprostudios.com/wp-admin/themes.php
[Sat Aug 06 04:59:16 2011] [error] [client xxx.xx.xx.xxx] PHP Warning: require_once(/home/dev/public_html/wp-content/themes/genesis/lib/init.php) [function.require-once]: failed to open stream: No such file or
New Member Hi everyones, I've setup my https://www.howtoforge.com/community/threads/php-not-working-on-websites-various-errors.50064/ server under Fedora 13 using the tutorial of HowToForge https://www.sitepoint.com/community/t/phpmailer-require-fatal-error/191448 (really good). I'm a beginner in Linux so it is not always easy to troubleshoot system. My Ispconfig 3.0.3 run well, FTP / mySQL / Mail / Webmail are running ok but when fatal error I try to use a php script on websites created by ISPC i have internal error (500) I tried Phpsysinfo, he gives me a blank screen and some errors in /var/log/ispconfig/httpd/mywebsite/error.log Code: [Wed Nov 10 12:44:41 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP failed opening required Warning: require_once(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.meuro-media.net/web:/srv/www/www.meuro-media.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client0/web1/web/phpsysinfo/) in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34 [Wed Nov 10 12:44:41 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning: require_once(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php): failed to open stream: Operation not permitted in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34 [Wed Nov 10 12:44:41 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/clients/client1/web1/web/phpsysinfo/index.php on line 34 [Wed Nov 10 12:44:43 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning: Unknown: open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/phpsysinfo/index.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.meuro-media.net/web:/srv/www/www.meuro-media.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client0/web1/web/phpsysinfo/) in Unknown on line 0 [Wed Nov 10 12:44:43 2010] [warn] [client 10.0.0.138] mod_fcgid: stderr: PHP Warning: require_once(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/web/phpsysinfo/includes/autoloader.inc.php) is not within the allowed path(s): (/var/www/clients/client0/web1/web:/var/www/clients/client0/web1/tmp:/var/www/www.meuro-media.net/web:/srv/www/www.meuro-media.net/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/var/www/clients/client0/web1/web/phpsysinfo/) in /var/www/clients/cl
require(../PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /home/codefund/public_html/cadeui/system/includes/classes/Email.class.php on line 2[30-May-2015 15:08:41 US/Eastern] PHP Fatal error: require(): Failed opening required '../PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/codefund/public_html/cadeui/system/includes/classes/Email.class.php on line 2 I'm including it as such. require "../PHPMailer/PHPMailerAutoload.php"; Which, from my Email.class.php file (as seen on GitHub)...that would lead back to the "includes" folder. Then into PHPmailer/PHPMailerAutoload.php Why is it not found? Could someone help me get this setup? megazoid 2015-05-30 19:23:24 UTC #2 If you use relative path it should be relative to the script that you actually run in browser (index.php?)So try: require 'system/includes/PHPMailer/PHPMailerAutoload.php'; RyanReese 2015-05-30 19:24:39 UTC #3 I was doing /cadeui/system/includes/PHPMailer/PHPMailerAutoload.php" originally. Same error. I changed it to the ../PHPMailer...etc version just to make it simpler to make sure I wasn't being stupid. That /cadeui/ version should work no matter where the original script is running from. I do all my includes like /cadeui/...etc. RyanReese 2015-05-30 19:26:34 UTC #4 megazoid: So try: require 'system/includes/PHPMailer/PHPMailerAutoload.php'; Yeah, still error [30-May-2015 15:26:07 US/Eastern] PHP Warning: require(system/includes/PHPMailer/PHPMailerAutoload.php): failed to open stream: No such file or directory in /home/codefund/public_html/cadeui/system/includes/classes/Email.class.php on line 2[30-May-2015 15:26:07 US/Eastern] PHP Fatal error: require(): Failed opening required 'system/includes/PHPMailer/PHPMailerAutoload.php' (include_path='.:/opt/alt/php55/usr/share/pear:/opt/alt/php55/usr/share/php') in /home/codefund/public_html/cadeui/system/includes/classes/Email.class.php on line 2 megazoid 2015-05-30 19:31:31 UTC #5 RyanReese: Yeah, still error If your app uses single entry point (via index.php) then I wouldn't mess with relative paths.Just add this into ind