Error 500 on fresh install
|
fireman87
Joined: 2009-10-28
Posts: 14 |
Posted: Wed, 2009-10-28 23:03
|
|
I am a new user. I installed gallery-3.0-beta-2 this AM and have been trying to track down the error since. The install succeeded, I display /gallery3/installer/index.php just fine, but when I click on "Start Using Gallery", I get error 500. I have set "short_open_tag" to 1 and added <Location "/gallery3/"> No joy, so removed Location directive and tried <Directory "/srv/www/htdocs/gallery3"> to the httpd.conf file. Still no change. I've also tried using different browsers (couldn't hurt SuSE 11.1 I don't find any errors in /var/log/apache2/error_log. I'm out of ideas. Any help is appreciated. Carl |
|
| Login or register to post comments |

Posts: 9289
Beta 2? That's old and obsolete. We've released B3 (which is also quite old now) and are nearing an RC1.
Grab the latest experimental code and install that.
http://codex.gallery2.org/Gallery3:Upgrading
Follow the tips for unpacking the code and moving the var directory around.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 14
Thanks for the prompt reply! I downloaded gallery-3.0-beta-3. My setup is:
SuSE 11.1
Apache 2.2.14
php 5.2.11-0.1.1
perl 5.1.0
I still cannot get the website opening page. I deleted the database and the original install so as to create as clean an environment as possable. Here is what I did with the fresh install
Unpacked the archive as /srv/www/htdocs/gallery
added AllowOverride Options to the directory in Apache
edit /etc/php5/apache2/php.ini file and set "short_open_tag" to On
edit /etc/php5/cli/php.ini file and set "short_open_tag" to On
Restarted Apache
Attempt install from browser. Error=
Whoa there!
There are some problems with your web hosting environment that need to be fixed before you can successfully install Gallery 3.
* PHP is missing Perl-Compatible Regular Expression support.
php5-5.2.11-0.1.1-x86_64.rpm provides:
5.2.11-0.1.1
php-date
php-filter
php-pcre
php-reflection
php-session
php-simplexml
php-spl
php-xml
php
zend
php5 = 5.2.11-0.1.1
/usr/bin/php5
Try to install from command line:
server:/srv/www/htdocs/gallery # php installer/index.php
The install works, The database is created and the var directory is created. I then try to go to http://localhost/gallery/index.php. Internal error 500 is reported.
I have looked at the requirements for Gallery 2 just in case maybe a php module or something else was missing. I have the json module and the others that I found listed on your website seem to be installed also.
Again I am at a wall. Any help is appreciated.
Carl
Posts: 7
Same problem here.
Set short_open_tag to 1, but the problem remains.
In addition, not only I get error 500, but styles doesn't seem to work. Just HTML appear, no styling or format is applied.
I'm using last G3 experimental version, gallery-gallery3-41171c7.zip
In my case, though, I can't access Apache config files. I'm using a shared rented server.
Posts: 14
I turned on error reporting and set the level to 3 and got the following message
Warning: preg_match(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /srv/www/htdocs/gallery/system/core/utf8.php on line 30
It appears the PHP5 rpm from SuSE doesn't include utf-8.
I will look further and report
Carl
Posts: 14
pcretest -C returns that the pcre program was NOT compiled with utf-8 support. This agrees with what the test in the Gallery installer returns, but not with the published literature about SuSE pcre that I could find. I figure pcretest is probably the more accurate as to what state the software is really in. I apoligize for my slowness in figuring this out, put I have no practical perl or php experience. I am going to try to recompile the source rpm with utf-8 support enabled. I will keep you posted.
Carl
Posts: 14
I'm now officially stumped. I have compiled pcre 7.8 and 7.9 with utf8 (--enable-utf8) support, installed both (one at a time), tested with pcretest -C and the test program still returns that there is no utf8 support. The gallery home page still returns "Warning: preg_match(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /srv/www/htdocs/gallery/system/core/utf8.php on line 30 " Any help is appreciated.
Carl
Posts: 7
This is the error log entry when suffering this error 500 issue:
[Mon Nov 2 17:50:15 2009] [error] [client xx.xx.xx.xx] Premature end of script headers: /www/docs/donbosconorte.org.ar/public_html/gallery/index.php
The AllowOverride directive is not allowed in .htaccess files, and I don't have access to the httpd.conf since it's a shared rented server.
I just don't want to start using Gallery2 since I won't be able to upgrade easily to Gallery3 when released...
Posts: 9289
They are 2 completely different products. G2 will continue to be supported for years to come. Just not enhanced. All new, cool stuff is going to be in G3. Find a better host or just ask them to change it. It doesn't hurt to ask.
@fireman87, I have no idea. I just use Debian and apt-get and it just works
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 7
That's it. I want all the new, cool stuff.
Well, it's been confirmed by the guys at the hosting that AllowOverride is set to All in our server. Considering I added short_open_tag to php.ini, that leaves me out of options.
Posts: 9289
meneldur, please start a new thread. Your issue is different than fireman87.
Please post a link to phpinfo in that new thread:
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 14
OK. I got it working. The short story is I downloaded pcre-8.00-1 from the pcre website, unzipped the tarball and ran configure. My configure was:
./configure --enable-utf8 --enable-unicode-properties --enable-pcregrep-libz --enable-pcregrep-libbz2 --enable-pcretest-libreadline
I then ran make. Then I used checkinstall to create an RPM binary so I could keep track of this software installation on my rpm based system.
I then used rpm -Uvh to install the binary. I then tested with pcretest:
cook@server:~/Downloads/pcre-8.00> pcretest -C
PCRE version 8.00 2009-10-19
Compiled with
UTF-8 support
Unicode properties support
Newline sequence is LF
\R matches all Unicode newlines
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
Match recursion uses stack
Now I at least showed UTF-8 support. I was excited! Then trying http://localhost/gallery/index.php got me the SAME error:
Warning: preg_match(): Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /srv/www/htdocs/gallery/system/core/utf8.php on line 30
Now I was frustrated again.
After trying several different things to no avail, I decided to restart apache. That worked. Now I get the Gallery page proper from http://localhost/gallery/index.php. Apparently, pcre must be preloaded or something when apache2 is started. I still do not know why SuSE's rpms failed to supply the pcre support. Recap, I got the source rpms, installed them, checked the spec file which showed enabling UTF-8 and then ran rpmbuild. The resulting binaries when installed did not pass pcretest -C. I assume UTF-8 did not get enabled for some reason, but it was easier and faster for me to use the new tarball from pcre, so I never tried more elaboarate (read manual) binary compiling and rpm creation.
I hope this helps someone else. I think the factory binary issue is a frustrating trap.
Carl