conveco Posted November 12, 2005 Share Posted November 12, 2005 Hello, I'm stuck at the beginning of osCommerce installation, after getting the register_globals to on in php.ini fixed, I restarted the installation with http://localhost/catalog/install/ and got this error message. --- Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /srv/www/htdocs/catalog/install/includes/application.php on line 22 Fatal error: main(): Failed opening required 'includes/functions/general.php' (include_path='/usr/share/php') in /srv/www/htdocs/catalog/install/includes/application.php on line 22 --- I followed the manual instructions and put the catalog folder in my web server root. From the error message I got, I check for general.php file and found it where it is suppose to be. After that, I create a dummy.php file ( learning PHP the hard way :-\ ) to test the require() function with paths inside my web server. Everythings was find, so I've mod require('install/includes/functions/general.php'); inside application.php to require('functions/general.php'); to get php able to find the general.php file. When I restart the installation process the general.php file was loaded but the next file called by the require() function, database.php, was not found!... Again! Its seems that I have a big problem with php paths. Also tried to comment include_path='/usr/share/php' in php.ini with no result. By the way /usr/share/php is empty, it's normal? Any help will be greatly appreciated. My setup: P4 256MB RAM SuSE Linux 10.0 Apache 2.0.54 PHP 4.4.0-6 MySQL 4.1.13-3 phpMyAdmin 2.6.4 osCommerce 2.2 Milestone 2 Regards. conveco Link to comment Share on other sites More sharing options...
lunitic Posted December 18, 2005 Share Posted December 18, 2005 Did you find any solution to this problem. Have the same problems with my SUSE 10 machine. B-R Mathias Hello, I'm stuck at the beginning of osCommerce installation, after getting the register_globals to on in php.ini fixed, I restarted the installation with http://localhost/catalog/install/ and got this error message. --- Warning: main(includes/functions/general.php): failed to open stream: No such file or directory in /srv/www/htdocs/catalog/install/includes/application.php on line 22 Fatal error: main(): Failed opening required 'includes/functions/general.php' (include_path='/usr/share/php') in /srv/www/htdocs/catalog/install/includes/application.php on line 22 --- I followed the manual instructions and put the catalog folder in my web server root. From the error message I got, I check for general.php file and found it where it is suppose to be. After that, I create a dummy.php file ( learning PHP the hard way :-\ ) to test the require() function with paths inside my web server. Everythings was find, so I've mod require('install/includes/functions/general.php'); inside application.php to require('functions/general.php'); to get php able to find the general.php file. When I restart the installation process the general.php file was loaded but the next file called by the require() function, database.php, was not found!... Again! Its seems that I have a big problem with php paths. Also tried to comment include_path='/usr/share/php' in php.ini with no result. By the way /usr/share/php is empty, it's normal? Any help will be greatly appreciated. My setup: P4 256MB RAM SuSE Linux 10.0 Apache 2.0.54 PHP 4.4.0-6 MySQL 4.1.13-3 phpMyAdmin 2.6.4 osCommerce 2.2 Milestone 2 Regards. conveco Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.