Cgi Files Problem Help PLeasee

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Cgi Files Problem Help PLeasee

Postby Danwer » 26. February 2009 09:40

hello can anyone tell me what is problem creating with cgi-bin folder
i can't access .. :(
you can see it on
Code: Select all
http://danwer.myftp.org/cgi-bin/


it is saying
Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.
Error 403
danwer.myftp.org
02/26/09 13:39:36
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6
Danwer
 
Posts: 13
Joined: 29. September 2008 23:00

Re: Cgi Files Problem Help PLeasee

Postby Izzy » 26. February 2009 09:43

Any clues in the apache\logs\error.log file?

Is the cgi-bin part of a virtualhost location?

Where is this cgi-bin located?
Last edited by Izzy on 12. March 2009 09:54, edited 4 times in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Cgi Files Problem Help PLeasee

Postby Danwer » 26. February 2009 09:44

it is saying
[Thu Feb 26 13:45:07 2009] [error] [client 10.122.1.214] File does not exist: C:/xampp/htdocs/tempimage
[Thu Feb 26 13:45:09 2009] [error] [client 115.42.79.7] attempt to invoke directory as script: C:/xampp/htdocs/cgi-bin/
[Thu Feb 26 13:45:10 2009] [error] [client 10.122.1.214] File does not exist: C:/xampp/htdocs/tempimage

cgi-bin is in the htdocs folder
Danwer
 
Posts: 13
Joined: 29. September 2008 23:00

Re: Cgi Files Problem Help PLeasee

Postby Izzy » 26. February 2009 09:58

The cgi-bin for the DocumentRoot is in C:\xampp\cgi-bin as defined in the httpd.conf file

BTW you can run .cgi files anywhere in the htdocs folder as they don't need to be in a cgi-bin as defined in the httpd.conf file.

Try placing your cgi files directly in the folder of your web site if it is in the htdocs folder.
Last edited by Izzy on 12. March 2009 09:56, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Cgi Files Problem Help PLeasee

Postby Danwer » 26. February 2009 10:22

can i send you my php.ini file because i don't understand many english words
my english is very bad ?

can i attach ?
Danwer
 
Posts: 13
Joined: 29. September 2008 23:00

Re: Cgi Files Problem Help PLeasee

Postby Izzy » 26. February 2009 10:40

Your php.ini file is not the issue so no need to send it.

Your problem is where you have your .cgi files located.

So lets assume your web site is in C:\xampp\htdocs and you have a file called script.cgi also in the C:\xampp\htdocs folder then in your browser you would type this:

http://danwer.myftp.org/script.cgi
or
http://localhost/script.cgi

This would serve the script.cgi file.

You see no need for a cgi-bin

Are any of your perl scripts using the .pl file extension?

You did install the perl addon into XAMPP?

Make sure the first line in your script (shebang) is set to the location of the perl addon in XAMPP.
#!"c:\xampp\perl\bin\perl.exe"


BTW your English is 100 percent better than my Pakistani. :)
Last edited by Izzy on 12. March 2009 09:58, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Cgi Files Problem Help PLeasee

Postby Izzy » 26. February 2009 11:12

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.



Your htdocs\cgi-bin folder has to have a cgi script and you should call it from your browser not just
http://danwer.myftp.org/cgi-bin/
but
http://danwer.myftp.org/cgi-bin/script.cgi

I just replicated your issue on my XAMPP installation and got your same 403 error when I did not have a cgi script in the cgi-bin folder.
Last edited by Izzy on 12. March 2009 10:01, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Cgi Files Problem Help PLeasee

Postby Danwer » 26. February 2009 14:42

yes i understand you.. you are right.. but when i give url of cgi file it is saying this :(
Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
couldn't create child process: 720003: upload.cgi

If you think this is a server error, please contact the webmaster.
Error 500
danwer.myftp.org
02/26/09 18:40:37
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6


you can see it here
Code: Select all
http://danwer.myftp.org/filehost/cgi-bin/upload.cgi


and can u tell me what is this problem happening
when i am uploading video on script it go to this url
Code: Select all
http://danwer.myftp.org/videos/cgi-bin/ubr_upload.pl?upload_id=d6f47b8692c6d94fb09b726661cb3588&session=8



please help me someone i will be very thankfull of your..
Danwer
 
Posts: 13
Joined: 29. September 2008 23:00

Re: Cgi Files Problem Help PLeasee

Postby Izzy » 27. February 2009 00:13

Remember I said if you get a server 500 error to check the apache\logs\error.log file for more detailed clues?

Your error.log file may be getting large by now and hard to read, so do the following which will help:
1. Stop Apache
2. Open the error.log file in your text editor.
3. Delete all the content so your file is empty.
4. Save the file.
5. Start Apache.
6. Now do the things that are giving you errors.
7. Read the error.log file again, which should be easier now to find the latest errors.
8. Repeat the above if you have a large access.log file.
9. Repeat from time to time if the log files get too big again to read easily.

Paste here the latest errors that are relative to your issue.

Did you install the perl addon for XAMPP and if so where in is it located on your hard drive?

Paste here the very first line of the upload.cgi script.



...and can u tell me what is this problem happening
when i am uploading video on script it go to this url
Code: Select all
http://danwer.myftp.org/videos/cgi-bin/ubr_upload.pl?upload_id=d6f47b8692c6d94fb09b726661cb3588&session=8

As I said before you must check all the paths in your script's configurations are correct and point to the actual paths in your website tree.

What is the web app you are trying to use and I will take a look and see if I can be of more help with it although this is not really an XAMPP issue and should really be asked of the app's author or on their web site.
Last edited by Izzy on 12. March 2009 10:04, edited 1 time in total.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Cgi Files Problem Help PLeasee

Postby Danwer » 27. February 2009 14:56

can u fix the cgi-bin errors and video uploading errors by teamviewer software
i will be very thankfull of yours
i am n00b in english and in this field if you do once i will learn all things

i want this setup fully configured :( ffmpeg problems means converting and flvtool2 problem and cgi-bin problems
perl modules :(, mail sending problems
Danwer
 
Posts: 13
Joined: 29. September 2008 23:00

Re: Cgi Files Problem Help PLeasee

Postby Danwer » 01. March 2009 19:25

Please....
Danwer
 
Posts: 13
Joined: 29. September 2008 23:00


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 110 guests