iamcenz Posted October 12, 2005 Posted October 12, 2005 ok first off i get this error, PHP Warning: fopen(D:/website/oscommerce/admin/includes/configure.php): failed to open stream: Permission denied in D:\website\oscommerce\install\templates\pages\install_7.php on line 259 PHP Warning: fputs(): supplied argument is not a valid stream resource in D:\website\oscommerce\install\templates\pages\install_7.php on line 260 PHP Warning: fclose(): supplied argument is not a valid stream resource in D:\website\oscommerce\install\templates\pages\install_7.php on line 261 dont know what it means, but i think i got to set permissions to the file. not sure if thats right so i figured i would ask. now im also havin this when i try to go to the admin page. 1046 - No Database Selected select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] can help here would be great, thanks.
kgt Posted October 12, 2005 Posted October 12, 2005 You can manually edit the configure.php files. You will need to edit the last six or so lines to enter your mysql database information. The second error is a result of OSC not having the database information, and should disappear when you have the configuration file set up correctly. includes/configure.php admin/includes/configure.php Contributions Discount Coupon Codes Donations
iamcenz Posted October 12, 2005 Author Posted October 12, 2005 i have all the database info in includes/configure.php thats why i am so confused. i havent edited admin/includes/configure.php though, ill try that now.
iamcenz Posted October 12, 2005 Author Posted October 12, 2005 ok i edited the configs but now the pages in the admin console dont work and my SSL isnt workin. i have it configured to be on.
kgt Posted October 12, 2005 Posted October 12, 2005 ok i edited the configs but now the pages in the admin console dont work and my SSL isnt workin. i have it configured to be on. That's like saying "My car won't start. What's wrong with it?" The answer is, "No clue. What's happening?" What do you mean by the admin console doesn't work... 1.) Do you get an error? What is it, EXACTLY? 2.) Do you get a blank screen? What do you mean by SSL isn't working? 1.) Do you get an error? What is it EXACTLY? (see a pattern here? ;) ) 2.) Do you get links with "https://" where they should be? Also, post your configure.php files. MAKE SURE TO OBSCURE sensitive information like your database info like so: define('DB_SERVER', 'xxxx'); Contributions Discount Coupon Codes Donations
iamcenz Posted October 12, 2005 Author Posted October 12, 2005 lol sorry. here is include/configure.php <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.ask4technology.com'); define('HTTPS_COOKIE_DOMAIN', 'www.ask4technology.com'); define('HTTP_COOKIE_PATH', '/oscommerce'); define('HTTPS_COOKIE_PATH', '/oscommerce'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', '*******'); define('DB_DATABASE', 'site'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> and this is admin/include/configure.php <?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 (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', ''); 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', '/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', 'root'); define('DB_SERVER_PASSWORD', 'A5k4t3Ch'); define('DB_DATABASE', 'site'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', 'mysql'); ?> the problem with the admin panel is that when i click a link it give me a IIS error. and it says my ssl is off. i dont know why though
kgt Posted October 12, 2005 Posted October 12, 2005 include/configure.php define('HTTP_SERVER', 'http://www.ask4technology.com'); // you need to enter you domain name here define('HTTPS_SERVER', 'https://www.ask4technology.com'); // you need to enter your https domain name here admin/include/configure.php define('HTTP_SERVER', 'http://www.ask4technology.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.ask4technology.com'); define('HTTPS_CATALOG_SERVER', 'https://www.ask4technology.com'); define('ENABLE_SSL_CATALOG', 'true'); // this needs to be set to true define('DB_SERVER_PASSWORD', 'xxxxxx'); //ack! you posted your database password ?> Contributions Discount Coupon Codes Donations
iamcenz Posted October 12, 2005 Author Posted October 12, 2005 alright i did what you told me to change, but same thing, the admin panel dont ask me for a password. which is not good. and when i click on any of the link in the admin panel i get this The page cannot be foundThe page you are looking for might have been removed, had its name changed, or is temporarily unavailable. Please try the following: * Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly. * If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted. * Click the Back button to try another link. HTTP Error 404 - File or directory not found. Internet Information Services (IIS) Technical Information (for support personnel) * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 404. * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Web Site Setup, Common Administrative Tasks, and About Custom Error Messages. stupid IIS. should i delete it and try again?
kgt Posted October 13, 2005 Posted October 13, 2005 alright i did what you told me to change, but same thing, the admin panel dont ask me for a password. which is not good. and when i click on any of the link in the admin panel i get thisstupid IIS. should i delete it and try again? No, this is usually an indication you don't have the webserver configured properly (if you're positive you have the URL right). I don't know much about IIS, so I can't be much help there. Does the catalog come up correctly? The password box popup is also a webserver configuration. Normally you use HTTP Authentication, which is controlled by the webserver. Contributions Discount Coupon Codes Donations
iamcenz Posted October 13, 2005 Author Posted October 13, 2005 yeah the whole site works fine, i can browse the items that come set up in the database from the install, but once i go into the admin panel, it shows up fine, then i click on ANY link and it gives me an error.
kgt Posted October 13, 2005 Posted October 13, 2005 yeah the whole site works fine, i can browse the items that come set up in the database from the install, but once i go into the admin panel, it shows up fine, then i click on ANY link and it gives me an error. What do the URLs that give you an error look like? I mean, where is the link trying to take you? Compare the location of the link to the expected location based on the admin/includes/conifgure.php file. Contributions Discount Coupon Codes Donations
iamcenz Posted October 13, 2005 Author Posted October 13, 2005 http://www.ask4technology.com/admin/catego...608cca1ee104751 thats what the links look like. the only thing i can think of is that the sessions are being stored in the database.
kgt Posted October 13, 2005 Posted October 13, 2005 Sessions are being stored in the database. But I doubt that's the issue. The issue is more likely the admin section really doesn't exist at the location the links are pointing to. Are you sure your structure isn't www.ask4technology.com/oscommerce/admin? That is the default installation structure. If that's where admin really is, you need to edit your admin/includes/configure.php file: define('DIR_WS_ADMIN', '/oscommerce/admin/'); I also noticed you need to change define('DIR_WS_CATALOG', '/catalog/'); to define('DIR_WS_CATALOG', '/oscommerce/'); in admin/includes/configure.php. Contributions Discount Coupon Codes Donations
iamcenz Posted October 13, 2005 Author Posted October 13, 2005 kgt you rock. i dont know why its like that, i didnt even notice, i changed everything and its good now. any clue on why its saying that SSL is not on?
kgt Posted October 13, 2005 Posted October 13, 2005 kgt you rock. i dont know why its like that, i didnt even notice, i changed everything and its good now. any clue on why its saying that SSL is not on? Depends on what you mean by "SSL is not on." In the catalog or in the admin? What's the domain for your certificate? Contributions Discount Coupon Codes Donations
Recommended Posts
Archived
This topic is now archived and is closed to further replies.