maestro2020 Posted May 22, 2007 Posted May 22, 2007 I just installed oscommerce 2.2 on my linux server, can see the default home page, and went in through the /admin area and set up my basic configuration preferences. However, when back on the home page, none of the links go anywhere; they all return me back to the home page. The sidebar products do update (randomly?) however. I already checked file permissions, and progressively added execute permissions to all the PHP files. Finally I ended up using "chmod -R ugo+x *", but that didn't fix the problem either. Here's what I started with.. -bash-3.00$ cd osc/catalog; ls -al total 740 drwxrwxr-x 8 tim sagescomputer 4096 May 22 13:40 . drwxrwxr-x 3 tim sagescomputer 4096 May 22 13:32 .. -rw-rw-r-- 1 tim sagescomputer 12039 May 22 2007 account_edit.php -rw-rw-r-- 1 tim sagescomputer 11563 May 22 2007 account_history_info.php -rw-rw-r-- 1 tim sagescomputer 7530 May 22 2007 account_history.php -rw-rw-r-- 1 tim sagescomputer 7188 May 22 2007 account_newsletters.php -rw-rw-r-- 1 tim sagescomputer 11310 May 22 2007 account_notifications.php -rw-rw-r-- 1 tim sagescomputer 8224 May 22 2007 account_password.php -rw-rw-r-- 1 tim sagescomputer 11418 May 22 2007 account.php -rw-rw-r-- 1 tim sagescomputer 9044 May 22 2007 address_book.php -rw-rw-r-- 1 tim sagescomputer 18251 May 22 2007 address_book_process.php drwxrwxr-x 4 tim sagescomputer 4096 May 22 13:36 admin -rw-rw-r-- 1 tim sagescomputer 10344 May 22 2007 advanced_search.php -rw-rw-r-- 1 tim sagescomputer 14595 May 22 2007 advanced_search_result.php -rw-rw-r-- 1 tim sagescomputer 16065 May 22 2007 checkout_confirmation.php -rw-rw-r-- 1 tim sagescomputer 22061 May 22 2007 checkout_payment_address.php -rw-rw-r-- 1 tim sagescomputer 17363 May 22 2007 checkout_payment.php -rw-rw-r-- 1 tim sagescomputer 16325 May 22 2007 checkout_process.php -rw-rw-r-- 1 tim sagescomputer 22096 May 22 2007 checkout_shipping_address.php -rw-rw-r-- 1 tim sagescomputer 20323 May 22 2007 checkout_shipping.php -rw-rw-r-- 1 tim sagescomputer 6883 May 22 2007 checkout_success.php -rw-rw-r-- 1 tim sagescomputer 3436 May 22 2007 conditions.php -rw-rw-r-- 1 tim sagescomputer 6413 May 22 2007 contact_us.php -rw-rw-r-- 1 tim sagescomputer 3779 May 22 2007 cookie_usage.php -rw-rw-r-- 1 tim sagescomputer 22534 May 22 2007 create_account.php -rw-rw-r-- 1 tim sagescomputer 3919 May 22 2007 create_account_success.php drwxrwxr-x 2 tim sagescomputer 4096 May 22 13:36 download -rw-rw-r-- 1 tim sagescomputer 4229 May 22 2007 download.php drwxrwxr-x 13 tim sagescomputer 4096 May 22 13:37 images drwxrwxr-x 8 tim sagescomputer 4096 May 22 13:39 includes -rw-rw-r-- 1 tim sagescomputer 18956 May 22 2007 index.php -rw-rw-r-- 1 tim sagescomputer 1443 May 22 2007 info_shopping_cart.php drwxrwxr-x 5 tim sagescomputer 4096 May 22 13:40 install -rw-rw-r-- 1 tim sagescomputer 10492 May 22 2007 login.php -rw-rw-r-- 1 tim sagescomputer 3837 May 22 2007 logoff.php -rw-rw-r-- 1 tim sagescomputer 6313 May 22 2007 password_forgotten.php -rw-rw-r-- 1 tim sagescomputer 1494 May 22 2007 popup_image.php -rw-rw-r-- 1 tim sagescomputer 1384 May 22 2007 popup_search_help.php -rw-rw-r-- 1 tim sagescomputer 3560 May 22 2007 privacy.php -rw-rw-r-- 1 tim sagescomputer 12873 May 22 2007 product_info.php -rw-rw-r-- 1 tim sagescomputer 9613 May 22 2007 product_reviews_info.php -rw-rw-r-- 1 tim sagescomputer 11229 May 22 2007 product_reviews.php -rw-rw-r-- 1 tim sagescomputer 11228 May 22 2007 product_reviews_write.php -rw-rw-r-- 1 tim sagescomputer 6939 May 22 2007 products_new.php drwxrwxr-x 2 tim sagescomputer 4096 May 22 13:40 pub -rw-rw-r-- 1 tim sagescomputer 3074 May 22 2007 redirect.php -rw-rw-r-- 1 tim sagescomputer 7494 May 22 2007 reviews.php -rw-rw-r-- 1 tim sagescomputer 3563 May 22 2007 shipping.php -rw-rw-r-- 1 tim sagescomputer 11532 May 22 2007 shopping_cart.php -rw-rw-r-- 1 tim sagescomputer 5711 May 22 2007 specials.php -rw-rw-r-- 1 tim sagescomputer 3259 May 22 2007 ssl_check.php -rw-rw-r-- 1 tim sagescomputer 5859 May 22 2007 stylesheet.css -rw-rw-r-- 1 tim sagescomputer 10202 May 22 2007 tell_a_friend.php And here's what I now have.. -bash-3.00$ chmod -R ugo+x * -bash-3.00$ ls -al total 732 drwxrwxr-x 7 tim sagescomputer 4096 May 22 14:06 . drwxrwxr-x 3 tim sagescomputer 4096 May 22 13:32 .. -rwxrwxr-x 1 tim sagescomputer 12039 May 22 2007 account_edit.php -rwxrwxr-x 1 tim sagescomputer 11563 May 22 2007 account_history_info.php -rwxrwxr-x 1 tim sagescomputer 7530 May 22 2007 account_history.php -rwxrwxr-x 1 tim sagescomputer 7188 May 22 2007 account_newsletters.php -rwxrwxr-x 1 tim sagescomputer 11310 May 22 2007 account_notifications.php -rwxrwxr-x 1 tim sagescomputer 8224 May 22 2007 account_password.php -rwxrwxr-x 1 tim sagescomputer 11418 May 22 2007 account.php -rwxrwxr-x 1 tim sagescomputer 9044 May 22 2007 address_book.php -rwxrwxr-x 1 tim sagescomputer 18251 May 22 2007 address_book_process.php drwxrwxr-x 4 tim sagescomputer 4096 May 22 13:36 admin -rwxrwxr-x 1 tim sagescomputer 10344 May 22 2007 advanced_search.php -rwxrwxr-x 1 tim sagescomputer 14595 May 22 2007 advanced_search_result.php -rwxrwxr-x 1 tim sagescomputer 16065 May 22 2007 checkout_confirmation.php -rwxrwxr-x 1 tim sagescomputer 22061 May 22 2007 checkout_payment_address.php -rwxrwxr-x 1 tim sagescomputer 17363 May 22 2007 checkout_payment.php -rwxrwxr-x 1 tim sagescomputer 16325 May 22 2007 checkout_process.php -rwxrwxr-x 1 tim sagescomputer 22096 May 22 2007 checkout_shipping_address.php -rwxrwxr-x 1 tim sagescomputer 20323 May 22 2007 checkout_shipping.php -rwxrwxr-x 1 tim sagescomputer 6883 May 22 2007 checkout_success.php -rwxrwxr-x 1 tim sagescomputer 3436 May 22 2007 conditions.php -rwxrwxr-x 1 tim sagescomputer 6413 May 22 2007 contact_us.php -rwxrwxr-x 1 tim sagescomputer 3779 May 22 2007 cookie_usage.php -rwxrwxr-x 1 tim sagescomputer 22534 May 22 2007 create_account.php -rwxrwxr-x 1 tim sagescomputer 3919 May 22 2007 create_account_success.php drwxrwxr-x 2 tim sagescomputer 4096 May 22 13:36 download -rwxrwxr-x 1 tim sagescomputer 4229 May 22 2007 download.php drwxrwxr-x 13 tim sagescomputer 4096 May 22 13:37 images drwxrwxr-x 8 tim sagescomputer 4096 May 22 13:39 includes -rwxrwxr-x 1 tim sagescomputer 18956 May 22 2007 index.php -rwxrwxr-x 1 tim sagescomputer 1443 May 22 2007 info_shopping_cart.php -rwxrwxr-x 1 tim sagescomputer 10492 May 22 2007 login.php -rwxrwxr-x 1 tim sagescomputer 3837 May 22 2007 logoff.php -rwxrwxr-x 1 tim sagescomputer 6313 May 22 2007 password_forgotten.php -rwxrwxr-x 1 tim sagescomputer 1494 May 22 2007 popup_image.php -rwxrwxr-x 1 tim sagescomputer 1384 May 22 2007 popup_search_help.php -rwxrwxr-x 1 tim sagescomputer 3560 May 22 2007 privacy.php -rwxrwxr-x 1 tim sagescomputer 12873 May 22 2007 product_info.php -rwxrwxr-x 1 tim sagescomputer 9613 May 22 2007 product_reviews_info.php -rwxrwxr-x 1 tim sagescomputer 11229 May 22 2007 product_reviews.php -rwxrwxr-x 1 tim sagescomputer 11228 May 22 2007 product_reviews_write.php -rwxrwxr-x 1 tim sagescomputer 6939 May 22 2007 products_new.php drwxrwxr-x 2 tim sagescomputer 4096 May 22 13:40 pub -rwxrwxr-x 1 tim sagescomputer 3074 May 22 2007 redirect.php -rwxrwxr-x 1 tim sagescomputer 7494 May 22 2007 reviews.php -rwxrwxr-x 1 tim sagescomputer 3563 May 22 2007 shipping.php -rwxrwxr-x 1 tim sagescomputer 11532 May 22 2007 shopping_cart.php -rwxrwxr-x 1 tim sagescomputer 5711 May 22 2007 specials.php -rwxrwxr-x 1 tim sagescomputer 3259 May 22 2007 ssl_check.php -rwxrwxr-x 1 tim sagescomputer 5859 May 22 2007 stylesheet.css -rwxrwxr-x 1 tim sagescomputer 10202 May 22 2007 tell_a_friend.php You can check it out for yourself here.. http://osc.swingthing.net Any help would be greatly appreciated. Thank you.
Guest Posted May 22, 2007 Posted May 22, 2007 you should check if there is some sort of redirection in your .htaccess. And switch off the osc stock friendly urls.
MSP Posted May 22, 2007 Posted May 22, 2007 And switch off the osc stock friendly urls. this is most likely the problem judging from the link you provided admin>config>Use Search-Engine Safe URLs (still in development) set to false
maestro2020 Posted May 22, 2007 Author Posted May 22, 2007 this is most likely the problem judging from the link you providedadmin>config>Use Search-Engine Safe URLs (still in development) set to false I just did that, but no change. Anything else you can think of? Did you mean "Use Search-Engine Safe URLs (still in development)"?
Guest Posted May 22, 2007 Posted May 22, 2007 I just did that, but no change.Anything else you can think of? Did you mean "Use Search-Engine Safe URLs (still in development)"? yea that was one. The .htaccess file where the osc is installed is the next you need to check.
maestro2020 Posted May 23, 2007 Author Posted May 23, 2007 yea that was one. The .htaccess file where the osc is installed is the next you need to check. There isn't a .htaccess file at the site's root.
Guest Posted May 23, 2007 Posted May 23, 2007 There isn't a .htaccess file at the site's root. there is, because when I try to access it I get ForbiddenYou don't have permission to access /.htaccess on this server. Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7a PHP/4.3.9 Server at osc.swingthing.net Port 80
maestro2020 Posted May 23, 2007 Author Posted May 23, 2007 there is, because when I try to access it I get I just spoke with my server admin via iChat. Here's what was said.. ME: Ok. I am in communication with one of the cart developers, who is trying to help me find out why it is not behaving as it should. He tells me there might be something wrong with the .htaccess file in the directory - swingthing.net/osc - but there is not a .htaccess file visible there when I SSH in. He still is convinced there is based on his tests. Is there another one higher up the food chain that could give him such an impression? He says that when he tries to access it he gets the following message "ForbiddenYou don't have permission to access /.htaccess on this server. Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.7a PHP/4.3.9 Server at osc.swingthing.net Port 80" And he thinks that that message means there is one to refuse access to. HIM: it is correct that you can't access a .htaccess file via web it is made to refuse however it will refuse if one is there or not there ME: ok, I'll tell him thanks HIM: http://www.swingthing.net/.htnofile here is an example anything starting with .ht gets the forbidden message So, I can assure you, there is not one there. Here is my SSH listing from the domain root (swingthing.net), down to the subdomain that has been assigned to it (osc.swingthing.net); and if you care to look, there are not any .htaccess files as you traverse the directory path: Last login: Wed May 23 07:26:05 on consoleWelcome to Darwin! timothy-halls-power-mac-g5:~ w3$ ssh [email protected] [email protected]'s password: Last login: Wed May 23 01:16:04 2007 from 24-38-34-98-st.losaca.adelphia.net -bash-3.00$ pwd /var/www/GROUPS/tim -bash-3.00$ ls -al total 44 drwxr-xr-x 3 tim root 4096 Apr 16 18:07 . drwxr-xr-x 16 root root 4096 Jul 28 2006 .. -rw------- 1 tim sagescomputer 4939 May 23 01:30 .bash_history lrwxrwxrwx 1 root root 19 Apr 16 18:07 mysqld.log -> /var/log/mysqld.log lrwxrwxrwx 1 root root 35 Nov 13 2006 swingthing.net -> /var/www/customer/s/swingthing.net/ drwxr-xr-x 4 root root 4096 Nov 16 2005 tour -bash-3.00$ cd swingthing.net -bash-3.00$ pwd /var/www/GROUPS/tim/swingthing.net -bash-3.00$ ls -al total 216 drwxr-xr-x 27 tim root 4096 May 22 16:45 . drwxr-xr-x 19 root root 4096 Nov 9 2006 .. drwxrwxr-x 3 tim sagescomputer 4096 Apr 6 17:21 contents drwxr-xr-x 3 tim sagescomputer 4096 May 2 21:22 crush drwxrwxr-x 7 tim sagescomputer 4096 Mar 12 18:52 dev drwxr-xr-x 4 tim sagescomputer 4096 Dec 27 02:08 flash drwxrwxr-x 14 tim sagescomputer 4096 Mar 5 11:04 flobeds drwxr-xr-x 18 tim sagescomputer 4096 Nov 9 2006 freeShows drwxrwxr-x 2 tim sagescomputer 4096 Apr 12 14:30 images drwxr-xr-x 23 tim sagescomputer 4096 May 6 17:40 issues drwxr-xr-x 2 root root 4096 Nov 22 16:24 logs drwxr-xr-x 2 root root 4096 Nov 22 15:40 logs.bak drwxr-xr-x 3 tim sagescomputer 4096 Nov 20 2006 mapwing drwxr-xr-x 4 tim sagescomputer 4096 Nov 20 2006 noah drwxr-xr-x 4 tim sagescomputer 4096 Nov 20 2006 noodleflix drwxrwxr-x 3 tim sagescomputer 4096 May 22 13:32 osc drwxr-xr-x 7 tim sagescomputer 4096 Dec 30 16:52 podcast drwxr-xr-x 2 tim sagescomputer 4096 Nov 9 2006 rss drwxr-xr-x 4 root root 4096 Nov 20 2006 sage drwxrwxrwx 4 tim sagescomputer 4096 Nov 20 2006 sage2 drwxr-xr-x 3 tim sagescomputer 4096 May 22 18:31 saz drwxr-xr-x 25 tim sagescomputer 4096 Apr 27 20:59 sketchup drwxr-xr-x 8 tim sagescomputer 4096 Nov 20 2006 tests drwxrwxrwx 8 tim sagescomputer 4096 Jan 1 19:40 tim drwxr-xr-x 22 tim sagescomputer 4096 May 11 17:33 www drwxr-xr-x 13 tim sagescomputer 4096 May 22 19:41 zencart drwxr-xr-x 2 tim sagescomputer 4096 Nov 20 2006 zoomify -bash-3.00$ cd osc -bash-3.00$ pwd /var/www/GROUPS/tim/swingthing.net/osc -bash-3.00$ ls -al total 24 drwxrwxr-x 3 tim sagescomputer 4096 May 22 13:32 . drwxr-xr-x 27 tim root 4096 May 22 16:45 .. drwxrwxr-x 7 tim sagescomputer 4096 May 22 14:06 catalog -bash-3.00$ cd catalog -bash-3.00$ pwd /var/www/GROUPS/tim/swingthing.net/osc/catalog -bash-3.00$ ls -al total 732 drwxrwxr-x 7 tim sagescomputer 4096 May 22 14:06 . drwxrwxr-x 3 tim sagescomputer 4096 May 22 13:32 .. -rwxrwxr-x 1 tim sagescomputer 12039 May 22 18:59 account_edit.php -rwxrwxr-x 1 tim sagescomputer 11563 May 22 18:59 account_history_info.php -rwxrwxr-x 1 tim sagescomputer 7530 May 22 18:59 account_history.php -rwxrwxr-x 1 tim sagescomputer 7188 May 22 18:59 account_newsletters.php -rwxrwxr-x 1 tim sagescomputer 11310 May 22 18:59 account_notifications.php -rwxrwxr-x 1 tim sagescomputer 8224 May 22 18:59 account_password.php -rwxrwxr-x 1 tim sagescomputer 11418 May 22 18:59 account.php -rwxrwxr-x 1 tim sagescomputer 9044 May 22 18:59 address_book.php -rwxrwxr-x 1 tim sagescomputer 18251 May 22 18:59 address_book_process.php drwxrwxr-x 4 tim sagescomputer 4096 May 22 18:43 admin -rwxrwxr-x 1 tim sagescomputer 10344 May 22 19:02 advanced_search.php -rwxrwxr-x 1 tim sagescomputer 14595 May 22 19:02 advanced_search_result.php -rwxrwxr-x 1 tim sagescomputer 16065 May 22 19:02 checkout_confirmation.php -rwxrwxr-x 1 tim sagescomputer 22061 May 22 19:02 checkout_payment_address.php -rwxrwxr-x 1 tim sagescomputer 17363 May 22 19:02 checkout_payment.php -rwxrwxr-x 1 tim sagescomputer 16325 May 22 19:02 checkout_process.php -rwxrwxr-x 1 tim sagescomputer 22096 May 22 19:02 checkout_shipping_address.php -rwxrwxr-x 1 tim sagescomputer 20323 May 22 19:02 checkout_shipping.php -rwxrwxr-x 1 tim sagescomputer 6883 May 22 19:02 checkout_success.php -rwxrwxr-x 1 tim sagescomputer 3436 May 22 19:02 conditions.php -rwxrwxr-x 1 tim sagescomputer 6413 May 22 19:02 contact_us.php -rwxrwxr-x 1 tim sagescomputer 3779 May 22 19:02 cookie_usage.php -rwxrwxr-x 1 tim sagescomputer 22534 May 22 19:02 create_account.php -rwxrwxr-x 1 tim sagescomputer 3919 May 22 19:02 create_account_success.php drwxrwxr-x 2 tim sagescomputer 4096 May 22 13:36 download -rwxrwxr-x 1 tim sagescomputer 4229 May 22 19:02 download.php drwxrwxrwx 13 tim sagescomputer 4096 May 22 13:37 images drwxrwxr-x 8 tim sagescomputer 4096 May 22 13:39 includes -rwxrwxr-x 1 tim sagescomputer 18956 May 22 19:06 index.php -rwxrwxr-x 1 tim sagescomputer 1443 May 22 19:06 info_shopping_cart.php -rwxrwxr-x 1 tim sagescomputer 10492 May 22 19:06 login.php -rwxrwxr-x 1 tim sagescomputer 3837 May 22 19:06 logoff.php -rwxrwxr-x 1 tim sagescomputer 6313 May 22 19:06 password_forgotten.php -rwxrwxr-x 1 tim sagescomputer 1494 May 22 19:06 popup_image.php -rwxrwxr-x 1 tim sagescomputer 1384 May 22 19:06 popup_search_help.php -rwxrwxr-x 1 tim sagescomputer 3560 May 22 19:06 privacy.php -rwxrwxr-x 1 tim sagescomputer 12873 May 22 19:06 product_info.php -rwxrwxr-x 1 tim sagescomputer 9613 May 22 19:06 product_reviews_info.php -rwxrwxr-x 1 tim sagescomputer 11229 May 22 19:06 product_reviews.php -rwxrwxr-x 1 tim sagescomputer 11228 May 22 19:06 product_reviews_write.php -rwxrwxr-x 1 tim sagescomputer 6939 May 22 19:06 products_new.php drwxrwxr-x 2 tim sagescomputer 4096 May 22 13:40 pub -rwxrwxr-x 1 tim sagescomputer 3074 May 22 19:07 redirect.php -rwxrwxr-x 1 tim sagescomputer 7494 May 22 19:07 reviews.php -rwxrwxr-x 1 tim sagescomputer 3563 May 22 19:07 shipping.php -rwxrwxr-x 1 tim sagescomputer 11532 May 22 19:07 shopping_cart.php -rwxrwxr-x 1 tim sagescomputer 5711 May 22 19:07 specials.php -rwxrwxr-x 1 tim sagescomputer 3259 May 22 19:07 ssl_check.php -rwxrwxr-x 1 tim sagescomputer 5859 May 22 19:07 stylesheet.css -rwxrwxr-x 1 tim sagescomputer 10202 May 22 19:07 tell_a_friend.php -bash-3.00$ Can you think of any other possible thing that might cause this to happen?
Guest Posted May 23, 2007 Posted May 23, 2007 yes these file prefixes in general can be controlled by the server settings but these files can be hidden also so I have no way to see that from outside. And so how comes that you don't have an .htaccess? There is one, that comes with the stock osc. So did you removed it? The other thing to check is the catalog\includes\configure.php file. If you post it here exclude the dbase private info.
maestro2020 Posted May 23, 2007 Author Posted May 23, 2007 I just spoke with my server admin via iChat.Here's what was said.. So, I can assure you, there is not one there. Here is my SSH listing from the domain root (swingthing.net), down to the subdomain that has been assigned to it (osc.swingthing.net); and if you care to look, there are not any .htaccess files as you traverse the directory path: Can you think of any other possible thing that might cause this to happen? FOLLOW UP: :-" Right after making the last post, I realized I should tighten up the permissions on the files. I used the two following terminal commands.. find . -type d ! -perm 777 -exec chmod 755 {} \; This finds all files that are directories with permissions that are not 777, and changes their permissions to 755. and find . ! -type d ! -perm 644 -exec chmod 644 {} \; This finds all files that are not directories, with permissions that are not 644, and changes their permissions to 644 Then I went to http://osc.swingthing.net and clicked on one of the thumbnails at the bottom, under "New products for May"; and lo!, it worked - but only that once. After that it went back to the same behavior as before. Could this then have something to do with caching, I wonder?
Guest Posted May 23, 2007 Posted May 23, 2007 looks that is working now. Directories should be 755, files 644 except the configure.php ones (should be 400)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.