Guest Posted March 22, 2007 Posted March 22, 2007 Hi, I'm a new user of osCommerce. It is very much appreciated if I get help from this forum to do configuration. I've installed the osCommerce. When I entered http://www.mydomainame.com/admin, it asked for a user name and password. I typed the details given by osCommerce. After accepting the user name and password, the following error message was displayed on the screen: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory . I've changed the setting of the register_globals from "On" to "Off" (I don't know what I'm doing). I still get the same error message. Could you pls help me with this error. Thank you very much. Regards, osbook
luckysoul Posted March 22, 2007 Posted March 22, 2007 Hi, I'm a new user of osCommerce. It is very much appreciated if I get help from this forum to do configuration. I've installed the osCommerce. When I entered http://www.mydomainame.com/admin, it asked for a user name and password. I typed the details given by osCommerce. After accepting the user name and password, the following error message was displayed on the screen: Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory . I've changed the setting of the register_globals from "On" to "Off" (I don't know what I'm doing). I still get the same error message. Could you pls help me with this error. Thank you very much. Regards, osbook restart ur server?
Guest Posted March 22, 2007 Posted March 22, 2007 restart ur server? How to restart my server? I purchase my shared server from a hosting company. This is my very first time trying to load a website and trying to use the e-commerce software.
zarren Posted March 22, 2007 Posted March 22, 2007 How to restart my server? I purchase my shared server from a hosting company. This is my very first time trying to load a website and trying to use the e-commerce software. View my contributions and download the register globals patch and drop the file into your public_html folder and see if this works.
Guest Posted March 23, 2007 Posted March 23, 2007 View my contributions and download the register globals patch and drop the file into your public_html folder and see if this works. Hi, I've included the following in the .htaccess file: ErrorDocument 404 /catalog/index.php ************************************************************* The complete .htaccess file is as follows: # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # # AllowOverride Options # # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # # # php_value session.use_trans_sid 0 # php_value register_globals 1 # ErrorDocument 404 /catalog/index.php suPHP_ConfigPath/home/hugotst3/public_html ***************************************************** I still got the following errors when I type www.mydomainame.com/admin Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.37 Server at www.hugotest.com Port 80
jmhaf Posted March 23, 2007 Posted March 23, 2007 How to restart my server? I purchase my shared server from a hosting company. This is my very first time trying to load a website and trying to use the e-commerce software. I got into hosting a while ago, tried doing it as a commercial deal reselling space with a commercial account and i was given a vps type deal which is just a fancier name for shared hosting. Had many shared accounts and dedicated servers, still not exactly a very knowledgeable person but my experience with shared hosts is that your kinda screwed if what they have in the way of php/mysql versions and config files is not what you need. What they give you is what you got. Ive been building my own server systems since and its allowed me to learn alot more than i would have otherwise. had formal training as a webmaster but ive learned enough to say there is a big difference between a web developer and webmaster. I can code but web developers can run circles around me. Ive been burying myself in php and mysql books now for a year or two, still scratching my scalp raw over the specifics that would set me on a good path but i make some progress here and there. Ive been asked to take over my brothers business site and provide the things that oscommerce offers, still not getting far. Had a rare opportunity to do for myself something ive been wanting to have since i saw them. Got a mac. Last of the 2003 dual g5 ones. Been using osx server for everything since. Finding the right config and ini files is a real task but i got enough figured out from digging on various sites to get php5 and the latest stable mysql package for mac working for the default apache 1.3 server via server admin. Even found a ssl provider that didnt rape my pockets before i could find out if the certificate would work on mac servers. I had the register globals message pop up before anything else did but i tracked it down and turned it on. Stopped apache and restarted works good, now if only i could get past the step two, which keeps looping. Its a clean install as far as i can tell all my config files are in order and both php and mysql are behaving just fine. The average linux/unix host shared or not, simply from command line is easy to manage rebooting and starting and stopping services. Hope this sheds some light. First thing id do is type SU at the command prompt. It will ask you for your root password which your host provider should provide you with even on a shared host. (some ive found wont but most do). at which point you should see a command line prompt that might look like this one.. /Users/james root# Be very sure what you type as root is exactly what it should be, terrible things can happen that are hard to fix if you goof up. or if your os supports it, a safer thing to do is run sudo. so at a normal command line prompt that might look like this.. /Users/james$ You would type in for reboot.. /Users/james$sudo shutdown -r now sudo gives your commands same permissions as root but your safer this way because you wont have those. Some servers respond to commands like reboot or halt. substitute the -r in the above shutdown command for -h which will shutdown the system and power off. from the command line finding your webservices for shutting down you could do something like this. You will have to find the services PID which means process ID. Once you know that you can move on to terminate the process. /Users/james$sudo top This brings up a screen in the command line that looks something like whats below. Processes: 97 total, 2 running, 95 sleeping... 472 threads 07:33:18 Load Avg: 0.51, 0.49, 0.49 CPU usage: 6.2% user, 14.0% sys, 79.8% idle SharedLibs: num = 216, resident = 45.7M code, 4.63M data, 11.3M LinkEdit MemRegions: num = 16045, resident = 524M + 13.3M private, 209M shared PhysMem: 127M wired, 505M active, 361M inactive, 994M used, 29.5M free VM: 9.85G + 145M 287844(0) pageins, 338048(0) pageouts PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE VSIZE 11615 top 21.9% 0:04.68 1 19 22 564K 440K 2.48M 27.0M 11570 bash 0.0% 0:00.01 1 14 17 196K 888K 816K 27.2M 11569 login 0.0% 0:00.01 1 16 36 148K 456K 560K 26.9M 11381 X-Chat A 0.3% 0:21.05 6 150 227 5.70M 14.3M 29.6M 162M 11302 pickup 0.0% 0:00.03 1 16 19 184K 492K 796K 26.7M 10448 httpd 0.0% 0:11.61 1 12 245 1.38M 17.8M 6.50M 67.6M 10443 httpd 0.0% 0:11.80 1 12 245 1.45M 17.8M 6.53M 67.6M 10441 httpd 0.0% 0:00.84 1 10 244 160K 17.8M 7.59M 82.2M 9016 TextEdit 0.0% 0:01.11 4 137 146 1.88M 7.67M 10.2M 150M 8549 slpd 0.0% 0:00.21 6 31 34 212K 748K 1008K 30.2M 8243 TextMate 0.0% 1:22.69 11 210 303 99.4M 26.0M 110M 266M 8160 cupsd 0.0% 0:00.20 2 30 26 388K 804K 752K 27.8M 8149 Server Ad 0.1% 1:34.66 5 169 379 21.3M 13.4M 32.5M 249M 8008 Terminal 0.4% 0:45.20 8 211 193 2.34M 9.71M 11.5M 160M 7608 DashboardC 0.0% 0:00.94 7 155 172 1.82M 4.14M 4.30M 149M 7607 DashboardC 0.0% 0:00.96 6 147 165 1.02M 3.78M 3.56M 148M Most of the you dont need to know what it means, but you want to shutdown apache, which the system knows as httpd, you will not ice that the PID for the httpd is 10441. so assuming your using sudo like my example you would do something like below. /Users/james$sudo kill 10441 If you are succesful and nobody died, go ahead and restart apache like this /Users/james$sudo httpd unix command line is like dos, majority of the dos shell commands were actually unix commands. If your host is any good they either wont let the novices get command line access and or you do all that fancy stuff through a webmin interface. But if your going to host a site its important to know this stuff. Linux/Unix commands and different aspects of how it behaves are going to vary since open source means whoever built the code can make it do anything they want. But they all share some common ground here and there. Hope this unfogs your mirror a bit.
thugpolice Posted March 23, 2007 Posted March 23, 2007 View my contributions and download the register globals patch and drop the file into your public_html folder and see if this works. I am in the same boat as osbook. :blush:
♥Vger Posted March 23, 2007 Posted March 23, 2007 Sometimes on a shared server you have access to a local copy of php.ini which you can edit to set Register Globals to 'on'. If you don't have access to a local copy of php.ini then if your site is hosted on an Apache server you can try putting this cod einto a .htaccess file in the root of your website: php_flag register_globals On or php_value register_globals On If using 'On' doesn't work then replace it with 1 If that doesn't work (if your host disallows it or your site is on a Windows server) then create your own php.ini file, and place it in the root of your website and inside your 'admin' and 'install' folder with this in it: Register Globals = On Vger
thugpolice Posted March 23, 2007 Posted March 23, 2007 I got into hosting a while ago, tried doing it as a commercial deal reselling space with a commercial account and i was given a vps type deal which is just a fancier name for shared hosting..... If your host is any good they either wont let the novices get command line access and or you do all that fancy stuff through a webmin interface. But if your going to host a site its important to know this stuff. Linux/Unix commands and different aspects of how it behaves are going to vary since open source means whoever built the code can make it do anything they want. But they all share some common ground here and there. Hope this unfogs your mirror a bit. This topic fixed it for me: http://www.oscommerce.com/forums/index.php?sho...egister_globals :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.