To enable CGI through .htaccess, perform the following steps:
root user via SSH./usr/local/apache/conf/ directory.httpd.conf file. For example:Note: In this example, http-old.conf represents the backup file’s name.
4. Open your http.conf file with a text editor and locate the section of the file that resembles the following example:
1 2 3 4 | <Directory "/"> Options +ExecCGI +FollowSymLinks +Includes +IncludesNOEXEC +Indexes -MultiViews +SymLinksIfOwnerMatch AllowOverride None </Directory> |
AllowOverride line’s value from None to All.Your server now allows CGI scripts to run in all directories.
Keep your servers secure, optimized, and running smoothly with our reliable 24/7 server management and technical support.