jevinder Posted November 20, 2007 Posted November 20, 2007 Hi, I've had oscommerce installed for a long time on a windows server and it was working great - i had even changed the write permissions of the necessary oscomm files by chmod on that server. i recently had to change database passwords because of a security breach at my hosting company, and i uploaded the new config files with the new details. when i uploaded them, i had the message that i was able to write to certain directories, therefore i needed to change permissions again, as they had defaulted back to 700. so i attempt that using cute ftp, and now i'm told that the windows servers don't now accept chmod commands (why? why did they work on it before?), so i have to move the site to linux servers which i have done. so now i have to change the directory paths in the config files again!!! this is what i have: admin/includes/configure.php define('DIR_FS_DOCUMENT_ROOT', '//home/fhlinux160/r/xxx.com/user/htdocs/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '//home/fhlinux160/r/xxx.com/user/htdocs/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '//home/fhlinux160/r/xxx.com/user/htdocs/catalog/'); // absolute path required and: includes/configure.php define('DIR_FS_CATALOG', '//home/fhlinux160/r/xxx.com/user/htdocs/catalog/'); now when i go to xxx.com/catalog or xxx.com/catalog/admin i'm getting the error: Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in /home/fhlinux160/r/xxx.com/user/htdocs/catalog/includes/application_top.php on line 31 Warning: require(includes/configure.php) [function.require]: failed to open stream: No such file or directory in /home/fhlinux160/r/xxx.com/user/htdocs/catalog/includes/application_top.php on line 31 Fatal error: require() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/share/pear-php5') in /home/fhlinux160/r/xxx.com/user/htdocs/catalog/includes/application_top.php on line 31 this is what i have in the application_top.php file: 30 // include server parameters31 require('includes/configure.php'); and even if i change the server paths by only using one slash at the front, or removing the word 'home' altogether i still get the same errors. can anybody shed light on this please? thanks in advance jon
digilee Posted November 21, 2007 Posted November 21, 2007 don't bump, you'll hurt yourself. For various reasons I have had to move a few OSC installs to different servers. Each time I found this the easiest way was: - Back-up database on old server - Back-up site on old server - Create a default osc install on the new server - Drop all tables in the new database (using phpmyadmin) - Upload site to new server - Import database to new server (using phpmyadmin) It always seems to work for me. I think there is also a forum thread about this but I have never read it. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design
Guest Posted November 22, 2007 Posted November 22, 2007 Hi, I've had oscommerce installed for a long time on a windows server and it was working great - i had even changed the write permissions of the necessary oscomm files by chmod on that server. i recently had to change database passwords because of a security breach at my hosting company, and i uploaded the new config files with the new details. when i uploaded them, i had the message that i was able to write to certain directories, therefore i needed to change permissions again, as they had defaulted back to 700. so i attempt that using cute ftp, and now i'm told that the windows servers don't now accept chmod commands (why? why did they work on it before?), so i have to move the site to linux servers which i have done. so now i have to change the directory paths in the config files again!!! this is what i have: admin/includes/configure.php and: includes/configure.php now when i go to xxx.com/catalog or xxx.com/catalog/admin i'm getting the error: this is what i have in the application_top.php file: and even if i change the server paths by only using one slash at the front, or removing the word 'home' altogether i still get the same errors. can anybody shed light on this please? thanks in advance jon http://www.oscommerce.com/forums/index.php?sho...=193738&hl=
♥Vger Posted November 22, 2007 Posted November 22, 2007 Windows servers never accepted CHMOD commands - because CHMOD is Apache (Unix/Linux operating systems) specific. Your real problem is that you are hosted with Fasthosts. To get the correct DIR_FS pathway do this: 1. Create a new text document on your desktop and rename it to cwd.php 2. Put this code in it and upload to your 'catalog' folder: <?php $p = getcwd(); echo $p; ?> 3. Go to that file in your Browser and it will print out your DIR_FS_CATALOG pathway on the screen e.g. http://www.yourdomain.com/catalog/cwd.php 4. Use what you see on the screen as your DIR_FS_CATALOG pathway 5. Delete the cwd.php file after use - but keep a note of the pathway. Cute FTP is total c**p, so use FileZilla (free) or WS FTP Home (free 30 day trial) instead. If you use the Firefox Browser then the Fire FTP add-on is also good. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.