PHP7
CentOS7
Apache2.4
php-fpmを動作させて、laravelを動かそうとしているのですが、どうにも動作しません。
artisan serveでは正しく起動するのでコードは問題ないかと思います。
以下設定ファイルです
php
1[global] 2 3[www] 4user = nobody 5group = nobody 6listen = 127.0.0.1:9000 7pm = static 8pm.max_children = 5 9pm.start_servers = 2 10pm.min_spare_servers = 1 11pm.max_spare_servers = 3
httpd.conf
1¥<VirtualHost *:80> 2 DocumentRoot "/home/vagrant/myAp/public" 3 ServerName myapp 4 DirectoryIndex index.php 5 6 <Directory "/home/vagrant/myAp/public"> 7 <FilesMatch .php$> 8 SetHandler "proxy:fcgi://127.0.0.1:9000/" 9 </FilesMatch> 10 11 AllowOverride All 12 </Directory> 13</VirtualHost>
myAp/public/.htaccess
1<IfModule mod_rewrite.c> 2 <IfModule mod_negotiation.c> 3 Options -MultiViews 4 </IfModule> 5 6 RewriteEngine On 7 8 # Redirect Trailing Slashes If Not A Folder... 9 RewriteCond %{REQUEST_FILENAME} !-d 10 RewriteCond %{REQUEST_URI} (.+)/$ 11 RewriteRule ^ %1 [L,R=301] 12 13 # Handle Front Controller... 14 RewriteCond %{REQUEST_FILENAME} !-d 15 RewriteCond %{REQUEST_FILENAME} !-f 16 RewriteRule ^ index.php [L] 17 18 # Handle Authorization Header 19 RewriteCond %{HTTP:Authorization} . 20 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 21</IfModule>
あなたの回答
tips
プレビュー