again an exec() disabled problem

Feierteifl
Feierteifl's picture

Joined: 2005-05-26
Posts: 12
Posted: Thu, 2005-05-26 09:55

my problem is the following

exec() is disabled by default and so i contacted my provider who mailed back and said that i had to create an .htaccess file with the following content

AddHandler php-cgi .php .php4

i added this content to the existing .htaccess file in gallery 1.5 and it worked fine but as soon as i tried this with g2 the whole gallery didn't work anymore.

any ideas what could be wrong?
I'm new with this stuff and so I don't have any ideas where the problem could be.

thx.
----

Gallery URL (optional):
Gallery version: gallery2 (beta3)
Webserver (with version):
Datatabase (with version): mysql
PHP version (eg 4.2.1): 4.3.1
phpinfo URL (optional):
Graphics Toolkit(s): GD, Imagemagick
Operating system: Linux
Web browser/version:
G1 version (for migration bugs):
:wink: :wink:

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-05-26 10:02

i guess you have the g2 rewrite module activated, have you?
then you can't just replace the existing .htaccess file with a new one with just "AddHandler php-cgi .php .php4 " in it.
You'd have to add "AddHandler php-cgi .php .php4 " at the end of the existing .htaccess file.

how to fix it in your case where it is already broken?
restore the old .htaccess file if it's still available.
or browse to the README.html file. there you'll find links to the site admin part of your G2. deactivate AND uninstall the rewrite module.

if it has nothing to do with the rewrite module, what do you mean by "didn't work anymore"? can we see what you mean, could you post a url?
do you get a 500 error code?

btw: make sure to have a image toolkit priority where GD is the last in the list. it seems as if your host is a little restrictive. that could mean that he also sets a low memory limit.

 
Feierteifl
Feierteifl's picture

Joined: 2005-05-26
Posts: 12
Posted: Sat, 2009-07-04 12:30

No i don't use the rewrite module. I just made a new .htaccess file since there wasn't any existing on the server as far as i know.

To get the gallery working again i just had to remove the .htaccess file and averything worked fine again but then there is again the problem, that exec() is disabled. *g*

i'll put the file on the server again so you can see what i mean.

thx for the help.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-05-26 10:58

Feierteifl, ah, i see.
this has indeed nothing to do with urlrewrite.
the problem are permissions.

tell your webhost that your g2data folder (/www/htdocs/soelder/g2data/), i.e. it's subdirectories and files, are owned by the the webserver user.
when you change from mod_php to php-cgi (and perhaps suExec, don't know what they are using), php runs under a different user.
they need to chown -R php-cgi-user /www/htdocs/soelder/g2data/ (or use chmod -R 777 /www/htdocs/soelder/g2data/ alternatively.