Ok I'll put it simply:
I'm using OpenBSD 3.7-release i386 build #50: Sun Mar 20 00:01:57 MST 2005
I have successfully compiled Apache2.0.54 with following configure:
./configure --enable-layout=OpenBSD --enable-v4-mapped --enable-so --enable-mods-shared='auth-anon
\
echo headers expires proxy ssl htpasswd htdigest rotatelogs checkgid
info cgi vhost-alias spelling userdir alias rewrite'
No problems, all setup, running etc as daemon, chroot'd ssl perfect..
Then I jumped onto MySQL5.0.13-rc source..
This i had many more problems with but finally found a working method via:
./configure --localstatedir=/var/mysql --sysconfdir=/etc --enable-local-infile
\
--with-mysqld-user=mysql --with-unix-socket-path=/var/run/mysql/mysql.sock
\
--with-openssl=/usr/sbin/openssl --with-openssl-includes=/usr/include/openssl
\
--with-openssl-libs=/usr/lib
Again, working fine, all setup, priv's etc, running and good..
Finally, the main cog wheel that I require to spin my code, PHP..
I am currently now trying PHP5.0.6-dev snapshot from around the 23rd of this
month.
I have already tried PHP5.05-stable and PHP4.xx latest stables
No luck...
I seem to configure fine, all lib's match up, no errors, I can make fine,
generally no errors there either [although I must admit, output isn't
exactly always the same, sometimes I seem to get warnings I don't other
times etc] only some minor warnings due to function references in some
extension or something
But the killer is making the DSO for apache2.
Somehow it trys to use apxs and then just dies with the usual:
aries# make install
Installing PHP SAPI module: apache2handler
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' libphp5.la
/usr/lib/apache/modules
/var/www/build/libtool --mode=install cp libphp5.la /usr/lib/apache/modules/
cp .libs/libphp5.lai /usr/lib/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/lib/apache/modules/libphp5.a
ranlib -t /usr/lib/apache/modules/libphp5.a
chmod 644 /usr/lib/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/usr/src/php5-STABLE-200510230637/libs'
Warning! dlname not found in /usr/lib/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/lib/apache/modules/libphp5.so
chmod: /usr/lib/apache/modules/libphp5.so: No such file or directory
apxs:Error: Command failed with rc=65536
As you can see if uses libphp5.la and .a and attempts to create .so but
fails..
If i do a dead compile, which in my world means the simplest ie:
./configure --with-apxs2=/usr/sbin/apxs
and make, make install; then it works fine. libphp5.so is created, and
placed properly in /modules directory of apache2, installed in httpd.conf
and runs fine when I restart apache.
Of course there's very little I can use with the base php5 as I really need
mysql support for the mysql5 server plus some other extensions, sockets,
bzip, gd, xml, etc
But unfortunately I've tried now around 2 dozen different combinations, some
with success, others without, certain combinations of ./configure will make
install properly and create the DSO..
Some strangely, make install fine, they seem to be happy, no errors or
warnings say they are creating the .so but they don't actually overwrite the
old .so in /modules ??? Weird...
All in all, I don't want to waste too much of anyone's time, but I would
really appreciate some help here.. I have been trying at this annoying
problem for over 2 weeks now.
Recompiling, making, recompile etc etc..
Starting to really get to me..
The worst part?? Since I consider myself at a fairly high level of
computing, even though Unix isn't something I'm overly familiar with I am
now grasping it quite well; the worst part is that through all of this I
have had a project and deadlines to meet, so I decided to do the
unthinkable..
yes, I downloaded the LATEST Apache2.0.54-win32 and MySQL5.0.13-win32 and
then PHP5.05-win32 all come with ease-of-use GUI installers. I had them all
working, installed, setup, imported all my existing db's into mysql, setup
my httpd.conf to my usual setup [same for php] and had the whole lot [that
includes download time of these 3 packages, plus install and config, import
etc] in under 14 minutes....
And it was working.. not a beep, not a problem, not a single glitch..
ON A MICROSOFT WINDOWS PLATFORM.... Windows XP SP2 to be precise..
These three packages are written and designed for Unix/NIX based operating
systems, by Open Source communities FOR Open Source/NIX based platforms...
They are then PORTED to the win32 platform..
And they install easier and more reliably?!?!??!?!??
I'm awfully confused here... PLEASE help me... Short of turning to install
FreeBSD 5.4 on my server.. But I'd really love to stick to OpenBSD3.7
Thank you again for ANY help you can give..
Kindest Regards,
Julien Bonastre
---oOo---
Allowing users to execute CGI scripts in any directory should only be
considered if:
...
You have no users, and nobody ever visits your server.
...
Extracted Quote: Security Tips - Apache HTTP Server
---oOo---
------oOo---------------oOo------
Julien Bonastre [The_RadiX]
The-Spectrum Network CEO
ABN: 64 235 749 494
[EMAIL PROTECTED]
www.the-spectrum.org
------oOo---------------oOo------