wil older version of Gallery work in safe mode?
retiredat44
Joined: 2002-09-04
Posts: 4 |
Posted: Wed, 2002-09-11 17:04 |
Hi, http://www.hostports.com/ is my host.. will v 1.26 work or was it designed to not work with Safe Mode on.. ? Such a sahme,,, maybe aq future version of Gallery will let us get around this nightmare configuration... but until then... no pictures.... at least not on my website... my site.. |
|
Posts: 487
You can use the php-cgi version to get around safe-mode issues.
There are instructions in the FAQ for this. And it's best not to use
older versions as they reason they are older ones is because they
had bugs :wink: I'm not sure, but it's likely gallery has never worked
under safe mode.
Posts: 7994
The safe mode requirement has not changed between 1.2.6 and 1.3.1. The only difference is that now we check for it in the config wizard and warn you about it. If it worked in the old version, it'll work in the new one. Just ignore the warning in the config wizard.
Posts: 5
Struggling .....
My ISP uses SAFE MODE and does not use .htaccess. However the ISP installed a php-binary in the cgi-bin directory. Calling phpinfo within setup does not show any hint about the cgi version being used.
Do I have any chance at all to get gallery running?
By the way the ISP is called kontent (www.kontent.de) located in Germany.
Posts: 7994
You have a good chance of getting it running. Did you look at FAQs 2.3 and 2.5?
Posts: 5
Thought that the method of running PHP as CGI needs the server to read the .htaccess files. This seems not to be the case with my provider.
Still, if I directly access the file called "php" in directory cgi-bin I get the message: "Security Alert! The PHP CGI cannot be accessed directly." However, this is not a binary but a perl-script which redirects to /bin/php.
Any ideas?
-------------
Whilst playing around in the setup I found that it makes substantial differences (at least on my provider's host) if relative paths or absolute paths to gallery- and albums-directory are used.
With absolute paths I can use gallery (viewing pictures), which is not possible with relative paths! Adding pictures is not possible due to the safe-mode issue, ie. exec does not work:
Warning: Cannot set time limit in safe mode in ...
Warning: exec() has been disabled for security reasons in ...
Gallery is just too good to give up now!
Posts: 487
Well, first off, Gallery tells you to use direct paths not relative ones.
So it didn't work because you didn't follow the instructions in that regard.
As the exec() being disabled, you won't be able to do much with gallery
until that part is fixed. Either by working with your ISP to solve it, or by
installing your own php-cgi binary.
Posts: 7994
That's exactly the right behaviour when you access the PHP cgi directly. It's a security precaution. It means that you have the right binary installed, so it's a good sanity check.
So now, you can follow the instructions in FAQ B.3, or use instructions that your ISP provides to make sure that all .php files use the CGI.
Posts: 5
Looks like I'm lost.
My provider told me today:
- php only in safe mode
- htaccess is not supported
- php as cgi not possible only Apache module
Not very promising indeed...
Posts: 54
Just kiss them good bye ! :smile:
Posts: 7994
:sad:
Right now it looks pretty promising that G2 will be able to run with safe_mode enabled, but it will only be useful if the webserver has some kind of graphics support compiled into it (which is likely). But, G2 is still a ways out.