On 01/24/2018 03:09 PM, Emmett Culley wrote: > After a recent upgrade some development web sites served from my workstation stopped working. I've narrowed it down to the php_value auto_prepend_file directive not working. > > This is in the /etc/httpd/conf.d/csite.conf file: > > <Directory /var/dev/csite> > Require all granted > AllowOverride none > php_value error_log /var/dev/logs/caiet_error_log > php_value auto_prepend_file /var/dev/csite/site/host-map.inc > </Directory> > > The file /var/dev/csite/site/host-map.inc does not get loaded and this causes a 500 error. I've tried configuring apache as MPM = "prefork" (the new default seems to be "event"), but that made no difference. > > Note that all five other sites that use the auto_prepend_file directive no longer work either. All other development sites on my workstation work as expected. > > Any ideas where to look further would be appreciated. Fedora 27 is fully up to date. Check your selinux logs (or use sealert). Odds are that selinux is blocking access to /var/dev/csite/site since it's not part of the standard /var/www/* paths that Apache is permitted to access (unless you labeled the /var/dev/csite stuff with "httpd_sys_content_t" or you've disabled selinux or put it in permissive mode). Note that using PHP as a module in Apache using anything other than the prefork MPM isn't a good idea. The "event" or "worker" MPMs put Apache in multithreaded mode (generally a good thing), and while PHP itself is multithread-safe, MANY of the libraries that PHP uses are not. For event or worker MPMs, you should change over to php-fpm where PHP runs as a separate process rather than as part of Apache. Apache talks to it via either a local TCP port (typically 127.0.0.1:9000) or a Unix-domain socket. You will need to modify your Apache configs appropriately to use php-fpm, but the speed increase and decreased load on your machine would be a benefit. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - - AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 - - - - NEWS FLASH! Intelligence of mankind decreasing! Details at... - - uh, when, uh, the little hand is, uh, on the... Aw, NUTS! - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx