Although I can run test.cgi fine but my perl all doesn’t work, is this htaccess correct:
AddHandler cgi-script .cgi
Options +ExecCGI
IndexIgnore *
DirectoryIndex myapp.cgi
RewriteEngine on
RewriteRule ^$ myapp.cgi [L]
RewriteRule ^/$ myapp.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ myapp.cgi/$1
Turns out that mediatemple’s PERL version is 5.8.4 and my app is only compatible with 5.8.8+.