Hi All!

Starting httpd returns:

Syntax error on line 1 of /var/www/conf/modules/php5.conf

Cannot load /usr/local/lib/php/libphp5.so into server: Cannot load specified object

Before I added the php packages httpd started fine. (And mysql works perfectly too.) I did what seemed to be a fairly intuitive php install with no research, and got the error. Then I find a FAQ page at openbsd.org that says the same thing. Then I find a web page with the same details describing a typical 'OAMP.' They're all about the same, a few pkg_add and ln -s no real 'work' to this.

BTW this is a virgin new 4.4 install not an upgrade.

I've also been to ~/patch and installed those and recompiled the kernel and httpd -after- the first faulty starts, with still the same error both before and after the patches.

I see one long discussion at http://kerneltrap.org/mailarchive/openbsd-misc/2008/11/17/4139684/thread but at the end there's no definitive answer as to what caused it or if/how it was fixed.

From which I tried 'old version check.'
cat /var/www/conf/httpd.conf | grep 'LoadModule php' returns empty

And httpd -u returns the same error

CLI seems to work fine.

Logs. Between good httpd starts without, and bad ones with php enabled, I 'zero-lengthed' the logs to make -sure- if I was seeing something 'new.' but failed starts produce nothing at all /var/www/logs.

I tried php.ini display_startup_errors but that produced nothing either.

I also touched /var/www/logs/php.log because there wasn't one but that made no difference.

These -look- normal:

# cat /var/www/conf/modules/php5.conf
LoadModule php5_module /usr/local/lib/php/libphp5.so

<IfModule mod_php5.c>
        AddType application/x-httpd-php .php .phtml .php3
        AddType application/x-httpd-php-source .phps
# Most php configs require this
        DirectoryIndex index.php
</IfModule>


# ls -l /usr/local/lib/php/libphp5.so
-r--r--r--  1 root  bin  3968192 Aug 12 14:07 /usr/local/lib/php/libphp5.so


# ll /var/www/conf/modules
lrwxr-xr-x 1 root daemon 29 Jan 15 03:18 libphp5.so@ -> /usr/local/lib/php/libphp5.so

lrwxr-xr-x 1 root daemon 18 Jan 15 03:18 php@ -> /usr/local/lib/php

lrwxr-xr-x 1 root daemon 38 Jan 14 17:00 php5.conf@ -> /var/www/conf/modules.sample/php5.conf


I 'commented out the contents' of php5.conf causing it to load nothing, and httpd started fine.

I did a complete pkg_delete of everything php related, and httpd started fine. Reinstalled and got the same error.

Maybe I've got a wrong permission or ownership? I wish they'd add to the doc pages an ls -l for the installed subdirs just for completeness.

Weird all around. TIA. Have a :) day!

Jim

--
jim barchuk
j...@jbarchuk.com

Reply via email to