check virtualhost issue that not allow to run CGI script

check virtualhost issue that not allow to run CGI script

am 07.06.2007 18:45:56 von kwan

I have an apache webserver that run smoothly with the pre-installation
and basic configuration for it to allow to run CGI script. However the
problem exists with VirtualHost that I try to run the cgi script that
the only message I can see is 500 Error, which say the the Internal
Apache configuration is error.


ServerName www.test1.cgi
ServerAdmin testsupport@gmail.com
DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
DirectoryIndex support.cgi

Options ExecCGI
AddHandler cgi-script .cgi .pl



when I try to go to the site www.test1.cgi it says the 500 Error..
It seems everythings according to the configuration to allow to run
CGI script, I follows extractly some httpd.conf that previously posted
in this forum.

Thank

Re: check virtualhost issue that not allow to run CGI script

am 07.06.2007 18:56:43 von unknown

Post removed (X-No-Archive: yes)

Re: check virtualhost issue that not allow to run CGI script

am 07.06.2007 19:12:16 von mark

kwan wrote in news:1181234756.936573.210370
@o5g2000hsb.googlegroups.com:

> I have an apache webserver that run smoothly with the pre-installation
> and basic configuration for it to allow to run CGI script. However the
> problem exists with VirtualHost that I try to run the cgi script that
> the only message I can see is 500 Error, which say the the Internal
> Apache configuration is error.
>
>
> ServerName www.test1.cgi
> ServerAdmin testsupport@gmail.com
> DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> DirectoryIndex support.cgi
>
> Options ExecCGI
> AddHandler cgi-script .cgi .pl
>

>

>
> when I try to go to the site www.test1.cgi it says the 500 Error..
> It seems everythings according to the configuration to allow to run
> CGI script, I follows extractly some httpd.conf that previously posted
> in this forum.
>
> Thank
>

Have you tried www.test1.cgi/

When you have a trailing / on DocumentRoot it may require it on the URL.
And how does your machine resolve www.test1.cgi? Is that a hosts file
entry on your local machine?

But like Davide says...What is in the error_log?






--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: check virtualhost issue that not allow to run CGI script

am 07.06.2007 22:07:03 von kwan

On Jun 7, 10:12 am, Mark wrote:
> kwan wrote in news:1181234756.936573.210370
> @o5g2000hsb.googlegroups.com:
>
>
>
>
>
> > I have an apache webserver that run smoothly with the pre-installation
> > and basic configuration for it to allow to run CGI script. However the
> > problem exists with VirtualHost that I try to run the cgi script that
> > the only message I can see is 500 Error, which say the the Internal
> > Apache configuration is error.
>
> >
> > ServerNamewww.test1.cgi
> > ServerAdmin testsupp...@gmail.com
> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> > DirectoryIndex support.cgi
> >
> > Options ExecCGI
> > AddHandler cgi-script .cgi .pl
> >

> >

>
> > when I try to go to the sitewww.test1.cgiit says the 500 Error..
> > It seems everythings according to the configuration to allow to run
> > CGI script, I follows extractly some httpd.conf that previously posted
> > in this forum.
>
> > Thank
>
> Have you triedwww.test1.cgi/
>
> When you have a trailing / on DocumentRoot it may require it on the URL.
> And how does your machine resolvewww.test1.cgi?Is that a hosts file
> entry on your local machine?
>
> But like Davide says...What is in the error_log?
>
> --
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> - Show quoted text -

I look at the error_log and the error all about the permission of the /
usr/www/vhosts/supporttest.com/htdocs/support/

when I modify the httpd.conf below


ServerName www.test1.cgi
ServerAdmin testsupp...@gmail.com
DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/

#modify part
ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/


Options ExecCGI
AddHandler cgi-script .cgi .pl



www.test1.cgi/cgi-bin/test1.pl

it display the main configurate that placed in /var/html/cgi-bin/
test1.pl
it isn't display the /usr/www/vhosts/supporttest.com/htdocs/support

Re: check virtualhost issue that not allow to run CGI script

am 07.06.2007 22:10:14 von kwan

