0
我編譯FCGI的Apache這樣的:FastCGI使用apache - 不是腳本或錯誤的權限?
g++ fcgistart.c -lfcgi
我得到了a.out
和使用
a2enmod fastcgi
現在的阿帕奇配置它,我讀manual
分配給任何程序處理程序fcgid-script使用FastCGI協議進行處理;
這是否意味着二進制文件是一個腳本? Wreid!無論如何,我把a.out
到/var/www/html
。
因爲處理程序(/etc/apache2/mods-enabled/fastcgi.conf)綁定到.fcgi
我複製a.out
到a.fcgi
。現在我瀏覽到http://localhost/a.fcgi
和403-禁止的事件。
[email protected]:/var/www/html$ ls -la
drwxr-xr-x 2 root root 4096 Feb 6 13:44 .
drwxr-xr-x 3 root root 4096 Feb 6 12:56 ..
-rwxr-xr-x 1 root root 8696 Feb 6 13:44 a.fcgi
-rwxr-xr-x 1 root root 8696 Feb 6 13:16 a.out
-rw-r--r-- 1 root root 11321 Feb 6 12:57 index.html
出了什麼問題?