794 reputation
411
bio website rafiqmaniar.com
location Dublin, Ireland
age
visits member for 3 years, 8 months
seen Jun 13 at 17:52

Feb
25
comment How can I change from prefork to worker MPM on CentOS 64bit?
Restart apache. sudo service httpd restart
Dec
17
comment VMWare hypervisor with only 1 network card?
Thanks. Last time I used a VMWare product it was ESX v3 so I'm a bit behind with each of the product names.
Dec
17
comment VMWare hypervisor with only 1 network card?
@rackandboneman It's a 2U colo space with only one switch port included. There is no option to buy a 2nd port. The actual server does have two NICs.
Oct
5
comment Apache2 redirecting all HTTPS traffic to a single page
I wasn't aware of SNI, that's pretty cool. I'd be wary of using it though since the older browsers don't seem to support it (hi IE6).
Oct
5
comment Apache2 redirecting all HTTPS traffic to a single page
You can have multiple SSL certificates per IP if you use different ports per certificate. But of course then you'd have to have something in front of your webservers (loadbalancer possibly) that directed port 443 traffic to the correct server port based on domain name. You can also buy a UCC SSL certificate to have multiple domains inside a single certificate.
Jul
25
comment Is it possible to create a Virtual IP in Amazon EC2
Just to emphasise: Your servers WILL fail at some point. Design for it. With elastic load balancing, you "register" your servers with the LB (rather than configure your LB for the servers) and the load is split between them. When one server (or a whole group of servers!) goes down, they're removed from the LB pool.
Jul
5
comment Debian squeeze, mdadm. Degraded RAID5 array after each reboot
So if /dev/sde is getting removed is there maybe something wrong with that disk? What does SMART say ?
Jun
24
comment Upgrading PHP from 5.1 to 5.2 on CentOS 5.4
APC is good, personally I prefer xcache, its mostly a preference thing, they compare similarly in benchmarks but I find xcache very simple to manage. And if you ever decide to move to a higher performing webserver rather than Apache, xcache works very well with lighttpd (they're developed by the same person).
Jan
27
comment Load balancing multiple sites(virtual hosting) in same server with HAproxy
Why are you using a URL filter? The purpose of using a URL filter in HAProxy is to send different URLs to different servers, which is specifically not what you want to do. If you see my example config above, there is no URL filter present. It simply forwards any HTTP requests, regardless of URL, to the two different webservers.
Jan
14
comment Is it possible to upload only files that have been updated into a server?
+1 for using SSH and rsync. Even if you find another solution rather than rsync, you should look at moving off using FTP in general because it's an insecure protocol. Once you're using SSH/SFTP, your problem is solved by rsync too, which is an added bonus :)
Jan
11
comment Different color prompts for different machines when using terminal/ssh?
name@server is particularly unhelpful when using things like the Amazon cloud, because it changes every boot and doesn't convey the purpose of the box or an easily memorable name (user@ip-x-x-x-x). So +1 for this question :)
Jan
11
comment How can I change from prefork to worker MPM on CentOS 64bit?
Worker MPM is available in CentOS and Debian/Ubuntu without recompiling.
Jan
10
comment No outbound connections for apache2
Also the firewall isn't necessarily on your Linux server, it could be before it in the network ?
Jan
8
comment which is the best webserver for serving static content and load balancing?
HAProxy can redirect based on URL matches, so i.e. a ".php" URL could get sent to a different server than a ".gif" server. Although the general practice I use would be to have static.domain.com rather than use loadbalancer rewrites.
Jan
7
comment which is the best webserver for serving static content and load balancing?
Squid in front of backend webservers is a good suggestion but it's worth pointing out that the value of Squid here isn't in its load balancing features but in its caching reverse proxy features. In essence, the Squid box will cache the most highly requested content in memory and effectively reduces the load on the backend servers. Check out Varnish for this purpose too, it performs better than Squid in many scenarios.
Jan
7
comment Improve performance of bind9 service restart
You can specify the "-n <num cores>" option to BIND in order to manually set how many threads to use. On Ubuntu that should be in /etc/defaults/bind9 and something like: OPTIONS="-n 2"
Jan
6
comment Improve performance of bind9 service restart
Oh, also, BIND9 is multithreaded and should be running multiple threads for each core you have, but under the one process. So you'll see 1 process but it should have multiple threads.
Dec
28
comment How do I move an Amazon micro instance to a small instance?
On a general note, I spent a lot of time and money once putting into place a super scalable infrastructure in case the site I founded took off. It didn't, and there's something to be said for just getting your site out there on basic infrastructure (i.e. single server) as soon as possible. Have a plan in case it does take off though ;)
Dec
28
comment How do I move an Amazon micro instance to a small instance?
Yes, when autoscaling, you launch the same image with the same architecture and same instance type (i.e. m1.small). Think of an EBS volume as an actual individual disk attached to a server. It is unique to that instance. You can remove it and put it on another instance, but it's not shared between instances. It's only on one instance at any given time. So, you can't have your database on the autoscaling instances because new ones will have a new db. You can use Amazon RDS or make a seperate 'DB Server' instance. Important thing to remember - data from one instance is NOT shared with another.
Dec
15
comment Can't find the 2nd CPU
Run 'dmesg' to see whats detected on bootup.