#!/bin/sh exec /usr/local/cpanel/cgi-sys/php5 this command in file called php.fcgi. don't know what's meaning.
addhandler php-fastcgi .php action php-fastcgi /cgi-bin/php.fcgi the above command in in .htaccess file, what's meaning of them. thank you.
the first line defines file executed command /bin/sh unix shell. next line, shell command exec argument, executes , replaces current shell process (i.e shell script stop @ point).
#!/bin/sh exec /usr/local/cpanel/cgi-sys/php5 together means shell-script wrapper execute php5 binary.
in .htaccess first line defines handler named php-fastcgi files ending in .php:
addhandler php-fastcgi .php second line defines handler php-fastcgi can found @ location /cgi-bin/php.fcgi:
action php-fastcgi /cgi-bin/php.fcgi note not filesystem location, url path, further parsed apache find actual filesystem location (scriptaliases, aliases, etc).
all of means .php files executed above shell script, in turn runs php5 binary.
Comments
Post a Comment