Link to home
Start Free TrialLog in
Avatar of Al283
Al283

asked on

May CGI not work if httpd.conf, cgi file and its permissions are correct?

May CGI not work if httpd.conf, cgi file and its permissions are correct?
If so, how then the problem can be detected?
I am using Fedora 20 + Apache 2.2.
Avatar of matrix8086
matrix8086
Flag of Romania image

Did you installed php-cgi or/and perl-cgi?

Did you enabled cgi on httpd.conf?

Options FollowSymLinks ExecCGI

AddHandler cgi-script .cgi .pl

Good luck!
Avatar of Al283
Al283

ASKER

ServerRoot "/usr/local/apache2"
Listen 80
AddHandler cgi-script .cgi .pl
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
User daemon
Group daemon
</IfModule>
</IfModule>
ServerAdmin you@example.com
DocumentRoot "/usr/local/apache2/htdocs"
    AddHandler cgi-script .cgi
<Directory />
    Options FollowSymLinks ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
<Directory "/usr/local/apache2/htdocs">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>
ErrorLog "logs/error_log"
LogLevel warn
<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    CustomLog "logs/access_log" common
</IfModule>
<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
AddHandler cgi-script .cgi .pl
<Directory "/usr/local/apache2/cgi-bin">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddHandler cgi-script .cgi
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Open in new window

You need to choose between cgid module and cgi module, both cannot coexist.
ASKER CERTIFIED SOLUTION
Avatar of Al283
Al283

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Al283

ASKER

No solution found.