Hi everyone, I am using a plugin for my site called VBSEO They use the following code: -------------------------------------------------------- if ($request_filename ~ "\.php$" ) { rewrite ^/(.*)$ /vbseo.php break; } if (!-e $request_filename) { rewrite ^/(.*)$ /vbseo.php break; } -------------------------------------------------------- I read the article about Iby Mickie D - Nginx Mailing List - English
I just did a lsof command on a PID that was using 69% of cpu load COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME php-fpm 21135 nginx cwd DIR 8,2 4096 2 / php-fpm 21135 nginx rtd DIR 8,2 4096 2 / php-fpm 21135 nginx txt REG 8,2 4026396 4149118 /usr/sbin/php-fpm php-fpm 21135 nginx mem REG 8,2 69316 4149130by Mickie D - Php-fpm Mailing List - English
Sorry I did not get a full copy of top. Here it is and thanks very much for looking. top - 16:08:22 up 1 day, 7:23, 1 user, load average: 0.50, 0.80, 0.95 Tasks: 260 total, 3 running, 257 sleeping, 0 stopped, 0 zombie Cpu(s): 10.5%us, 0.2%sy, 0.0%ni, 89.1%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 8310416k total, 8013604k used, 296812k free, 156440k buffers Swap: 1052by Mickie D - Php-fpm Mailing List - English
Here is a top command as you cannot copy in htop mode 18708 nginx 16 0 99.0m 32m 19m S 20.6 0.4 0:06.68 php-fpm 18706 nginx 16 0 102m 31m 15m R 17.6 0.4 0:07.79 php-fpm 18772 nginx 16 0 100m 29m 15m S 17.3 0.4 0:13.00 php-fpm 18724 nginx 16 0 98.5m 31m 19m S 35.9 0.4 0:13.08 php-fpm 18718 nginx 17 0 100m 30m 16m S 35.6 0.4 0:12.84by Mickie D - Php-fpm Mailing List - English
Sorry I should of said that its just to run a VBulletin 4 site. Netstat tells me we have around 300+ connections rising to around 500 at peak times.by Mickie D - Php-fpm Mailing List - English
Hi everyone. I have dedicated server with 8 cores, 8gb ram, 4xscsi drives in raid 0 on centos 5.5. I also have a dedicated server that runs the mysql database and I pull all images from a CDN. My main machine with 8 cores was installed using the following guide that used the IUS repos, and installed via YUM http://rob.olmos.name/2010/08/centos-5-5-php-5-3-3-php-fpm-nginx-rpms/ To beby Mickie D - Php-fpm Mailing List - English
Thanks Mike you are probably right but I have high amounts of concurrent users on my site at any one time... from 500 - 800. I found fine tuning xcache, and memcache today has really helped out my server the pages are zipping open now. But I still want to offset the images and memcached to my new server... with nginx. When you are using proxy_pass do you have to use network (local) ip'sby Mickie D - Nginx Mailing List - English
Hi there I changed the way my servers act so I could reduce the load from my machines but would like some help with setting it up. It would be really nice to let all users hit my main server (PHP), and then nginx can offload the images to one server and the attachments to another ??? here is my main config: user www www; worker_processes 8; error_log /disk1/logs/nginx_main_erroby Mickie D - Nginx Mailing List - English
Thank you very much for your time MIKE ;) You are right it was not worth the hassle of doing it this way :( I have decided to use my 4 servers like this 1) Private server (not open to public) - MYSQL 2) Weserver - PHP 3) Image Server 4) attachment server. This way I can reduce load of attachments and images and leave the PHP to the 2) Webserver. Thanks Mike I still need help butby Mickie D - Nginx Mailing List - English
Yeah thanks mike that worked. The slave server is very slow :( Dunno why its going so slow but thanks for all your help Mickby Mickie D - Nginx Mailing List - English
Must they be identical on both machines ? Because I have it running, if I go to the IP address. IE http://newserverip Then I can view the forums. So should I make the home directories exactly the same on both machines ? Regards Mickby Mickie D - Nginx Mailing List - English
Sorry Mike lol Could it be that one server is running fpm and the other is cgi ? fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCby Mickie D - Nginx Mailing List - English
Hi Mike I do not have a fcgi.conf ? I have a spawn-fcgi /usr/bin/spawn-fcgi Thanks Mike Mickby Mickie D - Nginx Mailing List - English
upstream newsite { server 127.0.0.1:9000; server 15.82.114.196:9001; } server { listen 80; server_name thissite.com; index index.html index.htm index.php; root /data0/htdocs/www/forum; location ~ .*\.php?$ { include fcgi.conf; fastcgi_pass newby Mickie D - Nginx Mailing List - English
I managed to get it working KIND OFF lol. I edited the php file nano /etc/rc.d/init.d/php_cgi There you can set the IP address and the port for php and it will start with your ip and port of choice. I now have another problem :( This is my code and it is load balancing 50% to each server now :) but I get 50% of pages white with the words: no input file specified Thank youby Mickie D - Nginx Mailing List - English
Hi there I am trying to load balance my website between 2 servers. I have set them both up to mirror each other But they are a forum and using PHP ??? This is the code I have but it will only use one site. It only uses the 127.0.0.1 local address and will not contact my other PHP server ? I opened the port 9000 on both machines via iptables ??? upstream newsite { server 127by Mickie D - Nginx Mailing List - English