Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP in safe mode


Guest

Recommended Posts

Posted

Hi Guys,

 

I did a post few days ago about getting error messages on some admin pages (and when trying to run the install script (ended up setting config manualy)

 

The host has now told me the errors are due to the fact that they are running php in safe mode which is why im getting some errors liek the folowing

 

"Warning: main(): open_basedir restriction in effect"

 

Now the host is not prepared to change this so is there a way i can get oscommerce working even with this restriction.

 

The host said:

"A work around would be to replace this file and adjust the path in the function.

The restriction affects require(), include(), file(), readdir() .. etc."

 

Im not entirley shure what he means and how to apply this to oscommerce in general.

 

Hope somone can help,

 

Thanks,

 

Chris

Posted
Hi Guys,

 

I did a post few days ago about getting error messages on some admin pages (and when trying to run the install script (ended up setting config manualy)

 

The host has now told me the errors are due to the fact that they are running php in safe mode which is why im getting some errors liek the folowing

 

"Warning: main(): open_basedir restriction in effect"

 

Now the host is not prepared to change this so is there a way i can get oscommerce working even with this restriction.

 

The host said:

"A work around would be to replace this file and adjust the path in the function.

The restriction affects require(), include(), file(), readdir() .. etc."

 

Im not entirley shure what he means and how to apply this to oscommerce in general.

 

Hope somone can help,

 

Thanks,

 

Chris

 

 

I am not sure this error message is related to running php in safe mode.

 

I have run my own php in safe mode for a while without any errors being generated.

It slows the server and is basically only used on shared (hosted) sites. Still, when I switch my own server into Safe, no errors errupt.

Treasurer MFC

Posted
I am not sure this error message is related to running php in safe mode.

 

I have run my own php in safe mode for a while without any errors being generated.

It slows the server and is basically only used on shared (hosted) sites. Still, when I switch my own server into Safe, no errors errupt.

 

Hi Ya,

 

Thanks for the repy,

 

I had left a bit out which the host said.

 

"The server is running php in safe mode, thats why the error message occurs, if you want to open a file in a higher directory level, it will result in an error message. "

 

I have actualy noticed the store running (well the bits that do run) prety slowely (compared to another store i have set up on a completley dfferent host)

 

Is there any way I can get around this problem?

 

Chris

Archived

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

×
×
  • Create New...