On Jun 7, 1:07 pm, kwan wrote:
> On Jun 7, 10:12 am, Mark wrote:
>
>
>
>
>
> > kwan wrote in news:1181234756.936573.210370
> > @o5g2000hsb.googlegroups.com:
>
> > > I have an apache webserver that run smoothly with the pre-installation
> > > and basic configuration for it to allow to run CGI script. However the
> > > problem exists with VirtualHost that I try to run the cgi script that
> > > the only message I can see is 500 Error, which say the the Internal
> > > Apache configuration is error.
>
> > >
> > > ServerNamewww.test1.cgi
> > > ServerAdmin testsupp...@gmail.com
> > > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> > > DirectoryIndex support.cgi
> > >
> > > Options ExecCGI
> > > AddHandler cgi-script .cgi .pl
> > >

> > >

>
> > > when I try to go to the sitewww.test1.cgiitsays the 500 Error..
> > > It seems everythings according to the configuration to allow to run
> > > CGI script, I follows extractly some httpd.conf that previously posted
> > > in this forum.
>
> > > Thank
>
> > Have you triedwww.test1.cgi/
>
> > When you have a trailing / on DocumentRoot it may require it on the URL.
> > And how does your machine resolvewww.test1.cgi?Isthat a hosts file
> > entry on your local machine?
>
> > But like Davide says...What is in the error_log?
>
> > --
>
> > ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe#1 Newsgroup Service in the World! 120,000+ Newsgroups
> > ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> > - Show quoted text -
>
> I look at the error_log and the error all about the permission of the /
> usr/www/vhosts/supporttest.com/htdocs/support/
>
> when I modify the httpd.conf below
>
>
> ServerNamewww.test1.cgi
> ServerAdmin testsupp...@gmail.com
> DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
>
> #modify part
> ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
>
>
> Options ExecCGI
> AddHandler cgi-script .cgi .pl
>

>

>
> www.test1.cgi/cgi-bin/test1.pl
>
> it display the main configurate that placed in /var/html/cgi-bin/
> test1.pl
> it isn't display the /usr/www/vhosts/supporttest.com/htdocs/support- Hide quoted text -
>
> - Show quoted text -

the server should display test1.pl in this directory
/usr/www/vhosts/supporttest.com/htdocs/support/test1.pl
www.test1.cgi/cgi-bin/test1.pl

but anyhow it displays the test1.pl in the following directory instead
/var/html/cgi-bin/test1.pl
www.test1.cgi/cgi-bin/test1.pl

Re: check virtualhost issue that not allow to run CGI script

am 07.06.2007 22:15:52 von kwan

On Jun 7, 1:10 pm, kwan wrote:
> On Jun 7, 1:07 pm, kwan wrote:
>
>
>
>
>
> > On Jun 7, 10:12 am, Mark wrote:
>
> > > kwan wrote in news:1181234756.936573.210370
> > > @o5g2000hsb.googlegroups.com:
>
> > > > I have an apache webserver that run smoothly with the pre-installation
> > > > and basic configuration for it to allow to run CGI script. However the
> > > > problem exists with VirtualHost that I try to run the cgi script that
> > > > the only message I can see is 500 Error, which say the the Internal
> > > > Apache configuration is error.
>
> > > >
> > > > ServerNamewww.test1.cgi
> > > > ServerAdmin testsupp...@gmail.com
> > > > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> > > > DirectoryIndex support.cgi
> > > >
> > > > Options ExecCGI
> > > > AddHandler cgi-script .cgi .pl
> > > >

> > > >

