siavash Posted June 22, 2004 Posted June 22, 2004 Hi I have installed Apache 1.3.31 server, PHP4, and MySQL all on Windows XP Home Edition. Despite my limited knowledge I have managed to configure them all right after a few attempts and they seem to work properly. I wanna test drive OsCommerce on my computer first. I have followed the Wiki instructions ( http://wiki.oscommerce.com/docsInstallNew ) to install OSC. my problem is: I have no clue how to reset permissions as required at the last stage of installation! (eg. "Reset the permissions on /catalog/includes/configure.php to 644", etc.) all else has gone well except the end result! i get the following error message when i click either the catalog or administration tool: Forbidden You don't have permission to access /catalog/install/://loalhost/catalog/index.php on this server. i have looked at a lot of contributions including some by "stevel" and also community ( http://www.oscommerce.com/community/bugs,1585 ) but haven't been able to resolve this matter yet. I'm desparate to make this work ASAP. Also, I am doing this experiment on Windows using Apache, however my Hosting company runs Linux servers + MySQL. will there be any complications to set up the OsC? will I have to do additional things? I have no knowledge of Linux unfortuantely! Appreciate your support. Cheers. -Siavash- Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Guest Posted June 22, 2004 Posted June 22, 2004 with windows, you right click on the folder and or file and then change the permissions from read only, if this is local then the easiest thing to do is change the rights on the whole osc folder, right click it and then clear the read only box, let it clear for all folders below too
siavash Posted June 23, 2004 Author Posted June 23, 2004 Thanks John for the comment. I unchecked the read-only permissions in the properties dialog but i still get the same error message! Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
siavash Posted June 24, 2004 Author Posted June 24, 2004 I have been reading lots of contrbutions but haven't found the answer yet. in order not to duplicate this, please can anyone help me with the problem mentioned here I haven't been able to resolve it. I use PHP 4, Apache 1.3, MySQL on MS Win XP Home edition. I unchecked the "read-only" boxes to adjust permissions but it still doesn't work. Also, how different would installation be on Linux? Thanx, -siavash- Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Terje Posted June 24, 2004 Posted June 24, 2004 you might try this one. This worked well for me. First you have to make a file in Wordpad/Notepad (or something else if you prefer) and call it, let's say chmod_file.php. In this file you write only this: <?php chmod('includes/configure.php', 0644); ?> Then you have to write in the URL in the browser like this: http://www.your_domain.something/Your_webs.../chmod_file.php If you put this file in the root-folder the URL will look like this: http://www.your_domain.something/chmod_file.php
siavash Posted June 24, 2004 Author Posted June 24, 2004 Terje, I made a .php file as you suggested in notepad and saved it in the root web. opened the URL in he browser. and what then? nothing of course appeared. i closed the page and back to mt installation. the original problem persists! it's driving me mad! Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Terje Posted June 24, 2004 Posted June 24, 2004 Nothing visual should happen, it should only CHMOD your config-file to 644, nothing more (or less) :unsure: Do you get the same error after doing this? Even with Refresh?
siavash Posted June 24, 2004 Author Posted June 24, 2004 Yeah. i get the exact same message each time! i have even started installation a couplla times. didn't help. did you experience thesame problem? and it was resolved with deploying that code? Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
siavash Posted June 24, 2004 Author Posted June 24, 2004 Can anyone help? when i get to step 7 of the installation this is what i get: (please click the following URL to see the screenshots) successful installation but when i click either button there is a 403 error! what should i do to resolve the issue? anyone? Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Guest Posted June 24, 2004 Posted June 24, 2004 well with you blocking out the web site name, not much we can do to help you, as you dont give very much information. from what it looks like to me, you have your configure.php files messed up.
siavash Posted June 24, 2004 Author Posted June 24, 2004 John if you read this http://www.oscommerce.com/forums/index.php?showtopic=98902 all is explained in detail. Also the black out bit is only the localhost. since there was my computer name/network name i've covered it. it should'nt be causing the poblem. any ideas? Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Guest Posted June 24, 2004 Posted June 24, 2004 i looked to the right of what you blacked out, it should not read that way at all. it should only read if you are going to the catalog and you have it installed in catalog: http://www.domain.com/catalog if admin http://www.domain.com/catalog/admin you have a whole bunch of stuff after that, is why i am letting you know that you probably have something wrong with your configure.php file. post that here without the database, username, and password info. since you are using your local computer, if you have it setup to use a web folder, then your link would be http://localhost/whatever your document root paths are not right in your files.
siavash Posted June 24, 2004 Author Posted June 24, 2004 how can i correct the paths? they were simply generated during the installation as far as i understand! so what should i do now? Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Guest Posted June 24, 2004 Posted June 24, 2004 read the instructions here http://internetmaster.com/installtutorial/index.htm they show how to setup your system for a localhost
siavash Posted June 24, 2004 Author Posted June 24, 2004 just checked my installations. Apache, PHP, and MySQL based on what you sent. all are configured alright and work fine! Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Guest Posted June 24, 2004 Posted June 24, 2004 then you should be able to access the store by http://localhost/foldername as long as the foldername is inside what you have defined
Guest Posted June 24, 2004 Posted June 24, 2004 check your httpd.conf file which is located in program files apache conf folder, for this: # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/Web" what is it set to? that is where your oscommerce files will go, if you put them in a folder you will be able to add more 'sites' to your web folder without hurting anything, ie if you name it catalog then you access it by http://localhost/catalog and the files are located in c:\web\catalog however in your configure.php files you put it as c:/web/catalog/ for your locations, and http://localhost/catalog is the http server setting
siavash Posted June 24, 2004 Author Posted June 24, 2004 thanks. I gotta check the apache config (httpd.conf ?) again in more detail. however had a quick look just now and it looks like this: ... ServerRoot "C:/Program Files/Apache Group/Apache" ... DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs" ... <Directory "C:/Program Files/Apache Group/Apache/htdocs"> to start the OSC i type this URL: http://localhost/catalog and click on install fie and it guides me thru till i get the 403 error (previously stated problem). Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
ripesz Posted June 24, 2004 Posted June 24, 2004 Hi, I have installed the osC to winXP, apache, but I get this "Forbidden" message, if I want to link to somewhere from the admin page. It means, that the URL adress will be http://localhost/catalog/admin/://localhos...0602291dacd5fa5. What can I do? I have read the mentioned articles, but these did't solve my problems. Thanks in advance, Ripesz
siavash Posted June 24, 2004 Author Posted June 24, 2004 hiya Ripesz, this is almost exactly what happens to me! let's carry on here to see how we can sort it out. Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
siavash Posted June 26, 2004 Author Posted June 26, 2004 i finally resoveld the matter yesterday. i did a clean install of my OsCommerce. the problem for whatever reason orginated from two things in the configure files in the catalog and admin includes. once i corrcetd the path problem all worked absolutely fine. those who experience similar problem do these: 0. As others also mentioned earlier first ensure that your Apache, PHP and MySQL are all setup alright and configured right. also, ensure that Apache and MySQL are started/running. to run a PHP test, just in case, you may create a .php file (copy and paste the following code in a notepad and save it as php) and put it in the webroot of your Apache (e.g. htdocs) then run it: i.e http://localhost/phpinfo.php -- you should see a long list of info of your php configuration, etc on your computer. the code is as follows: <?phpinfo()?> 1. make sure that the "read-only" checkbox of your admin and catalog folders are unckecked. 2. you need to edit your config files in the "catalog" and "admin" "include" folder as follows: a. make sure that your HTTP_server is set to http://localhost as follows: define ('HTTP_SERVER', 'http://localhost'); initially it was set to define ('HTTP_SERVER', '://'); which casued the path to be wrong b. do the same thing with your HTTPS_server i.e enter edit to "full path" 3. good luck! Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.