Neorion Posted April 3, 2004 Report Share Posted April 3, 2004 (edited) Hi, i recently compiled apache 2 to /usr/bin/apache2/ i type /usr/bin/apache2/bin/apachectl start `````````````````` httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [sat Apr 03 02:35:16 2004] [error] (13)Permission denied: could not open transfer log file /usr/local/apache2/logs/access_log. Unable to open logs [neorion@localhost neorion]$ ````````````````````` thats what i get I can go to 127.0.0.1 and see apache page but how can i set this up so i can have something looking like in a url bar ; xx.xxx.xx.xx/cgi-bin/myperl.cgi and see myperl.cgi ??? Help or alternate options will be greatly appreciated. -Neorion Edited April 3, 2004 by Neorion Quote Link to comment Share on other sites More sharing options...
Dr. Ephemeron Posted April 3, 2004 Report Share Posted April 3, 2004 (edited) You need to set your hostname in /etc/sysconfig/network. HOSTNAME=your_hostname.ld If you use DHCP also add DHCP_HOSTNAME=your_hostname.ld You also need to put your machines IP address in /etc/hosts along with your host name. xxx.xxx.xxx.xxx your_hostname.ld your_hostname The access_log thing is probably permissions and ownership problem. On my machine the /var/log/httpd directory is drwxr-xr-x root root and the access_log is -rw-r----- root root If you have mandrake, I would suggest installing Apache2 and perl related stuff with the from the CD and it will work. Edited April 3, 2004 by Dr. Ephemeron Quote Link to comment Share on other sites More sharing options...
Neorion Posted April 4, 2004 Author Report Share Posted April 4, 2004 What exactly do you mean by "your_hostname.ld" my IP address ? Quote Link to comment Share on other sites More sharing options...
Guest spring Posted July 26, 2004 Report Share Posted July 26, 2004 Hello, I have updated webmin and it is running but when I boot the system I get this error "httpd2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" Any ideas? Thanks JB Quote Link to comment Share on other sites More sharing options...
Guest spring Posted July 26, 2004 Report Share Posted July 26, 2004 Hello, Just adding to my previous post I get the following in my error_log file "Fuction not implemented: mod_rewrite: could not create rewrite_log_lock. Configuration failed. Thanks JB Quote Link to comment Share on other sites More sharing options...
Dr. Ephemeron Posted July 26, 2004 Report Share Posted July 26, 2004 (edited) Hello, I have updated webmin and it is running but when I boot the system I get this error "httpd2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName" Any ideas? Thanks JB <{POST_SNAPBACK}> Yeah I got an idea... you need to do exactly what I told the other guy to do... make up a hostname and put it in the 2 files as described above. :P I don't know nothin' about mod_rewrite except it looks like in your error message it can't create a file lock for some reason... probably due to directory or file permissions not allowing it to..? Edited July 26, 2004 by Dr. Ephemeron Quote Link to comment Share on other sites More sharing options...
Guest spring Posted July 27, 2004 Report Share Posted July 27, 2004 Hello Dr. Ephemeron, I updated the two files per your instructions but httpd2 still failed on reboot. In the error_log file I still get " [crit] (38)Function not implemented: mod_rewrite: could not create rewrite_log_lock. Configuration Failed." Do you think this may have to do with kernel ( 2.6.3-7mdk)I am using. What is the process to go back to 2.4.25-2mdk? Thanks JB Quote Link to comment Share on other sites More sharing options...
Dr. Ephemeron Posted July 31, 2004 Report Share Posted July 31, 2004 (edited) Hello Dr. Ephemeron, I updated the two files per your instructions but httpd2 still failed on reboot. In the error_log file I still get " [crit] (38)Function not implemented: mod_rewrite: could not create rewrite_log_lock. Configuration Failed." Do you think this may have to do with kernel ( 2.6.3-7mdk)I am using. What is the process to go back to 2.4.25-2mdk? Thanks JB <{POST_SNAPBACK}> I never said it would make apache start... it just gets rid of the resolve hostname error message. The other problem, I have no idea. sorry I haved used 2.6.3-7, 2.6.3-13 on mdk 10 o.e. and apache2 works fine. Did you remove and reinstall apache2? Edited July 31, 2004 by Dr. Ephemeron Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.