Guest Posted May 29, 2006 Posted May 29, 2006 This is all that continue to see when I try to load the admin page: Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid/gid is 11186/10001 is not allowed to access owned by uid/gid 0/0 in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/functions/sessions.php on line 110 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/functions/sessions.php:110) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/functions/sessions.php:110) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/functions/sessions.php on line 67 When I try to view the catalog for the site at www.mobileaudiocreationsonline.com/catalog, this is all that I get: Warning: mysql_connect(): Access denied for user 'apache'@'localhost' (using password: NO) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/includes/functions/database.php on line 19 Unable to connect to database server! This is my configure file: <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'http://www.mobileaudiocreationsonline.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.mobileaudiocreationsonline.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'mobilea1_newcart'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', 'mysql'); ?> I have no idea what the problem is here....Could anyone help??
Guest Posted May 29, 2006 Posted May 29, 2006 For the error trying to get into admin see this thread: [url=http://www.oscommerce.com/forums/index.php?showtopic=184484]http://www.oscommerce.com/forums/index.php?showtopic=184484 for the error on the catalog side - are you sure the database settings: define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'mobilea1_newcart'); are correct? You can normally get the settings from your hosts cPanel or similar - it is not normally 'localhost'. Tom
Guest Posted May 29, 2006 Posted May 29, 2006 For the error trying to get into admin see this thread:[url=http://www.oscommerce.com/forums/index.php?showtopic=184484]http://www.oscommerce.com/forums/index.php?showtopic=184484 for the error on the catalog side - are you sure the database settings: define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*******'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'mobilea1_newcart'); are correct? You can normally get the settings from your hosts cPanel or similar - it is not normally 'localhost'. Tom Hi Tom, The fix worked for the error that I was getting in the admin. I still have the database error though...I just can't seem to fix it... The server name I changed, and everything else is the same. There are no errors for login, I checked my MySql Front login and everything was correct: define('DB_SERVER', 'mobileaudiocreationsonline.com'); define('DB_SERVER_USERNAME', 'mobilea1_newcart'); define('DB_SERVER_PASSWORD', '******'); define('DB_DATABASE', 'mobilea1_newcart'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', 'mysql'); I don't know what to do???
Guest Posted May 29, 2006 Posted May 29, 2006 Hi Tom, Now I have a new erro since I changed the admin/functions/sessions.php Warning: main(): open_basedir restriction in effect. File(/catalog/includes/filenames.php) is not within the allowed path(s): (/tmp:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/storage:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44 Warning: main(/catalog/includes/filenames.php): failed to open stream: Operation not permitted in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44 Warning: main(): open_basedir restriction in effect. File(/catalog/includes/filenames.php) is not within the allowed path(s): (/tmp:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/storage:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44 Warning: main(/catalog/includes/filenames.php): failed to open stream: Operation not permitted in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44 Warning: main(): open_basedir restriction in effect. File(/catalog/includes/filenames.php) is not within the allowed path(s): (/tmp:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/storage:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44 Warning: main(/catalog/includes/filenames.php): failed to open stream: Operation not permitted in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44 Fatal error: main(): Failed opening required '/catalog/includes/filenames.php' (include_path='.:/usr/local/4admin/apache/lib/php') in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 44
Guest Posted May 29, 2006 Posted May 29, 2006 try changing the following line in your configure.php file: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) to define('DIR_FS_DOCUMENT_ROOT', '/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) Tom
Guest Posted May 29, 2006 Posted May 29, 2006 Hi Tom, I got into the catalog, now I cant get into the admin...This is what it says: Warning: main(): open_basedir restriction in effect. File(/includes/configure.php) is not within the allowed path(s): (/tmp:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/storage:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29 Warning: main(/includes/configure.php): failed to open stream: Operation not permitted in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29 Warning: main(): open_basedir restriction in effect. File(/includes/configure.php) is not within the allowed path(s): (/tmp:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/storage:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29 Warning: main(/includes/configure.php): failed to open stream: Operation not permitted in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29 Warning: main(): open_basedir restriction in effect. File(/includes/configure.php) is not within the allowed path(s): (/tmp:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/storage:/usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/web_users:/usr/local/4admin/apache/lib/php:/usr/local/4admin/phpstuff) in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29 Warning: main(/includes/configure.php): failed to open stream: Operation not permitted in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29 Fatal error: main(): Failed opening required '/includes/configure.php' (include_path='.:/usr/local/4admin/apache/lib/php') in /usr/local/4admin/apache/vhosts/mobileaudiocreationsonline.com/httpdocs/catalog/admin/includes/application_top.php on line 29
Guest Posted May 29, 2006 Posted May 29, 2006 have you made the change to both configure.php files. There is one in catalog/includes and another in catalog/admin/includes. Tom
Guest Posted May 29, 2006 Posted May 29, 2006 have you made the change to both configure.php files. There is one in catalog/includes and another in catalog/admin/includes.Tom Which configure file do I need to update to use the admin? I think that I just answered my own question, but tell me if I am wrong... admin/configure.php Haha
Guest Posted May 29, 2006 Posted May 29, 2006 Which configure file do I need to update to use the admin? I think that I just answered my own question, but tell me if I am wrong... admin/configure.php Haha that's the one :-)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.