Guest Posted July 25, 2010 Posted July 25, 2010 After copying files to web server and setting permissions on the config files in /catalog/includes and /catalog/admin/includes -- I get nothing in the web browser. I checked the httpd error log and found the following. PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/application_top.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/.sites/143/site2/web/catalog/index.php on line 13 A point in the right direction would be much appreciated.
MrPhil Posted July 25, 2010 Posted July 25, 2010 It's trying to read in /home/.sites/143/site2/web/catalog/includes/application_top.php, and is complaining it can't. Check that the file is actually there. Perhaps you put the includes/ directory in the wrong place, or you have the wrong permissions on the directory or file so it is unreadable (permissions should be 755 and 644 respectively). Also check your two configure.php files, that you have the right filesystem paths defined (e.g., /home/.sites/143/site2/web/catalog/).
Guest Posted July 25, 2010 Posted July 25, 2010 It's trying to read in /home/.sites/143/site2/web/catalog/includes/application_top.php, and is complaining it can't. Check that the file is actually there. Perhaps you put the includes/ directory in the wrong place, or you have the wrong permissions on the directory or file so it is unreadable (permissions should be 755 and 644 respectively). Also check your two configure.php files, that you have the right filesystem paths defined (e.g., /home/.sites/143/site2/web/catalog/). Hi Thanks for the reply. The file is there and didnt move anything after the upload of the catalog directory. permissions seem fine didnt change any but the configure.php files and they have not been edited. looked at the configure.php but didnt find anything about editing those manually. Tried putting domain name in the define('HTTP_SERVER' and tried just localhost no help I am using a blueonyx cpanel and noticed it uses the /home/.sites/143/site2/web/catalog/includes/application_top.php while the link /home/sites/blog.allidaho.com/web/catalog/includes/application_top.php is the same place but not a symbolic link drwxr-xr-x 2 root root 4096 Jul 23 08:40 sites drwxr-xr-x 5 root root 4096 Jul 23 08:40 .sites Still nothing in the browser but no browser error either.
Guest Posted July 25, 2010 Posted July 25, 2010 /home/.sites/143/site2/web/catalog /home/sites/143/site2/web/catalog http://ipofsite/catalog/ http://nameofsite/catalog/ tried all of these in front of the includes/application_top.php still get the following errors in the httpd/error.log no matter what I put in the path PHP Warning: require(/home/sites/143/site2/web/catalog/includes/application_top.php) [<a href='function.require'>function.require</a>]: failed to open stream: Operation not permitted in /home/.sites/143/site2/web/catalog/index.php on line 13 [sun Jul 25 13:45:46 2010] [error] [client xx.xx.xx.xx] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sites/143/site2/web/catalog/includes/application_top.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/.sites/143/site2/web/catalog/index.php on line 13 I
MrPhil Posted July 31, 2010 Posted July 31, 2010 (Sorry not to get back to you sooner, but I was away all week.) OK, so you're running /home/.sites/143/site2/web/catalog/index.php, and on line 13 it is requiring (including) file /home/sites/143/site2/web/catalog/includes/application_top.php. It is complaining that it can't open it (operation not permitted). This might be because it doesn't exist, or because the permissions don't allow reading the file. First of all, are you absolutely certain that /home/sites and /home/.sites are one and the same (one is an alias for the other)? I see "sites" shows 2 links to the inode it points to, while ".sites" shows 5 links. If they are both actually pointing to the same inode, they should be interchangeable. As they have different link counts, I'm not positive that they're the same inode (the block of disk with the actual directory contents on it). They have the same size and same date/time, and the permissions (755) are fine, so it's a puzzle. Following /home/sites down the chain of directories, are they both showing the same content and same permissions? What I'm wondering is if sites and .sites were deliberately set up as aliases, or if someone accidentally created a .sites when they should have had sites. You mention seeing a /home/sites/blog.allidaho.com/web/catalog/includes/application_top.php. Is this yet another alias to get to the same place? Just for giggles, try editing the application_top.php file. Just change one character in a comment near the top. If the other two versions change when you do that, you know you have at least three aliases for one directory. If zero or one other copy change, you know that you don't have aliases, but separate copies. Now, if you have a bunch of aliases for one directory, and you have the same permissions on them, they ought to be interchangeable. If they aren't, something is very strange, and you'll have to work with your hosting service to figure which to use (and bogus copies or links/aliases can be erased). If PHP reports that index.php is actually running in .sites, try changing your configure.php files to use /home/.sites/.../catalog instead of /home/sites/.../catalog in the appropriate DIR_FS_* entries. Assuming you're on a real server, HTTP_SERVER would never be "localhost" -- that's for the MySQL server (unless it's on a different machine). HTTP_SERVER should be something like http://www.allidaho.com .
Recommended Posts
Archived
This topic is now archived and is closed to further replies.