当前,我正在使用PHP Codeigniter。
如果我使用命令php index.php welcome
运行脚本,那么它可以正常工作。但是,如果正在使用浏览器或命令wget http://localhost/project/index.php/welcome
运行,则它将无法正常工作,并且我看不到任何错误。
<VirtualHost *:80>
ServerName domain_here
ServerAlias domain_here
DocumentRoot /var/www/public/domain_here/public_html
<IfModule mod_fcgid.c>
SuexecUserGroup user_group_here user_group_here
<Directory /var/www/public/domain_here/public_html>
Options +ExecCGI +FollowSymLinks -SymLinksIfOwnerMatch
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /var/www/scripts/domain_here/php-fcgi-starter .php
Require all granted
</Directory>
FcgidMaxRequestLen 300000000
IdleTimeout 1200
BusyTimeout 1200
ProcessLifeTime 14400
IPCConnectTimeout 1200
IPCCommTimeout 14400
FcgidBusyTimeout 14400
FcgidIOTimeout 14400
</IfModule>
ErrorLog /var/www/public/domain_here/log/error.log
CustomLog /var/www/public/domain_here/log/access.log combined
Include /etc/apache2/conf-available/pma.conf
</VirtualHost>