Re: PHP/Apache issue may be OT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I upgraded from Fedora 25 to Fedora 27 and found the upgrade switched
me from mod_php to php-fpm.  This means no more php_flag or php_value
in the apache config.  You should switch to .user.ini files which work like
.htaccess files:
[0:root@elmo DocumentRoot]$ cat .user.ini
max_execution_time      = 301   ;
memory_limit            = 512M  ;

[0:root@elmo DocumentRoot 130]$ cat reports/.user.ini
max_execution_time      = 361   ;
memory_limit            = 1024M ;
Notice that you can have .user.ini files in sub directories just like .htaccess that
over-rides settings from parent directories.

[0:root@yoda mariadb]$ cat /usr/local/src/phpMyAdmin-4.6.6-english/.user.ini
session.gc_probability    =  5     ;
session.gc_divisor        = 100    ;
session.gc_maxlifetime    = 604800    ;
session.save_path         = /home/webmaster/tmp.session/phpmyadmin    ;


[0:root@yoda mariadb]$ systemctl status php-fpm.service
● php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-01-12 00:30:40 PST; 1 weeks 1 days ago
 Main PID: 2449 (php-fpm)
   Status: "Processes active: 0, idle: 7, Requests: 109, slow: 0, Traffic: 0req/sec"
    Tasks: 8 (limit: 4915)
   CGroup: /system.slice/php-fpm.service
           ├─ 2449 php-fpm: master process (/etc/php-fpm.conf)
           ├─ 3294 php-fpm: pool www
           ├─ 3295 php-fpm: pool www
           ├─ 3296 php-fpm: pool www
           ├─ 3297 php-fpm: pool www
           ├─ 3298 php-fpm: pool www
           ├─18206 php-fpm: pool www
           └─18633 php-fpm: pool www

Jan 12 00:30:32 yoda.polymerindustries.biz systemd[1]: Starting The PHP FastCGI Process Manager...
Jan 12 00:30:40 yoda.polymerindustries.biz systemd[1]: Started The PHP FastCGI Process Manager.

An apache update on Fedora 25 forced me to switch from mpm_prefork_module
to mpm_event_module.

Bill

On 1/20/2018 8:16 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 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.

Emmett
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux