Can't restart apache. PHP is broken.


 
Thread Tools Search this Thread
Top Forums Web Development Can't restart apache. PHP is broken.
# 1  
Old 08-17-2009
Can't restart apache. PHP is broken.

I need to restart my apache, but apachectl configtest tells me that

Syntax error on line 208 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ap_signal

I've tried rebuilding php, I'm not really sure what to do here.

Thanks

---------- Post updated at 09:03 PM ---------- Previous update was at 08:57 PM ----------

Now it seems I have taken down apache. I can't start it and I think I need to reinstall. Help!!! Red Hat Linux 9

---------- Post updated at 09:31 PM ---------- Previous update was at 09:03 PM ----------

/usr/sbin/apachectl: Apache 1.3 configuration directives found
/usr/sbin/apachectl: please read /usr/share/doc/httpd-2.0.40/migration.html

In big trouble here.
# 2  
Old 08-18-2009
You should probally recompile with something like

Code:
make clean
make 
make modules
make install
make modules_install

(or whatever is the correct make flags... sorry, I don't have them in front of me)
# 3  
Old 08-18-2009
I got it up and running. Oddly enough it seems there are two version of apachectl going on. One that runs and one that throws the error. I don't know who set this server up, but I will be so happy when I'm done with it. Just have to get curl working in cgi.

cURL and cgi

Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors : # service httpd restart Stopping httpd: rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory Starting httpd: ... (0 Replies)
Discussion started by: anaigini45
0 Replies

2. Red Hat

Error Restart apache

Hi Im apache service restart Error $ service httpd reload Reloading httpd: service httpd reload Reloading httpd: service httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address :80 (98)Address already in... (1 Reply)
Discussion started by: mnnn
1 Replies

3. Shell Programming and Scripting

Script to restart apache when running out of memory

Hi, I have a problem with running out of memory in my Ubuntu web server (4GB RAM) because many people try to access my server. I used to restart manually my apache server to clear out the memory & swap. Can anyone tell me how to write bash script that can automatically restart apache when... (2 Replies)
Discussion started by: nica
2 Replies

4. Programming

PHP exec to restart mysqld

I want to do something very very bad. I want to create a button that restarts mysqld. Why is irrelevant for my issue. Here is my php script ... <?php if(isset($_POST)){ exec("sudo /etc/init.d/mysqld restart"); } ?> <form method="POST"> <input type="submit" name="restart"... (3 Replies)
Discussion started by: noPermissions
3 Replies

5. Linux

Need help on apache and PHP

Hi All, I just ordered unmanaged server for my application testing. But when I try to install the application it is showing blank page. Done know, what will be reason it showing blank page This is my output # rpm -q php php-5.3.10-5.el5.art # rpm -q mysql mysql-5.0.95-1.el5_7.1... (2 Replies)
Discussion started by: ranjancom2000
2 Replies

6. Shell Programming and Scripting

How to keep process running after apache restart.

I have posted this on the Web subforum but it seems that nobody knows to do this, maybe someone has a solution here. Thank you I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them... (1 Reply)
Discussion started by: valiadi
1 Replies

7. Web Development

How to keep process running after apache restart.

Hi, I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them in a way that they are not killed when I restart/stop apache ? $cmdstr = "nohup ".$config."/".$config."... (6 Replies)
Discussion started by: valiadi
6 Replies

8. Shell Programming and Scripting

need help: shell script to restart apache when no. of processes keeps growing

I need a shell script to kill apache and restart it, in case the number of processes keeps growing. The logic is like the below, but I don't know how to get the number and neither the syntax. Could somebody kindly help? if no_of_processes (ps ax ¦ grep httpd) > 200 then killall httpd... (14 Replies)
Discussion started by: _joshua_
14 Replies
Login or Register to Ask a Question