homepage Welcome to WebmasterWorld Guest from 54.227.215.139
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
New apache install errors in logs
Shel

5+ Year Member



 
Msg#: 3867995 posted 1:37 pm on Mar 11, 2009 (gmt 0)

Hi

I recently installed Fedora core 10. I'm a new user so I'm learning as I go.

Then i tested apache to see if it was working. I start the deamon by using servive htppd start, and then was able to access the defaiult apache page.

Then, I started the sql daemon (I forgot the name now) and i was able to see the php default page.

After the installation was complete, i installed TWiki, a wiki server. Now, I can see the default twiki web page but the cgi utility does not run. Instead, I see a message asking me to see the error_lo file.

Here is the apache error_log file:

=================================
[Sun Mar 08 04:03:05 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Mar 08 04:03:05 2009] [notice] Digest: done
[Sun Mar 08 04:03:06 2009] [notice] Apache/2.2.10 (Unix) DAV/2 PHP/5.2.6 configured -- resuming normal operations
[Mon Mar 09 20:11:40 2009] [error] [client 192.168.1.150] (13)Permission denied: exec of '/var/www/twiki/bin/configure' failed
[Mon Mar 09 20:11:40 2009] [error] [client 192.168.1.150] Premature end of script headers: configure
[Mon Mar 09 20:11:49 2009] [error] [client 192.168.1.150] attempt to invoke directory as script: /var/www/twiki/bin/
[Mon Mar 09 20:14:29 2009] [notice] caught SIGTERM, shutting down
[Mon Mar 09 20:14:40 2009] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Mon Mar 09 20:14:40 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 09 20:14:41 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 09 20:14:41 2009] [notice] Digest: done
[Mon Mar 09 20:14:42 2009] [notice] Apache/2.2.10 (Unix) DAV/2 PHP/5.2.6 configured -- resuming normal operations
[Mon Mar 09 20:15:43 2009] [error] [client 192.168.1.150] (13)Permission denied: exec of '/var/www/twiki/bin/configure' failed, referer: [192.168.1.150...]
[Mon Mar 09 20:15:43 2009] [error] [client 192.168.1.150] Premature end of script headers: configure, referer: [192.168.1.150...]
[Mon Mar 09 20:28:25 2009] [warn] child process 18277 still did not exit, sending a SIGTERM
[Mon Mar 09 20:28:25 2009] [warn] child process 18278 still did not exit, sending a SIGTERM
[Mon Mar 09 20:28:25 2009] [warn] child process 18279 still did not exit, sending a SIGTERM
[Mon Mar 09 20:28:25 2009] [warn] child process 18280 still did not exit, sending a SIGTERM
[Mon Mar 09 20:28:27 2009] [notice] caught SIGTERM, shutting down
[Mon Mar 09 20:28:34 2009] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Mon Mar 09 20:28:34 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 09 20:28:34 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 09 20:28:34 2009] [notice] Digest: done
[Mon Mar 09 20:28:35 2009] [notice] Apache/2.2.10 (Unix) DAV/2 PHP/5.2.6 configured -- resuming normal operations
[Mon Mar 09 20:34:23 2009] [error] [client 192.168.1.150] (13)Permission denied: exec of '/var/www/twiki/bin/configure' failed, referer: [192.168.1.150...]
[Mon Mar 09 20:34:23 2009] [error] [client 192.168.1.150] Premature end of script headers: configure, referer: [192.168.1.150...]

=================================

Does anyone understand what all these errors mean? Can you help me?

My web page WORKS FINE from:
[192.168.1.150...]

The TWiki cgi called "configure" FAILS from
[192.168.1.150...]

My ScriptAlias for TWiki is:
/twiki/bin/ /var/www/twiki/bin/

My Alias for TWiki is:
/twiki/ /var/www/twiki/

 

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3867995 posted 12:47 pm on Mar 18, 2009 (gmt 0)

Anyone have some advice for Shel?

<bump>

Jim

Caterham

10+ Year Member



 
Msg#: 3867995 posted 1:15 pm on Mar 18, 2009 (gmt 0)

Permission denied: exec of '/var/www/twiki/bin/configure' failed,

Apache tried to execute the program but that went wrong. Premature end of script headers should be a subsequent error in this case.

The execution can fail if
- the shebang line is wrong (only if the resource isn't self-executing like a compiled c program, of course)
- file permissions don't allow exec (what about your suEXEC config, which is enabled according to the log)
- another program blocked the execution (e.g. a selinux policy)

coopster

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3867995 posted 1:15 pm on Mar 18, 2009 (gmt 0)

Welcome to WebmasterWorld, Shel.

You mention PHP in the opening statement of your message, but Twiki is perl. From your logs ...

Permission denied: exec of '/var/www/twiki/bin/configure' failed

If you are certain your ScriptAlias statements are correct, which they appear to be, have you checked the file permissions for the executables in the cgi-bin?

jeffatrackaid

5+ Year Member



 
Msg#: 3867995 posted 2:09 pm on Mar 18, 2009 (gmt 0)

[Mon Mar 09 20:14:40 2009] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0

This suggests SELinux is running. You can have many issues with SELinux. Even as a Linux veteran, I still run into issue when dealing with SELinux. In some cases, applications will simply not work with it enabled.

If this is just a test system, I recommend disabling SELinux. You don't want to have to learn it on top of everything else.

Look in:
/etc/sysconfig/selinux
Change the enforcing line to disabled and reboot.

You may want to search the web for Perl Diver. Install it within your cgi location. Very useful for determining if your cgi-bin is setup properly.

Shel

5+ Year Member



 
Msg#: 3867995 posted 11:02 pm on Apr 12, 2009 (gmt 0)

Thanks very much jeffatrackaid
After disabling selinux, Twiki started working.
Now I have another question though. Although Apache and Twiki both work on my own PC, I can't access them on other PCs on the same network or anywhere else. I can ping, ssh but to http from other computer. What could cuase that?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved