Jump to content

Apache / CGI --setup


Neorion
 Share

Recommended Posts

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 by Neorion
Link to comment
Share on other sites

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 by Dr. Ephemeron
Link to comment
Share on other sites

  • 3 months later...
Guest spring

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

Link to comment
Share on other sites

Guest spring

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

Link to comment
Share on other sites

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

 

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 by Dr. Ephemeron
Link to comment
Share on other sites

Guest spring

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

Link to comment
Share on other sites

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

 

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 by Dr. Ephemeron
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...