Hi,
I installed Ubercart on a shared server with Mediatemple. Everything was going fine until I tried to upload images for my products, which didn't work because PHP safe mode was on. I asked Mediatemple to turn off safe mode, which now puts me in what they call "PHP Power Mode", but now all my paths seem to be wrong, as the css file isn't being found. Mediatemple says that in PHP Power Mode, :
'All paths in your scripts should be relative to your root: in other words the path "/var/www/html/" points to your website. This differs from normal script operation where paths are absolute and look more like this: "/home/virtual/domain.com/var/www/html/" This is also known as running in a chrooted environment.'
I assume this is the root of the issue, but I have no idea how to fix it. Mediatemple also provides a workaround to turning safe mode off, which is :
- Create a directory in which you'll place your php scripts that you want to have run in CGI mode. For this example, we'll use 'phpcgi'.
- In that directory, create a .htaccess file with the following contents:
Action php-script /interpreters/php-script
AddHandler php-script .php AddHandler php-script .php3 - Any php scripts that you place in that directory will now be executed by cgi-mode php.
I considered trying this, but once again, I don't know in which directory I would need to put the .htaccess file.
Would anyone have any advice for this issue ? I tried google and the forums but have had no luck finding something pertaining to Mediatemple in particular.
Here are links to Mediatemple's information about Power Mode and the safe mode workaround :
PHP Power Mode
PHP Safe Mode workaround
Any help is appreciated,
Brian
