PDA

View Full Version : Starting httpd ?



staff
04-22-2008, 03:22 PM
Hello I have a problem httpd no longer wanted me his boots made a mistake below how to settle?


Restarting apache.
Stopping httpd:
Starting httpd: Syntax error on line 30 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

smtalk
04-22-2008, 03:31 PM
I think you are using suPHP (PHP as CGI). Try this (it will remove all custom templates):


rm -rf /usr/local/directadmin/data/templates/custom
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d
Good luck! :)

staff
04-22-2008, 03:35 PM
I just try and always the same :(

smtalk
04-22-2008, 03:40 PM
Are you sure you have PHP installed? Try this if you have CustomBuild installed:


cd /usr/local/directadmin/custombuild
./build php n
./build rewrite_confs

staff
04-22-2008, 03:46 PM
Thank you cool I had already done


./build php n

and I did


./build rewrite_confs his works;)

congkai
10-16-2008, 08:52 AM
dler/apache_config.lo sapi/apache2handler/php_functions.lo main/internal_functions.lo -lcrypt -lz -lcrypt -lrt -lmysqlclient -lmhash -lmcrypt -lltdl -liconv -lfreetype -lpng -lz -ljpeg -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -ldl -lz -lcurl -lxml2 -lz -liconv -lm -lssl -lcrypto -ldl -lz -lmysqlclient -lz -lcrypt -lnsl -lm -lnss_files -lnss_dns -lresolv -lnss_files -lnss_dns -lresolv -lxml2 -lz -liconv -lm -lcrypt -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -o libphp5.la
gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory
make: *** [libphp5.la] Error 1



urgent help pls.

smtalk
10-16-2008, 09:05 AM
./build mysql

congkai
10-16-2008, 06:06 PM
[root@ns1 custombuild]# ./build mysql
You can not install MySQL, because you do not have it set in options.conf file.



Assembler messages:
FATAL: can't create ext/pcre/pcrelib/pcre_info.o: No such file or directory
make: *** [ext/pcre/pcrelib/pcre_info.lo] Error 1

smtalk
10-17-2008, 02:52 AM
cd /usr/local/directadmin/custombuild
perl -pi -e 's/mysql_inst=no/mysql_inst=yes/' options.conf
./build mysql