>
> > > > when I try to go to the sitewww.test1.cgiitsaysthe 500 Error..
> > > > It seems everythings according to the configuration to allow to run
> > > > CGI script, I follows extractly some httpd.conf that previously posted
> > > > in this forum.
>
> > > > Thank
>
> > > Have you triedwww.test1.cgi/
>
> > > When you have a trailing / on DocumentRoot it may require it on the URL.
> > > And how does your machine resolvewww.test1.cgi?Isthata hosts file
> > > entry on your local machine?
>
> > > But like Davide says...What is in the error_log?
>
> > > --
>
> > > ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe#1Newsgroup Service in the World! 120,000+ Newsgroups
> > > ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> > > - Show quoted text -
>
> > I look at the error_log and the error all about the permission of the /
> > usr/www/vhosts/supporttest.com/htdocs/support/
>
> > when I modify the httpd.conf below
>
> >
> > ServerNamewww.test1.cgi
> > ServerAdmin testsupp...@gmail.com
> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
>
> > #modify part
> > ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
>
> >
> > Options ExecCGI
> > AddHandler cgi-script .cgi .pl
> >

> >

>
> >www.test1.cgi/cgi-bin/test1.pl
>
> > it display the main configurate that placed in /var/html/cgi-bin/
> > test1.pl
> > it isn't display the /usr/www/vhosts/supporttest.com/htdocs/support- Hide quoted text -
>
> > - Show quoted text -
>
> the server should display test1.pl in this directory
> /usr/www/vhosts/supporttest.com/htdocs/support/test1.plwww.t est1.cgi/cgi-bin/test1.pl
>
> but anyhow it displays the test1.pl in the following directory instead
> /var/html/cgi-bin/test1.plwww.test1.cgi/cgi-bin/test1.pl- Hide quoted text -
>
> - Show quoted text -

NameVirtualHost 192.168.1.1

ServerName www.test1.cgi
SerVerAdmin testsupport@gamil.com
DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
DirectoryIndex support.cgi

ScriptAlias /cgi-bin/ /usr/www/vhosts/supporttest.com/htdocs/support/

Options ExecCGI
AddHandler cgi-script .cgi .pl




the server should able to serve the following request from the browser

www.test1.cgi
/usr/www/vhosts/supporttest.com/htdocs/support/support.cgi


www.test1.cgi/cgi-bin/test1.pl
/usr/www/vhosts/supporttest.com/htdocs/support/test1.pl

but it simply displays error, all the files is chmod 755 permission

Re: check virtualhost issue that not allow to run CGI script

am 07.06.2007 23:26:09 von Mark Taylor

kwan wrote in
news:1181246823.185684.209250@n4g2000hsb.googlegroups.com:

> On Jun 7, 10:12 am, Mark wrote:
>> kwan wrote in news:1181234756.936573.210370
>> @o5g2000hsb.googlegroups.com:
>>
>>
>>
>>
>>
>> > I have an apache webserver that run smoothly with the
>> > pre-installation and basic configuration for it to allow to run CGI
>> > script. However the problem exists with VirtualHost that I try to
>> > run the cgi script that the only message I can see is 500 Error,
>> > which say the the Internal Apache configuration is error.
>>
>> >
>> > ServerNamewww.test1.cgi
>> > ServerAdmin testsupp...@gmail.com
>> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
>> > DirectoryIndex support.cgi
>> >
>> > Options ExecCGI
>> > AddHandler cgi-script .cgi .pl
>> >

>> >

>>
>> > when I try to go to the sitewww.test1.cgiit says the 500 Error..
>> > It seems everythings according to the configuration to allow to run
>> > CGI script, I follows extractly some httpd.conf that previously
>> > posted in this forum.
>>
>> > Thank
>>
>> Have you triedwww.test1.cgi/
>>
>> When you have a trailing / on DocumentRoot it may require it on the
>> URL. And how does your machine resolvewww.test1.cgi?Is that a hosts
>> file entry on your local machine?
>>
>> But like Davide says...What is in the error_log?
>>
>> --
>>
>> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure
>> Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in
>> the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms
>> - Total Privacy via Encryption =----- Hide quoted text -
>>
>> - Show quoted text -
>
> I look at the error_log and the error all about the permission of the
> / usr/www/vhosts/supporttest.com/htdocs/support/
>
> when I modify the httpd.conf below
>
>
> ServerName www.test1.cgi
> ServerAdmin testsupp...@gmail.com
> DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
>
> #modify part
> ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
>
>
> Options ExecCGI
> AddHandler cgi-script .cgi .pl
>

>

