I'm getting the proxy_fcgi:error] AH01071: Got error 'Primary script unknown' error very frequently. Can anyone tell me what causing this error. What I learned so far is Rewrite rule may cause this issue. But do not understand exactly what causing this issue. Following are my Rewrite rules:
<VirtualHost *:80> ServerName example.com ServerAlias ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /var/www/> Options -Indexes +FollowSymLinks -MultiViews AllowOverride None Require all granted # Setting rewrite rules RewriteEngine on RewriteBase / RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule (.*) [R=301,L] # Show 404 error if there is any slash after page name RewriteRule ^.+?\.(php|html?)/ - [L,R=404,NC] # Custom Directory Index Files DirectoryIndex index.php index.html </Directory> </VirtualHost> <IfModule mod_ssl.c> <VirtualHost *:443> ServerName example.com ServerAlias ServerAdmin webmaster@localhost DocumentRoot /var/www <Directory /var/www/> Options -Indexes +FollowSymLinks -MultiViews AllowOverride None Require all granted # Setting rewrite rules RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^example.com$ [NC] RewriteRule (.*) [R=301,L] # Show 404 error if there is any slash after page name RewriteRule ^.+?\.(php|html?)/ - [L,R=404,NC] # Custom Directory Index Files DirectoryIndex index.php index.html </Directory> Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/ SSLCertificateKeyFile /etc/letsencrypt/live/ </VirtualHost> </IfModule> 1Related questions 9 error Bad Gateway NGINX 502 PHP-FPM fastcgi 19 1 FastCGI sent in stderr: "Primary script unknown" 1 Apache 2.4.6 mod_proxy_fcgi and PHP-FPM returning 404 error Related questions 9 error Bad Gateway NGINX 502 PHP-FPM fastcgi 19 1 FastCGI sent in stderr: "Primary script unknown" 1 Apache 2.4.6 mod_proxy_fcgi and PHP-FPM returning 404 error 8 error 28105#0: *1 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream 2 "Primary script unknown" PHP 13 Apache mod_proxy_fcgi and PHP-FPM (php-cgi.exe) issue (No input file specified.) on Windows 1 Sethandler fcgi proxy not working on Ubuntu 14.04/Apache 2.4.7 php7.2-fpm 9 No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/run/php/php5.6-fpm.sock (*) failed 0 proxy_fcgi:error AH01071: Got error 'PHP message: ' - but ONLY when stepping with xdebug 3 proxy_fcgi:error AH01071: Got error 'Unable to open primary script: /var/www/html/laravel/public/index.php (Permission denied)' Load 7 more related questions Show fewer related questions
Reset to default