Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Apache = ./configure --enable-so
PHP = ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
MySQL does not have configure command
Ok, I have everything install, and configured. My only problem now is that apache won't start
Code:
httpd: Could not reliable determine the server's fully qualified domain name, using 127.0.0.1 for ServerName no listening sockets available, shutting down Unable to open logs
It acts the same way if I start it with rc.httpd or apachectl.
Before, I asked if you are using any of your apache 1.3 configuration in apache2's configuration. Are you?
Also, the error says it can't open the logs, which makes it a pain to diagnose why apache isn't starting. So can you post your httpd.conf file for apache2?
Also, what user are you trying to run apache as? There's an error regarding available ports so it could be apache isn't starting as root to open up the default port of 80. You can try to edit your httpd.conf file and change the listen directive to a port higher than 1000 - for example use a listen port of 8000 and see if apache will start.
Ok, some progress you are not getting that undefined symbol error.
Let's confirm your /usr/local/apache2/conf/httpd.conf file settings. Some of your settings will be different.
Code:
ServerRoot "/usr/local/apache2"
<IfModule !mpm_netware.c>
PidFile logs/httpd.pid
</IfModule>
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Most of the next section probably are not used, and I have deleted them all from my installation. This might be wrong but I have not noticed any difference for development purposes.
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 50
</IfModule>
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 50
</IfModule>
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
<IfModule beos.c>
StartThreads 10
MaxClients 50
MaxRequestsPerChild 10000
</IfModule>
<IfModule mpm_netware.c>
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
MaxMemFree 100
</IfModule>
Listen 80
LoadModule php5_module modules/libphp5.so
User apache
Group apache
======== Main Server Configuration =================
ServerAdmin your@emailaddress.com
ServerName www.hayward.server
(if you are not using dns, then use the IP address or 127.0.0.1 or localhost, normally the IP address works just fine, example 192.168.2.13:80)
UseCanonicalName On
DocumentRoot "/pub3/source/www" (change to your file location)
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/pub3/source/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .phtml .phpm
AddType application/x-httpd-php-source .phps
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
I would pay attention to the location of your log files, they should be /usr/local/apache2/logs and the contents of this directory should be similar to:
Code:
access_log
error_log
hayward-access_log (your host name will prepended here, hayward is my host name)
hayward-error_log
httpd.pid
I went back to look at my httpd.conf file, and after the standard install the Listen setting was commented out, so I uncommented it and restarted Apache and everything worked. Thanks for all the help with getting PHP and Apache to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.