nginx wordpress configuration

0
Comments

Simple but working nginx configuration for wordpress based web site... server { server_name site.com; root /var/site.com/www; index index.php; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location ~ /\. { deny all; } location ~* /(?:uploads|files)/.*\.php$ { deny all; } location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/ph...

Read further...

Migrate from Apache to nginx + php-fpm and speed up your site twice

0
Comments
Migrate from Apache to nginx + php-fpm and speed up your site twice

This blog is hosted (together with mintchocolate.org) on a small VPS (1x2.8 Ghz, 256 Мб RAM, 10 Gb SSD). This VPS is shipped with apache2, php and mysql. As you can see I am using wordpress for this blog, also I have approximately 1000 unique visitors per day (half of them visit this and this articles). So it is good to have small response time. Apache First I need to measure how slow my blog is. I have used loadimpact.com to do that. This is result for apache2: [caption id="" align="aligncenter...

Read further...

[How-to] Downgrade Nexus from 5.0 to 4.4

4
Comments

I have installed Android 5.0 on my Nexus 7 (2012, wi-fi) and that was the biggest mistake I have ever done with my tablet pc. I don't know, maybe the problem is not in Android Lollipop, but in my concrete device, but after installing 5.0 it becomes incredibly slow! First 5 minutes after restart it works fine, but then everything become soooo sloooow.... Here are some steps that can help you with downgrading your Nexus device (5 or 7) from  5.0 to 4.4 (or whatever you want). Download factory imag...

Read further...

[How-to] BlueStacks: Change Android device id

2
Comments

Sometimes you need to change android device id in your Android emulator. If you are using rooted BlueStacks image - you can use Android ID Changer. This tool works only on rooted devices! Download Android ID Changer

Read further...

[Fixed] Apache mod_status: /server-status forbidden from 127.0.0.1

1
Comments

If you have mod_status enabled but still got this error (403) when trying to connect from localhost (127.0.0.1) you can should do following: First, go to /etc/apache2/mods-enabled/status.conf and check that you have all hosts that you want to connect from is added to Allow from, something like this:   <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 </Location> Second, create VirtualHost configuration for 127.0.0.1 with f...

Read further...

[Solution] Cacti + RRDTool. Graph not working problem fixed

3
Comments

If you have problems with graph in your Cacti first what you should do is enable debug mode in Cacti. To enable debug mode: Go to "Graph Management" Open any graph (Localhost - Load Average) Press "Turn On Graph Debug Mode." Now you should see something like this: RRDTool Command: /usr/bin/rrdtool graph - \ --imgformat=PNG \ --start=-86400 \ --end=-300 \ --title='Localhost - Load Average' \ --rigid \ --base=1000 \ --height=120 \ --width=500 \ --alt-autoscale-max \ --lower-limit=0 \ --u...

Read further...

[How-To] Horizontal Field Of View for Unity3d camera

0
Comments

In Unity3d you can change only vertical field of view for a camera by default. This means whenever you change height unity will automatically scale environment. But if you change width unity will just add some space (or decrease) to left and right side of the screen (no content resizing). If you want to have opposite behavior, so when you increase width all content will  be scaled and if you increase height only space added to the view, you need to modify camera fieldOfView field. Here is a simp...

Read further...

[How-To] Get free developer account in the Windows Store

5
Comments

Edit: This information is outdated! Recently, Microsoft have introduced new "Dev Center Benefits" program. If you're a serious app development expert, as past of this program you can create developer account in the Windows Store or the Windows Phone Store for free. But then you need to publish application in one of those stores. To get free account you need: Go to Dev Center Benefits Press "join" Sign in with your microsoft account (or create new one) Fill all necessary information. Create  Wind...

Read further...

[Review] New features of Windows 10 Technical Preview

0
Comments
[Review] New features of Windows 10 Technical Preview

As you can see in my previous post  I have successfully installed Windows 10 Technical Preview on Virtual Box. Now I want to show you new features which were added in Windows 10 Technical Preview. No window borders: Now: Before: New show\hide windows animations Now windows slide from top with fade in effect. New Start menu Taskbar in bottom position: Left: Top: Right: Virtual Desktops You can easily "jump" between virtual desktops by pressing Ctrl + Win + Left\Right arrows You can also run each...

Read further...

[How-To] Install Windows 10 Technical Preview

0
Comments
[How-To] Install Windows 10 Technical Preview

Hi everybody! Finally! Next version of windows is available for download. This is just Technical Preview, but it already contains a lot of cool features. First of all: Download Windows 10 Technical Preview Because this is technical preview it is not recommended to install this system to your main computer, so for this tutorial we will install windows 10 on virtual box. Install VirtualBox Create new "Windows 8.1 64-bit" VM Mount downloaded ISO as CD drive Start VM We will see almost the same inst...

Read further...