Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
restarting apache & code error?
Old 04-18-2005, 03:28 PM restarting apache & code error?
dant's Avatar
Super Talker

Posts: 148
Trades: -1
Hi,

I have tried installing Oscommerce on a site and I have received the error "FATAL ERROR: register_globals is disabled in php.ini"

A quick search has told me that I need to create a file php.ini and I have added "register_globals = On" and then uploaded it to the sites root. Is this the correct way so far or should it have been done through htaccess?

After this I still receive the error and have found out I need to restart the apache server? I do not own the server and have got windows running as well as cPanel on the server.

This may be a simple question but I desperately need an answer! How can I restart apache from cPanel? I have got some results from google but I dont understand it as it is mainly unix commands.

Thanks in advance
dant is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-18-2005, 04:59 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
if you host your site your self you should of installed php right... defualt on win install is c:/php/ so in your php dir there should be a file called php.ini find it and in their should be a switch with what your looking at...

if you have cpanel installed on your site that is for the consumers to use with thier site (if you a re a reseller) if you as working with a hosting company call them and find out what they know... most of the time they will not alter the php install. they just run it standard and require you to get a didecated server then they may do it.

i use total choice hosting what great company highly recommend them. have unlimited everything with cpanel
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 04-19-2005, 03:02 AM
dant's Avatar
Super Talker

Posts: 148
Trades: -1
Sorry I may have been misleading there....

I'm not running any sort of hosting site or being a reseller, and the server is not mine.

The hosting is nothing to do with myself but the host has cpanel installed. I have now emailed the host so I shall see what they say.

Hopefully I wont need a dedicated server - If I do I will change the script or wait for version 3
dant is offline
Reply With Quote
View Public Profile
 
Old 04-19-2005, 06:56 PM
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
who ever hosts that (a site) you need to contact and verify they have the php.ini set up to work with that...

Cpanel Should have a script with the oscommerce auto install..
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 04-19-2005, 07:32 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
If your host will not cooperate create a .htaccess file in the root folder and put this in it...

Code:
php_flag register_globals Off
This should work if the host has enabled .htaccess files and is using php as an apache module rather than a cgi.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 04-19-2005, 07:34 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
As you can see, register_globals is changable PHP_INI_PERDIR, meaning you can use htaccess to set the value.

Just create a htaccess file in the root of your osC with this:
Code:
php_flag register_globals On
This will work on most hosts.

Ah Dave, beat me to it
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 04-19-2005, 07:38 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
However I typoed mine so you win Chris. I set them to off rather than on.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to restarting apache & code error?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.87583 seconds with 12 queries