Summary: My php sites are not showing up, just the error "File not found.".

  • I recently installed aaPanel because I needed to host multiple sites, issue. Everything was working fine until I had to use php, any .php file I tried to open returns the same message "File not found.". I have tried many configurations, other versions of php and I get the same error. All I did was install what the panel suggested (php, apache, etc.).

  • In the site logs I get the following error

  • "[proxy_fcgi:error] [pid 267647:tid 267770] [client 192.168.1.10:9450] AH01071: Got error 'Primary script unknown'"

  • My configuration is the default one given to me by the panel



  • <VirtualHost *:99>
    ServerAdmin webmaster@example.com
    DocumentRoot "/www/wwwroot/------.com"
    ServerName ------.-----.com
    ServerAlias francogiovanni.com
    #errorDocument 404 /404.html
    ErrorLog "/www/wwwlogs/------.com-error_log"
    CustomLog "/www/wwwlogs/------.com-access_log" combined

    #DENY FILES
    <Files ~ (.user.ini|.htaccess|.git|.env|.svn|.project|LICENSE|README.md)$>
    Order allow,deny
    Deny from all
    </Files>


    #PHP
    <FilesMatch .php$>
    SetHandler "proxy:unix:/tmp/php-cgi-80.sock|fcgi://localhost"
    </FilesMatch>


    #PATH
    <Directory "/www/wwwroot/------i.com">
    SetOutputFilter DEFLATE
    Options FollowSymLinks
    AllowOverride All
    Require all granted
    DirectoryIndex index.php index.html index.htm default.php default.html default.htm
    </Directory>
    </VirtualHost>

  • and in my .htaccess I have nothing

    Hello, please check if the website files exist? Do you need to set URL rewirte? You can refer to the website program provider's documentation for deployment.

    aaP_vizgarra362

      aaPanel_Kern Obviously I checked that the files were in the right place, there is even an index.html in the directory which displays correctly without any problems.