Apache – Secure upload directories

It’s very important to secure directories which are being used as the destination dir for web uploads. You can do this by adding the following entries into the .htaccess file: Options -Indexes AddHandler cgi-script .php .php3 .php4 .php5 .phtml .pl .py .jsp .asp .htm .shtml .sh .cgi .txt Options -ExecCGI Just a small step to miss, but the impact may be huge. PS: Make sure that no directories...

August 6th, 2010 by Akhthar Parvez 

PHP CGI T_STRING error

PHP-CGI not working If you get the following error while accessing the PHP page, which is running as CGI: (ASCII=21) state=1 in /usr/local/cpanel/cgi-sys/php4 on line 382 Warning: Unexpected character in input: ‘ in /usr/local/cpanel/cgi-sys/php4 on line 382 Parse error: syntax error, unexpected T_STRING in /usr/local/cpanel/cgi-sys/php4 on line 382 FIX: Set the following under “Paths...

December 22nd, 2009 by Akhthar Parvez