Results 51 to 75 of 603
-
09-19-2010, 03:54 PM #51[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
I'll be taking either Monday or Tuesday off this coming week (as I have various other business related things that need taking care of then anyway) so should have a chance to look into getting CSF integrated on whichever day I have off.
Thinking along the lines of a "hook" script - possibly I could provide some "addon" scripts for things that not everyone may want (e.g. phpMyAdmin, CSF, etc.) and provide them as separate scripts that would get executed by the main script if specified?
Either that or perhaps get it to execute any scripts put in an addons folder? (though I am not sure how feasible that one would be - would need to look into it).█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-19-2010, 03:59 PM #52Web Hosting Master
- Join Date
- Oct 2003
- Location
- The Netherlands
- Posts
- 1,270
Something like that.
You could even create a folder with "extra's" which are short scripts that install things like CSF, but only if they are moved into the "install-extra" folder.
Or you could just include them interactively since your script is interactive
-
09-19-2010, 04:55 PM #53Temporarily Suspended
- Join Date
- Sep 2010
- Location
- United States
- Posts
- 11
Hello,
Quite nice Script....
Few Question's.
Anyway to load mod_secruity?
And how to add addon/domain's?
-
09-19-2010, 05:28 PM #54WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
mod_security is only for Apache/cPanel as far as I know.
However here are some tips on securing Nginx and servers:
https://calomel.org/nginx.html
http://www.cyberciti.biz/tips/linux-security.html
-
09-21-2010, 04:04 AM #55WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
Just an update, APC doesn't seem to want to install using
PHP Code:yum install apc
-
09-21-2010, 06:14 AM #56[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
Last edited by BTCentral - Ben; 09-21-2010 at 06:28 AM.
█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-21-2010, 06:40 AM #57[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-21-2010, 06:47 AM #58WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
-
09-21-2010, 06:59 AM #59[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
I just found out you can change the amount of memory APC uses by editing "apc.shm_size" in /etc/php.d/apc.ini
Size is in MB, so change apc.shm_size=32 to whatever you want.
I have never actually used a PHP accelerator of any kind (hence not knowing this before hand) - I wonder if it would actually make all that much difference or not on a low end box?
xCache (if you want to try it) you would need to install manually.█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-21-2010, 08:06 AM #60WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
I think it would, depending on what is being run, sites running Joomla and WordPress usually work well with Nginx and APC/xCache handling more requests and lowering memory usage per request. I know for sure that APC and xCache properly configured can improve page load times too, that's why with PHP6 they wanted to have APC integrated by default.
There are 100's of benchmarks proving it, but I don't think there has been any recent benchmarks with Nginx + PHP-FPM + xCache/APC on any low end system. I would do it myself if i knew how. haha T.T
Also speaking of WordPress, it seems it won't update, or get plugins unless it has FTP access, so currently trying to configure vsftpd which seems to love to eat memory.
-
09-21-2010, 08:36 AM #61WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
Also, just found that my.conf is world writable by default, i'm pretty sure that can't be right, maybe change its permissions after MySQL is setup ?
-
09-21-2010, 09:28 AM #62[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
It should not be, just checked on a server that we used the script on:
PHP Code:[root@montreal ~]# ls -la /etc/ | grep my.cnf
-rw-r--r-- 1 root root 454 Sep 16 11:13 my.cnf
Last edited by BTCentral - Ben; 09-21-2010 at 09:32 AM.
█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-22-2010, 03:27 AM #63WHT Addict
- Join Date
- Apr 2010
- Posts
- 162
Thanks for sharing this script Ill try it out later on my test server
-
09-22-2010, 03:32 AM #64WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
-
09-24-2010, 05:49 AM #65Web Hosting Master
- Join Date
- Oct 2003
- Location
- The Netherlands
- Posts
- 1,270
That's generally because the webserver can't write to wordpress_install/wp-content/
Each php-fpm configuration needs to run as the user that owns the wordpress install.
edit: or you could of course give more privileges like 777, but I really recommend you run this as the proper user because it's way more secure in a multiuser setup.
-
09-24-2010, 06:27 AM #66[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
Both PHP-FPM and Nginx run under a user/group created by the script - funnily enough, called nginx.
If the webserver can not write to the directory (as barry suggested - and it sounds like that to me too from what you described) then simply do a:
PHP Code:chown -R nginx:nginx /home/nginx
More updates coming soon, I worked on it a bit a few days back - but have not had the chance to test the changes. Will definitely spend some time on it over the weekend.█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-24-2010, 06:34 AM #67WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
It still refuses, its something to do with WP3.0 and being more safer by allowing updates to happen by FTP/SFTP/FTPS i decided ill go with SFTP much easier.
I also did a benchmark of the Nginx setup using
PHP Code:ab -kc 1000 -n 10000 http://www.domain.info/test.php
http://pastebin.com/0kqQq8jd
I tried static images too 'nginx-logo.png' and it had high failed requests too. I looked into the logs and found this error:
PHP Code:2010/09/24 10:36:33 [crit] 28301#0: *3180 open() "/home/nginx/domains/domain.info/public/nginx-logo.png" failed (24: Too many open files), client: 199.19.224.168, server: www.domain.info, request: "GET /nginx-logo.png HTTP/1.0", host: "www.domain.info"
-
09-24-2010, 06:37 AM #68[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
What version of Nginx are you using? Stable or Devel? Might be a bug (with Nginx).
█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-24-2010, 06:38 AM #69WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
-
09-24-2010, 06:41 AM #70[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
And are you testing it locally (as in running ab via SSH on your VPS), or on another machine? If the latter it may be connectivity issues between the two.
Just updated the kernel on my test VPS and am waiting for it to reboot, I'll try to do the same and see if I have any failures.█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-24-2010, 06:42 AM #71WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
-
09-24-2010, 07:17 AM #72[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
Just tried it myself.
PHP Code:Failed requests: 962
(Connect: 0, Length: 962, Exceptions: 0)
PHP Code:2010/09/24 12:13:59 [alert] 1539#0: *20413 socket() failed (24: Too many open files) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /test.php HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "127.0.0.1"
No failures for nginx-logo.png however, perhaps that was a memory constraint?
Edit: Ahha, the magic of Google provided a potential solution .Last edited by BTCentral - Ben; 09-24-2010 at 07:21 AM.
█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
-
09-24-2010, 07:54 AM #73WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
-
09-24-2010, 08:51 AM #74WHT Addict
- Join Date
- Jun 2010
- Posts
- 143
Well so far:
PHP Code:[root@kuro ~]# su - nginx
This account is currently not available.
PHP Code:nginx soft nofile 10000
nginx hard nofile 30000
-
09-24-2010, 09:11 AM #75[ VPS Enthusiast ]
- Join Date
- Nov 2009
- Location
- Cheltenham, UK
- Posts
- 1,416
█ Ben Thomas, Director - BTCentral Web Development Services
█ http://www.btcentral.org.uk - Need a custom Web App? Visit us online.
Similar Threads
-
Perfect CentOs Server Setup (Low Memory)
By skoobi2 in forum VPS HostingReplies: 9Last Post: 07-20-2010, 10:16 AM -
Looking for a sysadmin - install debian/centos + dtc-xen + dtc/images (centos etc)
By Ron D in forum Employment / Job OffersReplies: 2Last Post: 06-12-2009, 11:31 PM -
Script Install service, very low rates!
By Justin in forum Employment / Job OffersReplies: 0Last Post: 12-17-2006, 07:10 PM -
centos:apache,php, yum install or source install?
By cchere in forum Hosting Security and TechnologyReplies: 2Last Post: 08-29-2006, 05:14 PM -
How do I install GD on a default CentOS 4.x install?
By Fabalo.com in forum Hosting Security and TechnologyReplies: 3Last Post: 02-12-2006, 11:43 AM