ignace Posted December 21, 2009 Share Posted December 21, 2009 Hi I'm fairly new to Linux and I have already ran into a problem I have a web-application running onder /var/www/html which uses the Zend framework in my bootstrap file I have this code: define('URI_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR); define('URI_LIBRARY', URI_ROOT . 'libraries' . DIRECTORY_SEPARATOR); function add_include_path($include_path) { $include_path = implode(PATH_SEPARATOR, array(get_include_path(), $include_path)); set_include_path($include_path); } add_include_path(URI_LIBRARY); require_once('Zend/Application.php'); But I get an error which says it can't find Zend/Application.php Thus I tried: print is_readable(URI_LIBRARY) ? 'readable' : 'not readable'; Which returns not readable and explains why Zend_Application was not loaded. So I tried changing the path to library and ./library afterwards to no avail. Also changing the CHMOD on both the bootstrap or the library (which are currently 755) does not help. Any advice? Link to comment https://forums.phpfreaks.com/topic/185912-access-rightschmod-trouble/ Share on other sites More sharing options...
trq Posted December 21, 2009 Share Posted December 21, 2009 This will ensure that the /var/www directory structure and all files within it are accessible by apache. find /var/www -type d -exec chmod 775 {} \; find /var/www -type f -exec chmod 644 {} \; You should also be setting you include_path within your php.ini as it'll give you better performance than using set_include_path(). Link to comment https://forums.phpfreaks.com/topic/185912-access-rightschmod-trouble/#findComment-981800 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.