ccchan Posted April 25, 2008 Posted April 25, 2008 Hello, I'm new to OSC and just installed the latest version at /public_html/catalog/. I am experiencing a few difficulties: In the documentation.pdf in the .zip file, at the end of the tutorial it said I "need to .htaccess your /catalog/admin directory so that it is password protected. You can use the password manager in your server admin area like cpanel." I'm confused on how to ".htaccess" as a verb. The second half of the direction implied that I can use the "Password Protect Directories" feature in cpanel to restrict acces to the admin directory. This is an either/or situation correct? I don't need to do both right? But... do I really need to do the "password protect directories" when the OSC prompts for login when you access the admin directory? So basically my questions are: how do you ".htaccess", is the "password protect directories" what the second half of the instructions is asking for, and is it all together necessary? Also... when I do login to the admin area of OSC all of the images are broken. The images on the front end of the catalog work just fine, all of the images in the /catalog/admin/images directory seem to not work. As per the instructions I chmoded the /catalog/images folder to 777, when the admin/images pictures didn't work I tried to chmod that directory to 777 as well. This didn't work so I changed it back to 755. I was thinking that once I put the admin directory behind the cpanel password protection that that might have interfered, so I undid that, no luck. When looking in the documentation.pdf it said something about If a page shows everything right except the graphics and formatting are missing then goto that page and change the link of your stylesheet in whatever file is not displaying correctly: <LINK href="../oscommerce/catalog/catalog/stylesheet.css" type=text/css rel=stylesheet> All you have to do is find that line in and correct the path to point to your actual stylesheet.css. <link rel="stylesheet" type="text/css" href="stylesheet.css"> I'm not sure what they were getting at but I checked the paths to the images and they all pointed correctly. When trying to open the file just by using the path, they were broken and didn't load. Based on that I downloaded the file through my FTP client and tried just to view it and it didn't open. I then deleted the whole folder and reuploaded it from the original .zip file where the images did work and it didn't help. Is this the result of some weird settings on my server? Any ideas?
ruizerwin Posted April 25, 2008 Posted April 25, 2008 Check your configure.php /admin/includes/configure.php define('DIR_WS_IMAGES', 'images/'); also define(DIR_FS_CATALO, 'your server path'); If your have your own server please check your settings: This could be your problem. Check on your server the path. Look for your apache configuration If NOT: it could be Your configure.php Hope it help ;) Erwin D. Padilla Web Developer and Linux Admin
ccchan Posted April 25, 2008 Author Posted April 25, 2008 I checked both lines in admin/includes/configure.php and they had the correct path... so I'm still not sure. Thanks for the suggestion though. If it is indeed server settings fouling up the works, what exactly should I look for/do?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.