>
> www.test1.cgi/cgi-bin/test1.pl
>
> it display the main configurate that placed in /var/html/cgi-bin/
> test1.pl
> it isn't display the /usr/www/vhosts/supporttest.com/htdocs/support
>
>
>
>

Ok, I see a couple of way non conventional things that may be
complicating things. These are just suggestions to make based on
simplifying the configuration in order to more easily troubleshoot the
config. Making the changes here may or may not fix your problem.

www.test1.cgi ---- Doesn't anyone use .com addresses any more? I'm not
saying that this would not work as long as your client machine can
resolve the address, but the .cgi TLD is confusing to see when you are
trying to debug .cgi files. I'd change it to a .com address for the
server name.

DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
According to the apache documentation the root directory *should* be
specified without a trailing /. This might cause it to not work at all.

ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
By making your DocumentRoot a ScriptAlias you are restricting the
directory to the point where normal files cannot be served from there. If
you want a script alias it should be in a directory above your directory
root. Why do you want to alias it if it is your document root?

Be sure that you do not have a ScriptAlias in your main server
configuration that might interfere with other scripting.

This is what I might do to debug this....


# changed the following line
ServerName www.test1.com
ServerAdmin testsupp...@gmail.com
# changed the following line by removing the trailing /
DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support

# changed the following line
ScriptAlias /cgi-bin/ /usr/www/vhosts/supporttest.com/cgi-bin


Options ExecCGI
# the following line should already be in the main section
# you might be able to remove it.
AddHandler cgi-script .cgi .pl




Then, put an entry into your client machines hosts file:
192.167.1.1 www.test1.com

Then, put a "Hello World" html file in the directory at
/usr/www/vhosts/supporttest.com/htdocs/support
See if it will serve that html file. If so then you can proceed.

Then, pur a "Hello World" script in
/usr/www/vhosts/supporttest.com/cgi-bin
See if it will serve that script. If so then I think your problem is
solved. If not then see what the error_log says now.




----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: check virtualhost issue that not allow to run CGI script

am 08.06.2007 17:28:11 von kwan

On Jun 7, 2:26 pm, Mark Taylor wrote:
> kwan wrote innews:1181246823.185684.209250@n4g2000hsb.googlegroups.com:
>
>
>
>
>
> > On Jun 7, 10:12 am, Mark wrote:
> >> kwan wrote in news:1181234756.936573.210370
> >> @o5g2000hsb.googlegroups.com:
>
> >> > I have an apache webserver that run smoothly with the
> >> > pre-installation and basic configuration for it to allow to run CGI
> >> > script. However the problem exists with VirtualHost that I try to
> >> > run the cgi script that the only message I can see is 500 Error,
> >> > which say the the Internal Apache configuration is error.
>
> >> >
> >> > ServerNamewww.test1.cgi
> >> > ServerAdmin testsupp...@gmail.com
> >> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> >> > DirectoryIndex support.cgi
> >> >
> >> > Options ExecCGI
> >> > AddHandler cgi-script .cgi .pl
> >> >

> >> >

>
> >> > when I try to go to the sitewww.test1.cgiitsays the 500 Error..
> >> > It seems everythings according to the configuration to allow to run
> >> > CGI script, I follows extractly some httpd.conf that previously
> >> > posted in this forum.
>
> >> > Thank
>
> >> Have you triedwww.test1.cgi/
>
> >> When you have a trailing / on DocumentRoot it may require it on the
> >> URL. And how does your machine resolvewww.test1.cgi?Isthat a hosts
> >> file entry on your local machine?
>
> >> But like Davide says...What is in the error_log?
>
> >> --
>
> >> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure
> >> Usenet News==----http://www.newsfeeds.comThe#1 Newsgroup Service in
> >> the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms
> >> - Total Privacy via Encryption =----- Hide quoted text -
>
> >> - Show quoted text -
>
> > I look at the error_log and the error all about the permission of the
> > / usr/www/vhosts/supporttest.com/htdocs/support/
>
> > when I modify the httpd.conf below
>
> >
> > ServerNamewww.test1.cgi
> > ServerAdmin testsupp...@gmail.com
> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
>
> > #modify part
> > ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
>
> >
> > Options ExecCGI
> > AddHandler cgi-script .cgi .pl
> >

