Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Sat May 05, 2012 11:14 am 
Offline
Senior Newbie

Joined: Wed Nov 23, 2011 11:01 am
Posts: 16
ICQ: 35213257
Website: http://freshma.de/
Location: Saint Louis, MO
obs wrote:
You can turn on linode backups to backup your node before upgrading it's probably the easiest solution (and not expensive) you can submit a ticket to turn them off when you don't need them anymore.

As for php-fpm what's the contents of /etc/php5/fpm/main.conf

I did that last night and am now running on 12.04 with no issues as far as content goes, my php is throwing some errors in the cron job ever 30 minutes so I'll need to look into that.

Error
Code:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/xml.so' - /usr/lib/php5/20090626+lfs/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'xmlrpc' already loaded in Unknown on line 0


And my fpm/main.conf
Code:
;;;;;;;;;;;;;;;;;;;;;
; FPM Configuration ;
;;;;;;;;;;;;;;;;;;;;;
;include=/etc/php5/fpm/*.conf

;;;;;;;;;;;;;;;;;;
; Global Options ;
;;;;;;;;;;;;;;;;;;
[global]
pid = /var/run/php5-fpm.pid

error_log = /var/log/php5-fpm.log

;log_level = notice

;emergency_restart_threshold = 0

;emergency_restart_interval = 0

;process_control_timeout = 0

;daemonize = yes

;;;;;;;;;;;;;;;;;;;;
; Pool Definitions ;
;;;;;;;;;;;;;;;;;;;;
include=/etc/php5/fpm/pool.d/*.conf


I eliminated the commented stuff as that's nothing truly relevant. A lot of variables are commented out so I assume they're using defaults.

_________________
Newbie to Linode, excited to be here!


Top
   
 Post subject:
PostPosted: Sat May 05, 2012 12:03 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
The php errors will be from borked php.ini files, the first one is trying to load a module that doesn't exist (did you install any via pecl by any chance?)
The other two are trying to load a module twice.

As for PHP fpm...not helpful the configs have changed since I last looked what's do all the files in /etc/php5/fpm/pool.d/*.conf contain?

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat May 05, 2012 10:53 pm 
Offline
Senior Newbie

Joined: Wed Nov 23, 2011 11:01 am
Posts: 16
ICQ: 35213257
Website: http://freshma.de/
Location: Saint Louis, MO
obs wrote:
The php errors will be from borked php.ini files, the first one is trying to load a module that doesn't exist (did you install any via pecl by any chance?)
The other two are trying to load a module twice.

As for PHP fpm...not helpful the configs have changed since I last looked what's do all the files in /etc/php5/fpm/pool.d/*.conf contain?


I've never messed with pecl, I had to do a quick search just now (by nature not a server admin but command line cozy).

I did locate the references in the php.ini file (of which there's two, and I'll investigate this further) and comment out the xml.so and the two that were loading twice so hooray for not getting a cron email of errors every thirty minutes, lol.

The file I have in that directory is www.conf (below, non-relevant comments removed)
Code:
; Start a new pool named 'www'.
[www]

listen = /var/run/php-fpm.sock

listen.backlog = 1024
 
;listen.allowed_clients = 127.0.0.1

listen.owner = www-data
listen.group = www-data
listen.mode = 0600

user = www-data
group = www-data

pm = dynamic

pm.max_children = 12

;pm.start_servers = 4

pm.min_spare_servers = 2

pm.max_spare_servers = 4
 
pm.max_requests = 1024

;pm.status_path = /status
 
;ping.path = /ping

;ping.response = pong
 
;request_terminate_timeout = 0
 
;request_slowlog_timeout = 0
 
;slowlog = /var/log/php-fpm.log.slow
 
;rlimit_files = 1024
 
;rlimit_core = 0
 
;chroot =
 
chdir = /var/www
 
;catch_workers_output = yes
 
;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
;php_flag[display_errors] = off
;php_admin_value[error_log] = /var/log/fpm-php.www.log
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 32M

_________________
Newbie to Linode, excited to be here!


Top
   
 Post subject:
PostPosted: Sun May 06, 2012 4:56 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ok in your nginx config file where it says fcgi_pass change it to /var/run/php-fpm.sock then restart nginx.

Also you may want to drop pm.max_children = 12 in your fpm www.conf to say 6, if you have some high memory php processes it could cause problems.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sun May 06, 2012 5:23 pm 
Offline
Senior Newbie

Joined: Wed Nov 23, 2011 11:01 am
Posts: 16
ICQ: 35213257
Website: http://freshma.de/
Location: Saint Louis, MO
obs wrote:
Ok in your nginx config file where it says fcgi_pass change it to /var/run/php-fpm.sock then restart nginx.

Also you may want to drop pm.max_children = 12 in your fpm www.conf to say 6, if you have some high memory php processes it could cause problems.

IT WORKED, YOU ARE A GOD!!!

Thank you so very much I was pulling out my hair on this one. You rock!

_________________
Newbie to Linode, excited to be here!


Top
   
 Post subject:
PostPosted: Sun May 06, 2012 7:49 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Lol not quite god :P just been playing with servers for a long time. Glad it worked :)

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group