Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: SAFE MODE Restriction in effect


jpf

Recommended Posts

Posted

Newbe user of OSC: (are't we all asking this questions)

 

Just finished installing Loaded 5.....

 

I having a problem with ADMIN (and some other areas - may be related?) - looks like it can't access or write to the LOG file.

 

Page:http://myhost.com/catalog/admin/orders_status.php?page=1&oID=3&selected_box=catalog (and =modules ect....)

 

Warning: SAFE MODE Restriction in effect. The script whose uid is 549 is not allowed to access /var/log owned by uid 0 in /home/virtual/site47/fst/var/www/html/catalog/admin/includes/classes/logger.php on line 49

 

Warning: error_log: Unable to write to /var/log/www/tep/page_parse_time.log in /home/virtual/site47/fst/var/www/html/catalog/admin/includes/classes/logger.php on line 49

Parse Time: 0.072s

 

 

 

I am not able (not allowed to) CHMOD or MKDIR or anything in /var/log/

(500 Permission denied or 550 Operation not permitted). I do not have root access -(ISP virtual server)

 

 

In http://myhost.com/catalog/default.php - on the bottom of the page it displays an error:

 

 

Error!

 

Unable to determine connection method on a link!

 

Known methods: NONSSL SSL

 

 

 

Suggestion? What am I missing.

Posted

UPDATE:

 

Warning: SAFE MODE Restriction in effect. - NOW FIXED

 

Had PHP.INI changed

SAFEMODE=NO

 

 

How ever I still have the other two problems.

 

Anyone?

  • 1 month later...
Posted

Is the only way around the Safe mode by editing PHP.INI?

 

Can it be changed in htaccess?

 

tom

Thomas A. Moulton, W2VY

osCommerce core developer osc2.1 to osc 2.3.x

Support the developers!

http://www.oscommerce.com/about/team

Posted

According to php.net ( http://www.php.net/function.ini-set ) it can only be set in the php.ini or httpd.conf

The latter suggesting it *might* be possible to override it with .htaccess which I think is highly unlikely as safe_mode is a security measure.

 

Never tried it though.

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I politely asked my ISP to change the PHP.INI - which he did for my site in under an hour from my email request. Not all are so fast or willing.

 

If you don't ask - you will not get it done. It is a simple thing to do and they should have little to no problem doing it.

Posted
According to php.net ( http://www.php.net/function.ini-set ) it can only be set in the php.ini or httpd.conf

The latter suggesting it *might* be possible to override it with .htaccess which I think is highly unlikely as safe_mode is a security measure.

 

Never tried it though.

 

Mattice

 

ini-set forgot to check there...

 

That answers it, it can't be in htaccess...

 

The good news is putting it in httpd.conf will allow it to be disabled

on a per domain basis.

 

thank

Thomas A. Moulton, W2VY

osCommerce core developer osc2.1 to osc 2.3.x

Support the developers!

http://www.oscommerce.com/about/team

  • 2 months later...
Posted

My ISP wants ?55 to set this variable...

 

This is what they said:

We cannot set safe_mode to off in a shared environment. We *can* however compile a binary for your site and set safe_mode to off. This will cost GBP55 plus VAT.

 

Surely they could just change it in the httpd.conf file????

Posted

There are charging you HOW much? Do do this:

 

From PHP.NET site:

 

register_globals

set in:PHP_INI_PERDIR|PHP_INI_SYSTEM

PHP_INI_PERDIR Entry can be set in php.ini, .htaccess or httpd.conf

PHP_INI_SYSTEM Entry can be set in php.ini or httpd.conf

 

http://ca3.php.net/register_globals

It's possible to set register_globals to "off" on a site-by-site basis via Apache, thus overriding the "global" setting of register_globals in php.ini:

 

In httpd.conf:

 

<VirtualHost 127.0.0.1>

ServerName localhost

DocumentRoot /var/www/html/mysite

php_value register_globals 0 (or 1 for "on")

</VirtualHost>

 

That way, sites with old code can have register globals turned on, but for all new developments it will be disabled.

 

I can get a 1+ year of vhost (that is more willing to change php.ini for you @N/C - he did for me) for about the same price or LESS! My host would charge 82.91 (62.91 + 10 one time account setup + 10 one time dedicated IP setup) for first year and 62.91 per year after. He is more than willing to make these changes for no charge! The owner fixed up my register_globals=On (for my vhost only) in 1 or 2 hour (including emailing time back and forth and support wait time) and charged me ZIP-NADA-NOTHING!.... To make this correction.

 

Note: As per XE.COM 55 GBP = $87.41 USD A real rip! This is a total hose down! (IMHO) for a 10 or 15 max to change (if they move slow)!

 

PM me if you want my suggestion for hosting.... (I don't get anything out of doing this - just satifaction)

Posted

Uh......sorry, but i really don't know how this happened??? Because you use the ssl setting?? Or some other causes?? How did it happen??

 

 

thanks :wink:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...