PDA

View Full Version : updating error



uguronur
05-12-2009, 09:01 AM
Hi all,

I was trying to update apache2 and php5 from apache1.3 and php4. I did everything step by step from directadmin help. after restart services my httpd works but php pages does not showup. some one can tell me why?

Apache 2.2.11
DirectAdmin 1.33.6
Exim 4.67
MySQL 5.0.67

when i restart services i am getting this error..

Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: cannot open shared object file: No such file or directory




regards

scsi
05-12-2009, 10:39 AM
cd /usr/local/directadmin/custombuild
./build update
./build php d

uguronur
05-12-2009, 10:58 AM
cd /usr/local/directadmin/custombuild
./build update
./build php d

Hi SCSI thanks for helping me.. I tried your command and at the final i got this error..

There was an error while trying to configure php. Check the configure/ap2/configure.php5 file


any idea ?

regards.

uguronur
05-12-2009, 11:01 AM
configure/ap2/configure.php5 include this data:

#!/bin/sh
./configure \
--with-apxs2 \
--with-curl=/usr/local/lib \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-freetype-dir=/usr/local/lib \
--with-kerberos \
--with-openssl \
--with-mcrypt \
--with-mhash \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pdo-mysql=/usr \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-zip \
--with-iconv=/usr/local \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-mbstring


and also when i try restart i am getting this:

Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 31 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]

uguronur
05-12-2009, 12:18 PM
finally i fix it thaks SCSI..

this is the solution..


updatedb
locate libphp4.so

else you try this

This one works almost always

cd /usr/local/directadmin
wget http://files.directadmin.com/services/custombuild/beta/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_data
./build php


special thakns for kanary

GuitarCrazyo
11-07-2009, 01:57 PM
For a while the site as been solid but I have started getting these errors again randomly over the last couple of weeks. Fix it yo