cgi execution problem ( not found for every file inside cgi-bin directories )
hi , i faced a problem regarding cgi execution in my server . one of my customers wanted to use cgi in his host , but server returns
The requested URL /cgi-bin/mt/mt.cgi was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
, i have checked everything i knew , even reinstalled apache with cgi again with fresh httpd configuration , but still the same problem exists.
even i have changed php/suexec configuration , and set php to run in DSO , fcgi , cgi modes but it gives the same error. my apache 2.2 is running in SUphp mode and suexec is active too. i have pre user configuration file in following location
but no changes in the result . still every file i place in cgi-bin folder of the users do no run.
what else should can i do ?
i should mention that , for that user , cgi execution is activated from whm > edit packages .
also cgi execution is active from whm Main >> Service Configuration >> Apache Configuration >> Global Configuration ExecCGI
also i think that cpanel cgi files are running with out any problems and every thing is working fine in cpanel.
any helps would be appreciated.
also i have tested cpanel sample cgi scripts , they worked in cpanel page but those which linked directly didnt work too. i just dont know how should those cgi files be linked directly.
for example this worked :
i had done that via whm , i activated cgi access for those hosts via whm , but when i wanted to execute a cgi script it gave me not found. and the reason was that no scriptalias was defined in httpd.conf , and activating its option via whm solved my problem.
thanks in advanced