Table of Contents

This guide will help you if you haven’t found the Apache file error.

Approved

  • 1. Download ASR Pro
  • 2. Open the program and select "Scan your computer"
  • 3. Click "Repair" to start the repair process
  • The software to fix your PC is just a click away - download it now.

    I’m having problems with the last phase of chroot implementation in php-fpm because Apache 2.4 is running on CentOS 7.

    I have successfully configured and tested our own php-fpm connection without chroot. But just because as soon as I add part of the chroot directive to my conf file using /etc/php-fpm.d/file.conf, I get a “File not found” message that many others will appreciate / p>
    apache file not found error

      [site1.com]User = user1User group 1Listen = matches /var/run/php-fpm/site1.com.socklisten.owner = user1listen.group = user1php_admin_value [disable_functions] equals = exec, passthru, shell_exec, systemphp_admin_flag [allow_url_fopen]php_admin_value [short_open_tag] = Enabledphp_admin_value [doc_root] matches /php_admin_value [error_log] = / logs / php-Fehlerphp_admin_flag [log_errors] = enabledpm means on requestpm.max_children = 5pm.start_servers = 2pm.min_spare_servers means 1pm.max_spare_servers = 3chroot = /home/www/site1.comchdir implies / wwwcatch_workers_output = yes 

    As you can see shortly after that, I entered chroot, I changed the chdir directive to PHP root. (The system path could be /home/www/site1.com/www and chdir seems to have been set to this before chroot the current directive was active).

              ServerAdmin [email protected]        Server nameand site1.com        ServerAlias ​​www.site1.com        / home / www / site1 documentroot.com/www                        Parameters contain FollowSymLinks                Directory index index.php                Allow Replace All                Log in, cancel the order                Allow everyone       ErrorLog /home/www/site1.com/logs/errorsCustomLog /home/www/site1.com/logs/access_log in general                        SetHandler "proxy: unix: ///var/run/php-fpm/site1.com.sock | fcgi: //site1.com"        LogLevel Trace 3 

    I started increasing the LogLevel in my new httpd.d / site.conf file, and here are some of the more interesting results:

    Approved

    The ASR Pro repair tool is the solution for a Windows PC that's running slowly, has registry issues, or is infected with malware. This powerful and easy-to-use tool can quickly diagnose and fix your PC, increasing performance, optimizing memory, and improving security in the process. Don't suffer from a sluggish computer any longer - try ASR Pro today!


      [Mon Nov 02 10: 42: 52.665284 2015] [proxy: trace2] [pid Proxy_util 14286] .c (2007): [Client 74.221.189.99: 16486] *: Reverse Learned Proxy Worker for Unix: ///var/run/php-fpm/site1.com.sock|fcgi://site1.com/home/www/site1.com/www/index.php    [Mon 02 Nov 10:42: 52.665292 [proxy: trace2] 2015] [pid 14286] proxy_util.c (2041): [client 74.221.189. *: 99: 16486] URL Rewrite for UDS (/ var / run / php-fpm / site1.com.sock): fcgi: //site1.com/home/www/site1.com/www/index. Php (proxy: fcgi: //site1.com/home/www/ site1.com /www/index.php)    [Mon Nov 10:42:52 02.665295 2015] [pid [proxy: debug] 14286] mod_proxy.c (1117): [client 74.221.189.99:16486] AH01143: Unix Manager flow diagram 0) (Attempted [Mon Nov 10, 10: 42: 52.665300 2015] [proxy_ajp: debugging] 14286] [pid mod_proxy_ajp.c (713): [Client 74.221.189.99: 16486] AH00894: negative url fcgi: // site1. com / home /www/site1.com/www/index.php    [Mon, 10 Nov 10:42: 52.665304 [proxy_fcgi: debug] 2015] [pid 14286] mod_proxy_fcgi.c (948): [Client 74.221.189.99: 16486] AH01076: URL: fcgi: //site1.com/home / www /site1.com/www/index.php proxy_name: (null) proxy_port: 0   [Mon 02 Nov 10: 42: 52.665307 2015] [proxy_fcgi: debug] [pid Mod_proxy_fcgi 14286] .c (955): [Client 74.221.189.99: 16486] AH01078: fcgi service url: //site1.com / home / www /site1.com/www/index.php    [Monday 2 November 10: 42: 52.665311 2015] [pid [proxy: debugging] 14286] proxy_util.c (2200): AH00942: FCGI: getting connection for (*)    [Mon 02 Nov 10: 42: 52.665316 2015] [pid [proxy: debug] 14286] proxy_util.c (2253): [Client 74.221.189.99: 16486] AH00944: connect to fcgi: //site1.com/home / www / site1.com/www/index.php at site1.com:8000    [Mon 02 Nov 10: 42: 52.665320 2015] [proxy: debug] [pid Proxy_util 14286] .c (2286): [client 74.221.189.99: 16486] AH02545: fcgi: found UDS as / var / run / php - fpm / site1.com.sock    [Mon, Nov 10:42:52, 02.665420 2015] [pid [proxy: debug] 14286] proxy_util.c (2419): [Customer 74.221.189.99:16486] AH00947: participating /home/www/site1.com/ www / index .php to httpd-UDS: 0   [Mon 02 Nov 10:42: 52.668135 2015] [proxy_fcgi: error] [pid [client 14286] 74.221.189.99: 16486] AH01071: Error "Main script unknown  n"   [Mon 02 Nov 10: 42: 52.668179 2015] [proxy_fcgi: trace1] [pid Util_script 14286] .c (599): [Client 74.221.189.99: 16486] Status bar index script.php: 404 Not Found    [Mon 02 Nov 10:42: 52.668237 2015] [http: trace3] [pid Http_filters 14286] .c (992): [Client 74.221.189.99:16486] Response with status 404    [Mon, November 2, 10 am:42: 52.2015] 668284 [proxy: debug] [pid 14286] proxy_util.c (2215): AH00943: FCGI: offers a free connection for (*) 
    • Why does the “File not only found” error always appear?
    • Better yet, how can I fix this, or at least how can I better solve my problem?

    apache file not found error

    The software to fix your PC is just a click away - download it now.