I suggest *EVERYONE* in server_name to have www.domain.com and domain.com… will look something like this
server_name www.domain.com domain.com;
This solved my problems of typing www.domain2.com and see domain.com etc etc…!
I suggest *EVERYONE* in server_name to have www.domain.com and domain.com… will look something like this
server_name www.domain.com domain.com;
This solved my problems of typing www.domain2.com and see domain.com etc etc…!
Inside server { of your domain nginx configuration file
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
As seen on http://stackoverflow.com/questions/15805090/nginx-wordpress-pretty-permalinks
I was trying to start fresh installation of nginx, but nginx wasn’t staring….
We must always read the logs!
root@pornrack:/etc/nginx/sites-enabled# tail -f /var/log/nginx/error.log
This was I was getting on it…
2013/11/17 10:56:34 [emerg] 12362#0: could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32
Easy! I searched for server_names_hash_bucket_size on /etc/nginx/nginx.conf and uncommented that line…
While I was trying to start nginx after some reconfigurations… i was getting
* Starting nginx nginx
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
Don’t know HOW/WHY I had apache running on 80…
I had to stop it and later uninstall it…
sudo apachectl stop
I had some problems with nginx, ajenti and ajenti-v…
I’v removed nginx the easy way, with apt-get autoremove nginx etc, but when I tried to start the service after install it I was getting awk: cannot open /etc/nginx/nginx.conf and nginx didn’t started etc….
This is how I removed it!
sudo apt-get autoremove nginx
sudo apt-get --purge remove nginx
sudo apt-get autoremove -f && sudo apt-get autoclean -f
sudo find / | grep nginx | sudo xargs rm -rf
Trying to run ‘at’ with www-data user.
$ at You do not have permission to use at.
Removed it and voilá!
root@digitalwhores:/home/webroot/domain.com# su www-data $ at Garbled time
HHVM is a new open-source virtual machine designed for executing programs written in PHP. HHVM uses a just-in-time compilation approach to achieve superior performance while maintaining the flexibility and ease of use that PHP developers are accustomed to (dynamic features like eval(), rapid run-edit-debug cycle, etc).
HHVM is used by Facebook to serve billions of web requests per day. To date, HHVM has realized over a 9x increase in web request throughput and over a 5x reduction in memory consumption for Facebook compared with the Zend PHP 5.2 engine + APC.
Geeks always want to see log files!
On live view on a big screen – better -.
tail -f /path/thefile.log
This is how I do it!
ls -l -R /path/ | wc -l