Hi,
I have a customer who has the following problem:
he has a .pl script which he located on the cgi-bin folder (Public_html/cgi-bin)
the .pl has 755 permission and the script is called from a php file located in public_html.
All works fine using preview mode for the domain (http://xxx.xxx.xxx.xxx/~user) but when he use the script in www format it doesn't work..
At first I thought it was a path problem.. so I suggested to use the full path 'cgi-bin path /home/username/domains/domainname/public_html/cgi-bin/script.pl';
cause originally on the php file the .pl is call like this:
$prog1='cgi-bin/UU.pl';
$cmd=$prog1;
$exit = exec($cmd);
echo "<pre>$exit</pre>";
echo "<br>$cmd";
Im running out of ideas, i've tried different combinations whith no luck..
what could be wrong? why on preview mode works ok, but using the www is not? i've checked the logs, and I got "not such file or directory" when the program calls the .pl script.. so Im guessing it has to be a permission problem rather than a path problem.. do i have to try with 750 for the .pl script?
thanks in advance for any help!
cheers!
I have a customer who has the following problem:
he has a .pl script which he located on the cgi-bin folder (Public_html/cgi-bin)
the .pl has 755 permission and the script is called from a php file located in public_html.
All works fine using preview mode for the domain (http://xxx.xxx.xxx.xxx/~user) but when he use the script in www format it doesn't work..
At first I thought it was a path problem.. so I suggested to use the full path 'cgi-bin path /home/username/domains/domainname/public_html/cgi-bin/script.pl';
cause originally on the php file the .pl is call like this:
$prog1='cgi-bin/UU.pl';
$cmd=$prog1;
$exit = exec($cmd);
echo "<pre>$exit</pre>";
echo "<br>$cmd";
Im running out of ideas, i've tried different combinations whith no luck..
what could be wrong? why on preview mode works ok, but using the www is not? i've checked the logs, and I got "not such file or directory" when the program calls the .pl script.. so Im guessing it has to be a permission problem rather than a path problem.. do i have to try with 750 for the .pl script?
thanks in advance for any help!
cheers!