Apache and HTTPD don't run at same time?

ScathDeSolas

Verified User
Joined
Feb 10, 2011
Messages
52
Apache and HTTPD used to run side by side. I have Lenny, stable, server. Latest Lenny release.

I have apache 2 and wordpress won't allow me to access API's or the wordpress database for plugin installs and such. I have CoreControl plugin enabled for wordpress. Page loads are very slow now as well, for wordpress admin anyways.

cURL is available but it wont work and times out... I think that is my main issue. fsockopen was working and then I tested (via clicking "Test Transport" through the plugin) and now fsockopen doesn't work and shows as not available.
What do I do?


Wordpress Core Control Plugin:

Code:
PHP HTTP Extension	Not Available		
cURL	                      Available		
An Error has occured: name lookup timed out
PHP Streams	Available	
PHP fopen()	Available
PHP fsockopen() 	Not Available

PUTTY:
Code:
server:~# /etc/init.d/apache2 start
Starting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
 failed!
 
Last edited:
Yep, "service httpd restart" would be better as apache (httpd) is already running.
PM me if you require assistance or a recompile.
 
@ScathDeSolas,

You should not use Apache installed with Directadmin and apt, until you're sure what you do. So you might want to delete all instances installed with apt, and re-install apache2 with custombuild.
 
Here's the issue. It's with Wordpress. Through out all my sites I get things like "Name Lookup Timed Out" " Download failed. name lookup timed out."

It prevents downloads, updates, etc. It actually is the same on all wordpress sites, latest version and not latest version. So this means it's a server issue. Ideas?

It's not apache I found out or httpd. I'm not a big novice with linux and trouble shooting but this is a new issue I haven't had. I'm only an intermediate linux user.
 
You might need to post here results for

Code:
cat /etc/resolv.conf

so we could do some investigate and help you.

PHP fsockopen() Not Available

And check output of phpinfo(), exactly that part of disabled functions
 
Code:
server:~# cat /etc/resolv.conf
nameserver 208.94.242.3
nameserver 208.94.243.3

SERVICES:
Code:
Apache 2.2.17	Running
DirectAdmin 1.37.0	Running
Exim 4.73	Running
MySQL 	Running
Named 9.6 	Running
ProFTPd 1.3.3c 	Running
sshd 	Running
dovecot 2.0.9 	Running
Php 5.2.17	Installed

PHP INFO:
Code:
Configure Command 	'./configure' '--prefix=/usr/local/php5' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/usr/local/etc/php5/cgi' '--with-curl=/usr/local/lib' '--with-gd' '--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-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--enable-gd-native-ttf' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring' 


cURL support 	enabled
cURL Information 	libcurl/7.21.3 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18

Couldn't find anything saying anything about fsockopen
 
Back
Top