hooman Posted January 13, 2006 Posted January 13, 2006 Hi, I had to move our store from one ISP to another. I changed all the values in configure.php files and adjusted all the directory paths. But both store and admin pages get various errors. The URL to the store is http://scrapmode.com/osc/catalog/index.php Admin URL: http://scrapmode.com/osc/catalog/admin/index.php I was wondering if anyone could help me solve these and get the store back up again. here are some of the errors I get: Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 1287 is not allowed to access owned by uid 0 in /home/www/scrapmode/osc/catalog/includes/functions/sessions.php on line 118 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/scrapmode/osc/catalog/includes/functions/sessions.php:118) in /home/www/scrapmode/osc/catalog/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/scrapmode/osc/catalog/includes/functions/sessions.php:118) in /home/www/scrapmode/osc/catalog/includes/functions/sessions.php on line 67 For admin: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/www/scrapmode/osc/catalog/admin/includes/functions/database.php on line 19 Unable to connect to database server! Thanks in advance.
PhpNurd Posted January 13, 2006 Posted January 13, 2006 upload a fresh download of the latest version on ur new server and try a clean install. If it works, then import the database.
hooman Posted January 14, 2006 Author Posted January 14, 2006 unfortunately I have to many mods to start clean.. any other advice?
GraphicsGuy Posted January 14, 2006 Posted January 14, 2006 Most of your errors relate to sessions.php trying to save session data in a file/folder that is outside your permissions. Do you have osc set to store session data in files instead of the database? Saving sessions to the database is more secure and is the recommended method. In your configure.php files set the "STORE_SESSIONS" variables to 'mysql'. If you specifically want to store session data in a file (again, this is not as secure), another approach is described here even though it is arguably not a bug. In a nutshell, go into your osc admin to Configuration>Sessions>Session Directory and delete the value there. This will cause osc to use the temp folder defined in the server's php.ini file. Another solution is discussed there too, but creating your own tmp folder within the domain root is very dangerous from a security standpoint. For the admin error, double check your /admin/configure.php for correct database connection data. Since it is connecting in the catalog side, I would suggest copy/pasting those lines from the catalog configure.php. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1.
AlanR Posted January 14, 2006 Posted January 14, 2006 Hi,I had to move our store from one ISP to another. I changed all the values in configure.php files and adjusted all the directory paths. But both store and admin pages get various errors. The URL to the store is http://scrapmode.com/osc/catalog/index.php Admin URL: http://scrapmode.com/osc/catalog/admin/index.php I was wondering if anyone could help me solve these and get the store back up again. here are some of the errors I get: Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 1287 is not allowed to access owned by uid 0 in /home/www/scrapmode/osc/catalog/includes/functions/sessions.php on line 118 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/www/scrapmode/osc/catalog/includes/functions/sessions.php:118) in /home/www/scrapmode/osc/catalog/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/www/scrapmode/osc/catalog/includes/functions/sessions.php:118) in /home/www/scrapmode/osc/catalog/includes/functions/sessions.php on line 67 For admin: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/www/scrapmode/osc/catalog/admin/includes/functions/database.php on line 19 Unable to connect to database server! Thanks in advance. See: http://www.oscommerce.com/forums/index.php?showtopic=184484 Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
hooman Posted January 14, 2006 Author Posted January 14, 2006 one solution that eliminated some of the errors was to turn off PHP safemode. Hope this helps others with same problem
Recommended Posts
Archived
This topic is now archived and is closed to further replies.