> >

>
> >www.test1.cgi/cgi-bin/test1.pl
>
> > it display the main configurate that placed in /var/html/cgi-bin/
> > test1.pl
> > it isn't display the /usr/www/vhosts/supporttest.com/htdocs/support
>
> Ok, I see a couple of way non conventional things that may be
> complicating things. These are just suggestions to make based on
> simplifying the configuration in order to more easily troubleshoot the
> config. Making the changes here may or may not fix your problem.
>
> www.test1.cgi ---- Doesn't anyone use .com addresses any more? I'm not
> saying that this would not work as long as your client machine can
> resolve the address, but the .cgi TLD is confusing to see when you are
> trying to debug .cgi files. I'd change it to a .com address for the
> server name.
>
> DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> According to the apache documentation the root directory *should* be
> specified without a trailing /. This might cause it to not work at all.
>
> ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
> By making your DocumentRoot a ScriptAlias you are restricting the
> directory to the point where normal files cannot be served from there. If
> you want a script alias it should be in a directory above your directory
> root. Why do you want to alias it if it is your document root?
>
> Be sure that you do not have a ScriptAlias in your main server
> configuration that might interfere with other scripting.
>
> This is what I might do to debug this....
>
>
> # changed the following line
> ServerNamewww.test1.com
> ServerAdmin testsupp...@gmail.com
> # changed the following line by removing the trailing /
> DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support
>
> # changed the following line
> ScriptAlias /cgi-bin/ /usr/www/vhosts/supporttest.com/cgi-bin
>
>
> Options ExecCGI
> # the following line should already be in the main section
> # you might be able to remove it.
> AddHandler cgi-script .cgi .pl
>

>

>
> Then, put an entry into your client machines hosts file:
> 192.167.1.1 www.test1.com
>
> Then, put a "Hello World" html file in the directory at
> /usr/www/vhosts/supporttest.com/htdocs/support
> See if it will serve that html file. If so then you can proceed.
>
> Then, pur a "Hello World" script in
> /usr/www/vhosts/supporttest.com/cgi-bin
> See if it will serve that script. If so then I think your problem is
> solved. If not then see what the error_log says now.
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> - Show quoted text -

Thank you Mark,

I have tried all the methods that mention in the books, your method,
and also I looked for the tutorial online about VirtualHost, I think
my VirtualHost is working, however it isn't allow me to display the
CGI-script as now I test a directory that has cgi script within it.
The only I can see is Error 403 the file.

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#

AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all


another cgi script directory

ScriptAlias /cgi/ "/var/cgi-bin/"

Options ExecCGI


AddHandler cgi-script .cgi .pl
----------------------------------------
NameVirtualHost 192.168.1.1

ServerName www.mainppple.com



ServerName www.supportppple.com
ServerAdmin support@ppple.com
DocumentRoot /usr/home/www_root/supportppple/public_html
DirectoryIndex default.html
ScriptAlias /cgi-bin/ "/usr/home/www_root/supportppple/public_html/
cgi-bin/"

Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .cgi .pl




ServerName www.billppple.com
ServerAdmin billppple@ppple.com
DocumentRoot /usr/home/www_root/billppple/public_html
# default.cgi
# it never work but default.html it is working

DirectoryIndex default.html
ScriptAlias /cgi-bin/ "/usr/home/www_root/billppple/public_html/cgi-
bin/"

Options +ExecCGI
AddHandler cgi-script .cgi .pl


-------------------------------
www.mainppple.com/cgi-bin/test1.cgi ==> working /var/www/cgi-bin
www.mainppple.com/cgi/cgitest.cgi ==> Error 403

www.supportppple.com ==> display default.html
www.supportppple.com/cgi-bin/supporttest.cgi ==> Error 403

