| Coding Forum Problems with your code? Let's hear about it. |
05-17-2006, 11:57 PM
|
#1 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Flash mail form and php problem
Hi php folks,
I've a flash submission form at http://www.irkawebdesign.com/contact.html, actually the script is correct and the php script is correct also i guess. My problem is that everytime i try to send a mail ( when i fill up everything on the form ) it returns me that freaking error:
Quote:
Forbidden
You don't have permission to access /sendmail.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.irkawebdesign.com Port 80
|
So i contacted my hosting and those guys said it was a problem with my send button,
Quote:
|
Originally Posted by Daily Razor Troubleshooting Folks
We can't reproduce the issue using url that you have provided. Please make sure that "Send" button works properly.
Thanks,
Support-KA
DailyRazor Support Team
|
I tried the script and the form on my other servers and damn it works well, why it doesnt work on irkawebdesign.com, you guys have any ideas? did my hosting told me crap?
Thanks for any suggestions comments questions 
Patrick !!!!!!!
|
|
|
05-18-2006, 12:39 AM
|
#2 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Did you try to chmod the sendmail.php?
|
|
|
05-18-2006, 12:42 AM
|
#3 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Quote:
|
Originally Posted by reteep
Did you try to chmod the sendmail.php?
|
Hum how can i do that  ?
|
|
|
05-18-2006, 12:46 AM
|
#4 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Quote:
|
Originally Posted by irka
Hum how can i do that  ?
|
Depends on your FTP Client, in FlashFXP e.g.:
Right-Click on the File, CHMOD, and set it to 777.
|
|
|
05-18-2006, 12:53 AM
|
#5 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
I use smart ftp, i tried what you said, it still doesnt work, what the 777 stand for ? :p
|
|
|
05-18-2006, 01:00 AM
|
#6 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Read, Write and Execution Permissions.. hm.. then I assume it's indeed a problem of your host, do you have access to your Apache Error Log?
|
|
|
05-18-2006, 01:05 AM
|
#7 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Quote:
|
Originally Posted by reteep
Read, Write and Execution Permissions.. hm.. then I assume it's indeed a problem of your host, do you have access to your Apache Error Log?
|
Alright im a total noob when its about network... How can i access my apache error log, is it on my ftp? I've access to Cpanel btw... Thanks for supporting me dude   
|
|
|
05-18-2006, 01:13 AM
|
#8 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Quote:
|
Originally Posted by irka
|
Maybe CPANEL can show your Error logs, try to find something about Apache Error Logs there, if not and if it's just webspace(no root access) you have to talk to your host again, they shall check the apache logs for your domain to find out what's the problem with sendmail.php
|
|
|
05-18-2006, 01:26 AM
|
#9 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Alright so i've been in the error log manager from CPanel and here is what i found for the sendmail.php:
[Thu May 18 02:52:30 2006] [error] [client 58.186.117.85] Options ExecCGI is off in this directory: /home/****/public_html/sendmail.php
[Thu May 18 02:52:11 2006] [error] [client 58.186.117.85] File does not exist: /home/****/public_html/403.shtml
[Thu May 18 02:52:11 2006] [error] [client 58.186.117.85] Options ExecCGI is off in this directory: /home/****/public_html/sendmail.php
[Thu May 18 02:51:56 2006] [error] [client 58.186.117.85] File does not exist: /home/****/public_html/403.shtml
[Thu May 18 02:51:56 2006] [error] [client 58.186.117.85] Options ExecCGI is off in this directory: /home/****/public_html/sendmail.php
File does not existWTF??? its here i can see it
What do you think, the " is off in this directory " doesnt sound real good isnt it?
I should learn bout all that stuff
|
|
|
05-18-2006, 01:32 AM
|
#10 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
You need to add the following line to your .htaccess that located in the same folder as the script you are trying to execute:
The 403 Error isn't important..
|
|
|
05-18-2006, 01:45 AM
|
#11 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Quote:
|
Originally Posted by reteep
You need to add the following line to your .htaccess that located in the same folder as the script you are trying to execute:
The 403 Error isn't important..
|
I added it into my .htaccess so now it looks like that:
Quote:
Options ExecCGI
AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes
AddHandler server-parsed .html
Options Includes
|
the sendmail.php is in the same page as the .htaccess but i still have the error.... perhaps i should add sendmail.php to the appropriate folder, i was thinking about the folder cgi-bin(??is that crazy??)
My website is build in SSI, i still have the 777 attributes into the chmod of sendmail.php, i added that code "Options ExecCGI" into the .htaccess file. This is where i am right now!
Quote:
|
Originally Posted by recent Cpanel Error Log
[Thu May 18 03:44:12 2006] [error] [client 58.186.117.85] File does not exist: /home/****/public_html/403.shtml
[Thu May 18 03:44:12 2006] [error] [client 58.186.117.85] Options ExecCGI is off in this directory: /home/****/public_html/sendmail.php
|
Damn i added it though,
Thanks for your patience dude, i really appreciate it
|
|
|
05-18-2006, 01:49 AM
|
#12 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Then it seems to be ignored and php seems to be executed as CGI module. Ask your host if they can enable ExecCGI for that directory. You shouldn't place it in cgi-bin 
|
|
|
05-18-2006, 01:52 AM
|
#13 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Quote:
|
Originally Posted by reteep
Then it seems to be ignored and php seems to be executed as CGI module. Ask your host if they can enable ExecCGI for that directory. You shouldn't place it in cgi-bin 
|
Alright Alright, i'm coming back on my hosting troubleshooting thread, i come back to you as soon as they replied to me  Kick ass dude!!!
Dat rocks!!!
BTW  I learnt more today than yesterday  
|
|
|
05-18-2006, 01:54 AM
|
#14 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Glad I could help 
|
|
|
05-18-2006, 02:47 AM
|
#15 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Quote:
|
Originally Posted by reteep
Glad I could help 
|
Quote:
Hello Patrick,
this option should be enabled in .htaccess file under your public_html directory. We see that you have this option enabled already.
Regards
|
Here's what the son of b*tches told me. So i deleted the ExecCGI in my .htaccess file and resent them a message that they have to support me or there'll be no crepes tonight!
;D
|
|
|
05-18-2006, 02:52 AM
|
#16 (permalink)
|
|
Inactive
Join Date: 03-20-06
Location: Germany
Posts: 523
|
Eheh,
as long as this Error Message appears:
[error] [client 58.186.117.85] Options ExecCGI is off in this directory: /home/****/public_html/sendmail.php
It's not enabled, tell them to check the Apache Logs..
|
|
|
05-18-2006, 04:26 AM
|
#17 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Quote:
|
Originally Posted by reteep
Eheh,
as long as this Error Message appears:
[error] [client 58.186.117.85] Options ExecCGI is off in this directory: /home/****/public_html/sendmail.php
It's not enabled, tell them to check the Apache Logs..
|
Its what i told them, they replied me saying i've to use .htaccess files for some custom Apache settings. But the htaccess doesnt work at all!!! So i made a test with a basic form built in php on 2 of my websites who got a hosting with them, on irkawebdesign it doesnt work... but on the other one it works well and with hte same hosting program lol...
I hope i'll finish that problem before the end of the day 
|
|
|
05-18-2006, 04:56 AM
|
#18 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
|
Now is the funniest part, when i think its over and the test at http://www.irkawebdesign.com/test.html works well, i try my flash submission form and i get that message:
Quote:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@irkawebdesign.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.34 Server at www.irkawebdesign.com Port 80
|
AHHHHHHHHHHH When it is going to end ??? Lol i don't want html i want to use flash!! Think i have to make another example with 2 of my servers to show them the problem again ?
|
|
|
05-18-2006, 11:52 PM
|
#19 (permalink)
|
|
Inactive
Join Date: 03-17-06
Location: Saigon, Paris
Posts: 369
Latest Blog: None
| |