View Single Post
  #3   (View Single Post)  
Old 10th November 2010
joostvgh joostvgh is offline
Port Guard
 
Join Date: Jan 2010
Posts: 38
Default

apachectl has worked before. I didn't change any file location that was linked to apache, I only changed something to 'ld' (which I don't really understand, although I read the doc/manpage 100 times, there's just so many wrong information on google, different versions, ...) and CFLAGS.

But I'll look into it. I read in the faq:
Quote:
and reads its configuration. Next, it locks itself into /var/www and drops privileges, then starts to accept requests.
so that would explain why initially it can/could read from another path rather than '/var/www'.
I'll try to change the file location and then report back!


why I am building by hand: I don't know. I think I've used packages before, but its not my daily occupation to operate OpenBSD, it's just the server I manage in my residence, and I try to add something from time to time. Also, not every app is available as package. Libiconv might have been, but I downloaded 10 versions before I got some other, dependant program to build/make, and find the lib (I got the undefined reference error).


edit: gave it a shot:


# apachectl start
Syntax error on line 1 of /var/www/conf/modules/php5.conf:
Cannot load /var/www/lib/php/libphp5.so into server: Cannot load specified object
/usr/sbin/apachectl start: httpd could not be started

edit2: since its chrooted to /var/www, it sees that as a root, changed file path:


# apachectl start
Syntax error on line 1 of /var/www/conf/modules/php5.conf:
Cannot load /lib/php/libphp5.so into server: File not found
/usr/sbin/apachectl start: httpd could not be started

then changed path to lib/php/libphp5.so instead of /lib/php/libphp5.so

# apachectl start
Syntax error on line 1 of /var/www/conf/modules/php5.conf:
Cannot load /var/www/lib/php/libphp5.so into server: Cannot load specified object
/usr/sbin/apachectl start: httpd could not be started

Last edited by joostvgh; 10th November 2010 at 08:07 AM.
Reply With Quote