www.billppple.com ==> display default.html
www.billppple.com/cgi-bin/billtest.cgi ==> error 403
------------------------------------------------------------ ---------
inside /usr/home/www_root/billppple/public_html
I do link to the cgi-bin/billtest.cgi
ln -s /cgi-bin/billtest.cgi
It is mention in the posted in the forum, I also follow but it still
doesn't working accordingly
------------------------------------------------------------ ---------
Do you think it is my Apache installation problem? I used default
installation of Apache in CentOS 5.0

Re: check virtualhost issue that not allow to run CGI script

am 09.06.2007 09:34:43 von kwan

On Jun 8, 8:28 am, kwan wrote:
> On Jun 7, 2:26 pm, Mark Taylor wrote:
>
>
>
>
>
> > kwan wrote innews:1181246823.185684.209250@n4g2000hsb.googlegroups.com:
>
> > > On Jun 7, 10:12 am, Mark wrote:
> > >> kwan wrote in news:1181234756.936573.210370
> > >> @o5g2000hsb.googlegroups.com:
>
> > >> > I have an apache webserver that run smoothly with the
> > >> > pre-installation and basic configuration for it to allow to run CGI
> > >> > script. However the problem exists with VirtualHost that I try to
> > >> > run the cgi script that the only message I can see is 500 Error,
> > >> > which say the the Internal Apache configuration is error.
>
> > >> >
> > >> > ServerNamewww.test1.cgi
> > >> > ServerAdmin testsupp...@gmail.com
> > >> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> > >> > DirectoryIndex support.cgi
> > >> >
> > >> > Options ExecCGI
> > >> > AddHandler cgi-script .cgi .pl
> > >> >

> > >> >

>
> > >> > when I try to go to the sitewww.test1.cgiitsaysthe 500 Error..
> > >> > It seems everythings according to the configuration to allow to run
> > >> > CGI script, I follows extractly some httpd.conf that previously
> > >> > posted in this forum.
>
> > >> > Thank
>
> > >> Have you triedwww.test1.cgi/
>
> > >> When you have a trailing / on DocumentRoot it may require it on the
> > >> URL. And how does your machine resolvewww.test1.cgi?Isthata hosts
> > >> file entry on your local machine?
>
> > >> But like Davide says...What is in the error_log?
>
> > >> --
>
> > >> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure
> > >> Usenet News==----http://www.newsfeeds.comThe#1Newsgroup Service in
> > >> the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms
> > >> - Total Privacy via Encryption =----- Hide quoted text -
>
> > >> - Show quoted text -
>
> > > I look at the error_log and the error all about the permission of the
> > > / usr/www/vhosts/supporttest.com/htdocs/support/
>
> > > when I modify the httpd.conf below
>
> > >
> > > ServerNamewww.test1.cgi
> > > ServerAdmin testsupp...@gmail.com
> > > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
>
> > > #modify part
> > > ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
>
> > >
> > > Options ExecCGI
> > > AddHandler cgi-script .cgi .pl
> > >

> > >

>
> > >www.test1.cgi/cgi-bin/test1.pl
>
> > > it display the main configurate that placed in /var/html/cgi-bin/
> > > test1.pl
> > > it isn't display the /usr/www/vhosts/supporttest.com/htdocs/support
>
> > Ok, I see a couple of way non conventional things that may be
> > complicating things. These are just suggestions to make based on
> > simplifying the configuration in order to more easily troubleshoot the
> > config. Making the changes here may or may not fix your problem.
>
> >www.test1.cgi ---- Doesn't anyone use .com addresses any more? I'm not
> > saying that this would not work as long as your client machine can
> > resolve the address, but the .cgi TLD is confusing to see when you are
> > trying to debug .cgi files. I'd change it to a .com address for the
> > server name.
>
> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support/
> > According to the apache documentation the root directory *should* be
> > specified without a trailing /. This might cause it to not work at all.
>
> > ScriptAlias /cgi-bin /usr/www/vhosts/supporttest.com/htdocs/support/
> > By making your DocumentRoot a ScriptAlias you are restricting the
> > directory to the point where normal files cannot be served from there. If
> > you want a script alias it should be in a directory above your directory
> > root. Why do you want to alias it if it is your document root?
>
> > Be sure that you do not have a ScriptAlias in your main server
> > configuration that might interfere with other scripting.
>
> > This is what I might do to debug this....
>
> >
> > # changed the following line
> > ServerNamewww.test1.com
> > ServerAdmin testsupp...@gmail.com
> > # changed the following line by removing the trailing /
> > DocumentRoot /usr/www/vhosts/supporttest.com/htdocs/support
>
> > # changed the following line
> > ScriptAlias /cgi-bin/ /usr/www/vhosts/supporttest.com/cgi-bin
>
> >
> > Options ExecCGI
> > # the following line should already be in the main section
> > # you might be able to remove it.
> > AddHandler cgi-script .cgi .pl
> >

