HAProxy vs. Nginx

I was looking at using HAProxy and Nginx for load balancing, and I had some questions: Should I use JUST HAProxy over Nginx for the proxy server? Is there any reason to have HAProxy and Nginx installed on the same proxy server? Thanks

Apache is downloading php files instead of displaying them

The correct AddType for php is application/x-httpd-php Also make sure your php module is loaded When you’re configuring apache then try to view the page from another browser – I’ve had days when chrome stubbornly caches the result and it keeps downloading the source code while in another browser it’s just fine.

phpinfo() is not working on my CentOS server

I have PHP installed on my CentOS server. However, when running a phpinfo() inside my script to test it, I receive the HTML, not the interpreted information. I can see the folders for PHP. I can even see the php.ini in the etc folder. But PHP itself does not seem to be working. I mean … Read more

bash: mkvirtualenv: command not found

Solution 1: For some reason, virtualenvwrapper.sh installed in /usr/bin/virtualenvwrapper.sh, instead of under /usr/local/bin. The following in my .bash_profile works… My install seems to work fine without sourcing virtualenvwrapper_bashrc Solution 2: Alternatively as mentioned below, you could leverage the chance that virtualenvwrapper.sh is already in your shell’s PATH and just issue a source `which virtualenvwrapper.sh`

Server can’t find NXDOMAIN

I resolved the problem. I just forgot to change the group of direct. zone and inverse.zone from the root to named, command is : and I force resolve to not changing by the DHCP :

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)