Apache wont start?

TestUser

Verified User
Joined
Aug 26, 2011
Messages
222
I just installed DA on new server...
DA is running but apache (httpd) have some problems starting... it dosent start..
when i restart/start it i get this

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

OS: 64bit ubuntu
/cat/proc/version:
Linux version 3.2.0-23-generic (buildd@crested) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012


i tryed:
./build apache d

and
./build update
./build clean
./build php d
./build suphp d
same error when i start/restart apache

any idea?
 
Last edited:
run this /usr/local/directadmin/custombuild/build php n

also try /usr/local/directadmin/custombuild/build rewrite_confs‏



Regards
 
SeLLeRoNe tryed both commands... apache stil not working...
the thing is i tryed and deleted the 1 user i transferred from old server...
apache started OK
BUT when i added 1 domain to admin user... apache is down
i get this error
Code:
Starting httpd: Syntax error on line 25 of /usr/local/directadmin/data/users/admin/httpd.conf:
Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

and when i run build php n
on the end i get this
Code:
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
 
php_admin_flag is not supported why is that in your template?
 
maybe becouse i transfered a user with files from older DA instance?
If i knew the solution i would ask here :P
 
You should also switch from suphp to something else. suphp is end of life and will no longer receive updates. Try mod_ruid, fastcgi, or php-fpm instead.
 
now i did custombuild 2.0 ALL
and i got this error
start:log----------------------------------------------
/usr/bin/ld: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.22-system.so)
/usr/bin/ld: /usr/local/lib/libz.so.1: no version information available (required by /usr/lib/libbfd-2.22-system.so)
/usr/bin/ld: ext/intl/msgformat/.libs/msgformat_helpers.o: undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
/usr/bin/ld: note: '__gxx_personality_v0@@CXXABI_1.3' is defined in DSO /usr/lib/x86_64-linux-gnu/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
end:log-------------------------------------------------------
 
scsi thank you.. i just send them all the informations and let's see what will happen :D
 
DA support didnt know how to help me... didn't see the problem before....

SO....

Have now installed DEBIAN 7 and now works everithing OK
so.. on ubuntu 64bit DA can't be installed (im shure it can be.. but its not easy) :D

Best regards!
 
To compile php 5.3 in ubuntu/debian 7 you must edit php Makefile with this command:

sed -i '/^BUILD_/ s/\$(CC)/\$(CXX)/g' Makefile

and compile/install manually because build script will overwrite Makefile again.
 
Back
Top