> >

>
> > Then, put an entry into your client machines hosts file:
> > 192.167.1.1 www.test1.com
>
> > Then, put a "Hello World" html file in the directory at
> > /usr/www/vhosts/supporttest.com/htdocs/support
> > See if it will serve that html file. If so then you can proceed.
>
> > Then, pur a "Hello World" script in
> > /usr/www/vhosts/supporttest.com/cgi-bin
> > See if it will serve that script. If so then I think your problem is
> > solved. If not then see what the error_log says now.
>
> > ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe#1 Newsgroup Service in the World! 120,000+ Newsgroups
> > ----= East and West-Coast Server Farms - Total Privacy via Encryption =----- Hide quoted text -
>
> > - Show quoted text -
>
> Thank you Mark,
>
> I have tried all the methods that mention in the books, your method,
> and also I looked for the tutorial online about VirtualHost, I think
> my VirtualHost is working, however it isn't allow me to display the
> CGI-script as now I test a directory that has cgi script within it.
> The only I can see is Error 403 the file.
>
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
> #
> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> # CGI directory exists, if you have that configured.
> #
>
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
>

>
> another cgi script directory
>
> ScriptAlias /cgi/ "/var/cgi-bin/"
>
> Options ExecCGI
>

>
> AddHandler cgi-script .cgi .pl
> ----------------------------------------
> NameVirtualHost 192.168.1.1
>
> ServerNamewww.mainppple.com
>

>
>
> ServerNamewww.supportppple.com
> ServerAdmin supp...@ppple.com
> DocumentRoot /usr/home/www_root/supportppple/public_html
> DirectoryIndex default.html
> ScriptAlias /cgi-bin/ "/usr/home/www_root/supportppple/public_html/
> cgi-bin/"
>
> Options Indexes FollowSymLinks ExecCGI
> AddHandler cgi-script .cgi .pl
>

>

>
>
> ServerNamewww.billppple.com
> ServerAdmin billpp...@ppple.com
> DocumentRoot /usr/home/www_root/billppple/public_html
> # default.cgi
> # it never work but default.html it is working
>
> DirectoryIndex default.html
> ScriptAlias /cgi-bin/ "/usr/home/www_root/billppple/public_html/cgi-
> bin/"
>
> Options +ExecCGI
> AddHandler cgi-script .cgi .pl
>

>

> -------------------------------www.mainppple.com/cgi-bin/tes t1.cgi==> working /var/www/cgi-binwww.mainppple.com/cgi/cgitest.cgi ==> Error 403
>
> www.supportppple.com==> display default.htmlwww.supportppple.com/cgi-bin/supporttest.cgi==> Error 403
>
> www.billppple.com==> display default.htmlwww.billppple.com/cgi-bin/billtest.cgi==> error 403
> ------------------------------------------------------------ ---------
> inside /usr/home/www_root/billppple/public_html
> I do link to the cgi-bin/billtest.cgi
> ln -s /cgi-bin/billtest.cgi
> It is mention in the posted in the forum, I also follow but it still
> doesn't working accordingly
> ------------------------------------------------------------ ---------
> Do you think it is my Apache installation problem? I used default
> installation of Apache in CentOS 5.0- Hide quoted text -
>
> - Show quoted text -

Error
500 Internal Server Error
(13) Permission dinenied: exec of '/usr..../' failed
premature and of script headers
-------------