Re: Troubleshooting php-fpm with apache on Centos 7

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



On 8/8/2017 8:57 πμ, John R Pierce wrote:

does the user apache is running as have write access to that folder ?

Thank you for your reply, John.

Yes, there is write access:

# ls -l /var/webs/wwwgreekgeo/log/php*
-rw-rw---- 1 root apache 0 Aug 7 22:58 /var/webs/wwwgreekgeo/log/php_error_log

# ls -l /var/webs/wwwgreekgeo/
total 8
drwxrwx---  2 wftpuser apache 4096 Aug  8 03:46 log
drwxrwx--- 10 wftpuser apache 4096 Dec  5  2014 www

For your reference, I am also including the php-fpm configuration:

   # cat /etc/php-fpm.d/www.conf

   include=/etc/php-fpm.d/*.conf

   [global]
   pid = /run/php-fpm/php-fpm.pid

   error_log = /var/log/php-fpm/error.log
   log_level = debug
   daemonize = yes

   [www]

   user = apache
   group = apache

   listen = 127.0.0.1:9000
   listen.allowed_clients = 127.0.0.1

   pm = dynamic
   pm.max_children = 50
   pm.start_servers = 2
   pm.min_spare_servers = 2
   pm.max_spare_servers = 4
   pm.process_idle_timeout = 10s;
   pm.max_requests = 500
   pm.status_path = /fpm-status

   slowlog = /var/log/php-fpm/www-slow.log
   request_slowlog_timeout = 5s
   request_terminate_timeout = 20s

   catch_workers_output = yes

   security.limit_extensions = .php .php3 .php4 .php5 .php7 .htm .html

   php_admin_value[error_log] = /var/log/php-fpm/www-error.log
   php_admin_flag[log_errors] = on
   php_value[session.save_handler] = files
   php_value[session.save_path]    = /var/lib/php/session
   php_value[soap.wsdl_cache_dir]  = /var/lib/php/wsdlcache

   php_admin_value[post_max_size] = 40M
   php_admin_value[short_open_tag] = On

   php_value[date.timezone] = "Europe/Athens"


Nick

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux