wil older version of Gallery work in safe mode?

retiredat44

Joined: 2002-09-04
Posts: 4
Posted: Wed, 2002-09-11 17:04

Hi,
I used an older version )v 1.26) , and since it worked fine, earlier this year I did dnot pay attention to looking at whethet Safe Mode was on, but later, I put my files on a newer server a host set up. I then put in the next newer version of Gallery v 1.31 ( I think it is) and the Safe Mode problem stopped me from using Gallery ever since. Will an older version of gallery work in the Safe mode nightmare ? I have no control of my Host's setup...

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...
I loved it when it worked, what a really nice program...

my site..

http://www.virtualairforce.com/

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-09-12 10:18

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.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-14 03:52

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.

 
jspiess

Joined: 2002-09-14
Posts: 5
Posted: Sat, 2002-09-14 12:44

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.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2002-09-15 08:46

You have a good chance of getting it running. Did you look at FAQs 2.3 and 2.5?

 
jspiess

Joined: 2002-09-14
Posts: 5
Posted: Sun, 2002-09-15 09:00

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!

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-15 17:27

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.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-09-16 02:46
Quote:
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.

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.

 
jspiess

Joined: 2002-09-14
Posts: 5
Posted: Tue, 2002-09-17 19:12

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...

 
psg11

Joined: 2002-09-07
Posts: 54
Posted: Wed, 2002-09-18 03:46

Just kiss them good bye ! :smile:

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-18 08:46
Quote:
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

: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.