hI i AM getting this what is in my title error every time i run hello.cgi. Check at drwx--x--x 8 root root 4096 Feb 4 19:54 ./
drwxr-xr-x 8 root root 4096 Jan 27 19:38 ../
-rw-rw-r-- 1 root root 24 Jan 27 19:38 .bash_logout
-rw-rw-r-- 1 root root 191 Jan 27 19:38 .bash_profile
-rw-rw-r-- 1 root root 124 Jan 27 19:38 .bashrc
drwxr-xr-x 2 root root 4096 Feb 4 19:56 bin/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 etc/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 lib/
drwxrwxrwx 2 root root 4096 Feb 4 19:42 logs/
-rw-rw-r-- 1 root root 141 Jan 27 19:38 .mailcap
drwxr-xr-x 6 root root 4096 Feb 4 11:46 public_html/
drwxrwxr-x 2 root root 4096 Jan 27 19:38 tmp/
-rwxrwxr-x 1 root root 179 Nov 30 19:17 welcome.msg*
[root@Samba-netbios jurek]# chgrp -R jurek public_html
[root@Samba-netbios jurek]# ls -la
total 52
drwx--x--x 8 root root 4096 Feb 4 19:54 ./
drwxr-xr-x 8 root root 4096 Jan 27 19:38 ../
-rw-rw-r-- 1 root root 24 Jan 27 19:38 .bash_logout
-rw-rw-r-- 1 root root 191 Jan 27 19:38 .bash_profile
-rw-rw-r-- 1 root root 124 Jan 27 19:38 .bashrc
drwxr-xr-x 2 root root 4096 Feb 4 19:56 bin/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 etc/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 lib/
drwxrwxrwx 2 root root 4096 Feb 4 19:42 logs/
-rw-rw-r-- 1 root root 141 Jan 27 19:38 .mailcap
drwxr-xr-x 6 root jurek 4096 Feb 4 11:46 public_html/
drwxrwxr-x 2 root root 4096 Jan 27 19:38 tmp/
-rwxrwxr-x 1 root root 179 Nov 30 19:17 welcome.msg*
[root@Samba-netbios jurek]# chmod -R 755 public_html
[root@Samba-netbios jurek]# ls -la
total 52
drwx--x--x 8 root root 4096 Feb 4 19:54 ./
drwxr-xr-x 8 root root 4096 Jan 27 19:38 ../
-rw-rw-r-- 1 root root 24 Jan 27 19:38 .bash_logout
-rw-rw-r-- 1 root root 191 Jan 27 19:38 .bash_profile
-rw-rw-r-- 1 root root 124 Jan 27 19:38 .bashrc
drwxr-xr-x 2 root root 4096 Feb 4 19:56 bin/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 etc/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 lib/
drwxrwxrwx 2 root root 4096 Feb 4 19:42 logs/
[Wed Feb 04 19:06:48 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:43 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:06:48 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:43 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:45 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:25:09 2004] [error] [client 192.168.0.2] File does not exist: /home/jurek/public_html/cgi-bin
[Wed Feb 04 19:25:29 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
~
~
b0VIM 6.1^@^@^@^@^P^@^@y~M!@V±^B^@÷v^@^@root^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@Samba-netbios^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@/home/jurek/logs/error_log^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@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^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^[Wed Feb 04 19:06:48 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:43 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:45 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
~
~
~
~
~
~
~
~
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
#!/usr/local/bin/perl -w
# SSLOptions +StdEnvVars
# </Directory>
################# Vhosts.conf
################# Vhosts.conf
################# Vhosts.conf
#This is where we store the VirtualHosts configuration.
#
#Since Apache 1.3.19, we modified the setup to include some nice tricks:
#
#- We added the User and Group directives so VirtualHosts now work with
# suexec directive. If set, Apache will run all cgi scripts under that
# user and group (provided the uid and gid are > 100 for security). The
# directories and cgi files *must* belong to that user/group for the
# feature to work
#- We added the Setenv VLOG directive. This works in conjunction with
# the CustomLog in common.conf. When Setenv VLOG is set, apache will
# create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging
# to access_log. Use this instead of defining a special logfile for
# each vhost, otherwise you eat up file descriptors.
#- You can also specify a path for the VLOG for each Vhost, for example,
# to place the logs in each user's directory. However, if you want to
# use the file for accounting, place it in a directory owned by root,
# otherwise the user will be able to erase it.
#- I suggest only including the ErrorLog *only* if the vhost will use
# cgi scripts. Again, it saves file descriptors!
#- We added the Rewrite directives so vhosts will work with the
# PERLPROXIED configuration
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
#NameVirtualHost 111.222.33.44
#<VirtualHost 111.222.33.44>
#ServerName #ServerPath /domain
#DocumentRoot /web/domain
#</VirtualHost>
# Add this if you want to use CGI scripts
# ScriptAlias /cgi-bin/ "/opt/zope/cgi-bin/"
# <Directory /opt/zope/cgi-bin/>
# Options ExecCGI
# AddHandler cgi-script .cgi
# SSLOptions +StdEnvVars
# </Directory>
<VirtualHost *>
ServerName DocumentRoot /home/jurek/public_html
ServerAlias *.tomaszbaranowski.com
ErrorLog /home/jurek/logs/error_log
ScriptAlias /cgi-bin/ /home/jurek/bin/
<Directory "/home/jurek/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/jurek/bin">
AddHandler cgi-script .cgi
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
This is in my conf Apache. Permission is set and root is an owner in the jurek home dir exep the public_html.the resst is 755 like: bin etc lib etc.
Thanks for you help.
drwxr-xr-x 8 root root 4096 Jan 27 19:38 ../
-rw-rw-r-- 1 root root 24 Jan 27 19:38 .bash_logout
-rw-rw-r-- 1 root root 191 Jan 27 19:38 .bash_profile
-rw-rw-r-- 1 root root 124 Jan 27 19:38 .bashrc
drwxr-xr-x 2 root root 4096 Feb 4 19:56 bin/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 etc/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 lib/
drwxrwxrwx 2 root root 4096 Feb 4 19:42 logs/
-rw-rw-r-- 1 root root 141 Jan 27 19:38 .mailcap
drwxr-xr-x 6 root root 4096 Feb 4 11:46 public_html/
drwxrwxr-x 2 root root 4096 Jan 27 19:38 tmp/
-rwxrwxr-x 1 root root 179 Nov 30 19:17 welcome.msg*
[root@Samba-netbios jurek]# chgrp -R jurek public_html
[root@Samba-netbios jurek]# ls -la
total 52
drwx--x--x 8 root root 4096 Feb 4 19:54 ./
drwxr-xr-x 8 root root 4096 Jan 27 19:38 ../
-rw-rw-r-- 1 root root 24 Jan 27 19:38 .bash_logout
-rw-rw-r-- 1 root root 191 Jan 27 19:38 .bash_profile
-rw-rw-r-- 1 root root 124 Jan 27 19:38 .bashrc
drwxr-xr-x 2 root root 4096 Feb 4 19:56 bin/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 etc/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 lib/
drwxrwxrwx 2 root root 4096 Feb 4 19:42 logs/
-rw-rw-r-- 1 root root 141 Jan 27 19:38 .mailcap
drwxr-xr-x 6 root jurek 4096 Feb 4 11:46 public_html/
drwxrwxr-x 2 root root 4096 Jan 27 19:38 tmp/
-rwxrwxr-x 1 root root 179 Nov 30 19:17 welcome.msg*
[root@Samba-netbios jurek]# chmod -R 755 public_html
[root@Samba-netbios jurek]# ls -la
total 52
drwx--x--x 8 root root 4096 Feb 4 19:54 ./
drwxr-xr-x 8 root root 4096 Jan 27 19:38 ../
-rw-rw-r-- 1 root root 24 Jan 27 19:38 .bash_logout
-rw-rw-r-- 1 root root 191 Jan 27 19:38 .bash_profile
-rw-rw-r-- 1 root root 124 Jan 27 19:38 .bashrc
drwxr-xr-x 2 root root 4096 Feb 4 19:56 bin/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 etc/
drwxrwxr-x 2 root root 4096 Jan 27 23:55 lib/
drwxrwxrwx 2 root root 4096 Feb 4 19:42 logs/
[Wed Feb 04 19:06:48 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:43 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:06:48 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:43 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:45 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:25:09 2004] [error] [client 192.168.0.2] File does not exist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^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^[Wed Feb 04 19:06:48 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:43 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
[Wed Feb 04 19:10:45 2004] [error] [client 192.168.0.2] Premature end of script headers: hello.cgi
~
~
~
~
~
~
~
~
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
#!/usr/local/bin/perl -w
# SSLOptions +StdEnvVars
# </Directory>
################# Vhosts.conf
################# Vhosts.conf
################# Vhosts.conf
#This is where we store the VirtualHosts configuration.
#
#Since Apache 1.3.19, we modified the setup to include some nice tricks:
#
#- We added the User and Group directives so VirtualHosts now work with
# suexec directive. If set, Apache will run all cgi scripts under that
# user and group (provided the uid and gid are > 100 for security). The
# directories and cgi files *must* belong to that user/group for the
# feature to work
#- We added the Setenv VLOG directive. This works in conjunction with
# the CustomLog in common.conf. When Setenv VLOG is set, apache will
# create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging
# to access_log. Use this instead of defining a special logfile for
# each vhost, otherwise you eat up file descriptors.
#- You can also specify a path for the VLOG for each Vhost, for example,
# to place the logs in each user's directory. However, if you want to
# use the file for accounting, place it in a directory owned by root,
# otherwise the user will be able to erase it.
#- I suggest only including the ErrorLog *only* if the vhost will use
# cgi scripts. Again, it saves file descriptors!
#- We added the Rewrite directives so vhosts will work with the
# PERLPROXIED configuration
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#User jmdault
#Group jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
#NameVirtualHost 111.222.33.44
#<VirtualHost 111.222.33.44>
#ServerName #ServerPath /domain
#DocumentRoot /web/domain
#</VirtualHost>
# Add this if you want to use CGI scripts
# ScriptAlias /cgi-bin/ "/opt/zope/cgi-bin/"
# <Directory /opt/zope/cgi-bin/>
# Options ExecCGI
# AddHandler cgi-script .cgi
# SSLOptions +StdEnvVars
# </Directory>
<VirtualHost *>
ServerName DocumentRoot /home/jurek/public_html
ServerAlias *.tomaszbaranowski.com
ErrorLog /home/jurek/logs/error_log
ScriptAlias /cgi-bin/ /home/jurek/bin/
<Directory "/home/jurek/public_html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory "/home/jurek/bin">
AddHandler cgi-script .cgi
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
This is in my conf Apache. Permission is set and root is an owner in the jurek home dir exep the public_html.the resst is 755 like: bin etc lib etc.
Thanks for you help.