Use Gallery3 without php_flag

hausbaer

Joined: 2012-08-10
Posts: 2
Posted: Fri, 2012-08-10 07:52

Hi

I found this gallery and it´s looks quite nice. Sadly I am not allowed to use php_flag on my webserver. Can I install it without??

/Henrik

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-08-10 13:33
 
hausbaer

Joined: 2012-08-10
Posts: 2
Posted: Fri, 2012-08-10 18:19

Hi

Sorry I forgot to write the error. Yes it´s an 500 error I get when I´m trying to install.

I have read the link you have posted... 2 questions...

1. edit your php.ini file and set "short_open_tag" to 1

in my php.ini file is says:

short_open_tag = On do i have to change it to : short_open_tag = 1 ???

2. edit your apache configuration file to allow per-directory overriding of Options or All (note that this has implications to broad to discuss here):

Where should I place this?? in the htaccess file?? And if so where??

3. Also, check to ensure that mbstrings are enabled within your php.ini file. Edit your php.ini file and ensure that "extension=php_mbstring.dll" is uncommented.

I don´t have that line in my ph.ini file

I hope this gives you a clue what happens.

Regards
Henrik

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-08-10 19:20
Quote:
short_open_tag = On do i have to change it to : short_open_tag = 1 ???

Try both I guess.

Quote:
Where should I place this?? in the htaccess file?? And if so where??

I guess you apache config file would be the php.ini file, not the .htaccess file.

Quote:
Yes it´s an 500 error I get when I´m trying to install.

The Apache error logs should yield a clue to the error.

I'm no server guy, the hosts I have G3 just works out of the box no need to config server settings.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
mattdm

Joined: 2005-07-22
Posts: 181
Posted: Sat, 2012-08-11 06:22
hausbaer wrote:
1. edit your php.ini file and set "short_open_tag" to 1
in my php.ini file is says:
short_open_tag = On do i have to change it to : short_open_tag = 1 ???

No. These are synonymous.

hausbaer wrote:
2. edit your apache configuration file to allow per-directory overriding of Options or All (note that this has implications to broad to discuss here):

Where should I place this?? in the htaccess file?? And if so where??

Depends on your system. It may be /etc/httpd/conf/httpd.conf. This is the Apache HTTPD setting that allows htaccess files to work. It's not a PHP thing.

hausbaer wrote:
3. Also, check to ensure that mbstrings are enabled within your php.ini file. Edit your php.ini file and ensure that "extension=php_mbstring.dll" is uncommented.

I don´t have that line in my ph.ini file

Mine doesn't either, but it's enabled. This advice may be obsolete.