Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I've installed apache,mysq,php, and start apche, but failed.
Quote:
[root@linux Documents]# service httpd configtest
httpd: Syntax error on line 32 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_auth_basic.so into server: /etc/httpd/modules/mod_auth_basic.so: cannot open shared object file: No such file or directory
[root@linux Documents]# locate mod_auth_basic.so/
/usr/lib64/httpd/modules/mod_auth_basic.so
In RHEL based distros (like scientific linux) /etc/httpd/modules is a symlink for /usr/lib64/httpd/modules, so check if the symlink exists, or you have to re-create it
Total download size: 812 k
Installed size: 2.9 M
Downloading Packages:
httpd-2.2.15-15.sl6.1.x86_64.rpm | 812 kB 00:02
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd-2.2.15-15.sl6.1.x86_64 1/1
Installed:
httpd.x86_64 0:2.2.15-15.sl6.1
Complete!
2. Could not start httpd, and the /var/log/httpd/error.log is this.
Quote:
[root@linux etc]# service httpd configtest
Syntax OK
[root@linux etc]# /etc/init.d/httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]
Quote:
(13)Permission denied: Couldn't start ErrorLog process
Unable to open logs
1. When removing httpd, there are several modules, but at reinstalling there is nothing.
Looks like installation completed successfully. I don't think yum reports any file being installed. Check if the various apache modules exist in /usr/lib64/httpd/modules.
2.
Quote:
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
This is just a warning. You can set ServerName to something like localhost or www.example.com, so apache stops complaining
Quote:
(13)Permission denied: Couldn't start ErrorLog process
Unable to open logs
Looks good.
What's in /var/log/httpd/error_log?
Also did you check if the modules are installed under /usr/lib64/httpd/modules and there exist the symlink to /etc/httpd/modules?
(2)No such file or directory: httpd: could not open error log file /usr/sbin/rotatelogs /var/log/httpd/myserver5.test.net_access_log.%Y-%m-%d 86400 +540.
Unable to open logs
Actually there are 5 vhosts in "/etc/httpd/conf.d/vhost.conf", but only "myserver5.test.net" has an error.
I need some help. I am new to Linux and recently did the upgrade. Errors below shown:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.