Debian에 Apache 설치: CGI 구성 [닫기]

Debian에 Apache 설치: CGI 구성 [닫기]

패키지 관리자를 통해 CGI를 설치하고 모드를 활성화했지만 2시간 후에도 여전히 작동하지 않습니다.

/etc/apache2/sites-available/default것은:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    <IfModule mod_alias.c>
        ScriptAlias /cgi-bin/ /var/www/cgi-bin/

        <Directory /var/www/cgi-bin/>
            AllowOverride None
            Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ 
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

CGI가 활성화되었습니다. 내가 찾아보면 (나는 믿는다) mydomain.com/cgi-bin/로 간다 ./usr/lib/cgi

root@zeus:~# a2enmod cgi
Module cgi already enabled
root@zeus:~# apt-get install php5-cgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-cgi is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@zeus:~# sudo service apache2 restart
[....] Restarting web server: apache2[Wed Apr 23 20:20:28 2014] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/000-default at line 29 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
... waiting [Wed Apr 23 20:20:29 2014] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/000-default at line 29 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
. ok

관련 정보