[error] (8)Exec format error

romauld

Joined: 2003-10-07
Posts: 1
Posted: Tue, 2003-10-07 17:41

Hi,

First time poster. Installed Gallery succesfully a while back, but something arcane is happening this time round (had to rebuild the machine) which I don't seem to understand.

System details

FreeBSD 4.9-PRERELEASE
Apache/1.3.27
PHP 4.3.1

I installed gallery out of ports, but I can't work out how to make it tell me what exact version it is.

Gallery installed by default to /usr/local/www/data/gallery/

My apache configuration is as follows

LoadModule php4_module /usr/local/libexec/apache/libphp4.so

<VirtualHost gallery.gwydion.net>
ServerAdmin foo@ bar.com
DocumentRoot /usr/local/www/data/gallery/
ServerName gallery.gwydion.net
ErrorLog /var/log/apache/gallery-errors
CustomLog /var/log/apache/gallery-xfer combined
</VirtualHost>

which looks right to me. Apache seems to have no problem with the existance of PHP, afaict.

Therefore, incoming requests should be hitting the right place and the right files. I've run the secure script so I should be able to configure now. When I try to hit gallery.gwydion.net, which should give me the front page, what I *get* in the log is

[Tue Oct 7 181427 2003] [error] (8)Exec format error exec of /usr/local/www/data/gallery/index.php failed
[Tue Oct 7 181427 2003] [error] [client w.x.y.z] Premature end of script headers /usr/local/www/data/gallery/index.php

Permissions seem fine. I searched these fora for anything looking vaguely like that error and either I was being obtuse or this one hasn't been asked yet. I'd be immensely grateful for any help anyone can give me in working out what's broken, at least, so I can try to fix it. At the moment, I have *no* idea.

thanks,

~cHris

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Sat, 2003-10-11 12:59

What version of Gallery are you using? (Look in Version.php)
For starters, make sure you have v1.4-pl1. The FreeBSD ports version is very very old, I believe.

But it sounds like something else is awry... Assuming you've tried stopping/restarting Apache, etc., you might want to consider compiling both Apache and PHP from scratch.

Anyhow... upgrade your Gallery first, before moving on to more drastic measures.

-Beckett (

)