Hello and welcome to #root.bg!
Here you can find tutorials about linux, networks and their firewall, games and fun, as well as hobbies – rollers, drones and many more.
Here you can find tutorials about linux, networks and their firewall, games and fun, as well as hobbies – rollers, drones and many more.
Николай Николов Работа all in one seo pack, wordpress seo 0
All of my wordpress websites are powered by WordPress SEO exept my blog (strange…) A year ago I find nulled version of All In One Seo Pack Pro and use it but never remind myself that this plugins was not updated any more (may be because it’s nulled), but I understand that my version is from 2011 year. Today I decide to read about those two plugins, and understand that WordPress SEO by Yoast uses new SEO methods which are modern compared with All in one seo pack.
So .. now i disable the all in one plugin and run the new wordpress seo because of all those writings for it. So the time will show is it so good!
And one good quote for this post :
Its simple:
If you are moderate-advanced user of wordpress and want to spend extra time for seo try yoast plugin.or, for new-advanced users with auto seo without much effort try all in one seo pack.
Николай Николов Howto chevereto, clip-bucket, clipbucket, Directive Snippets, ispconfig, nginx, opencart, rewrite, seo, wordpress, yourls 0
Here are my directive snippets for nginx (nginx rewrite urls) which I use in my ISPConfig :
Yourls rewrite if you use yourls
try_files $uri $uri/ /yourls-loader.php;
Chevereto rewrite if use the best images script in the web – chevereto
location / { index index.php; client_max_body_size 30m; client_body_buffer_size 128k; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php last; } } location /admin { try_files $uri /admin/index.php?$args; }
WordPress nginx rewrite for the best blogging software – wordpress
try_files $uri/ $uri /index.php?q=$uri&$args;
For opencart , use this post
And for clip-bucket, i wrote about in my last post for clip-bucket
Николай Николов Работа, Howto clip-bucket, clipbucket, clipbucket problem, ispconfig, nginx, rewrite, upload 0
От доста време се опитвам да открия успешен вариянт да подкарам clip-bucket под nginx с работещ rewrite. Останах с лошо впечетление, след като прочетох във форума на clip-bucket че всичко според тях работело идеално за apache но не и за nginx и LiteSpeed. Е.. аз открих пък вариянт в който всичко да работи на nginx!
Ето работещите правила които трябва да се добавят в конфига на виртуалния хост:
location /videos { rewrite ^/videos/(.*)/(.*)/(.*)/(.*)/(.*) /videos.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$2; rewrite ^/videos/([0-9]+) /videos.php?page=$1; rewrite ^/videos/?$ /videos.php?$query_string; } location /video { rewrite ^/video/(.*)/(.*) /watch_video.php?v=$1&$query_string; rewrite ^/video/([0-9]+)_(.*) /watch_video.php?v=$1&$query_string; } location / { rewrite ^/(.*)_v([0-9]+) /watch_video.php?v=$2&$query_string; rewrite ^/([a-zA-Z0-9-]+)/?$ /view_channel.php?uid=$1&seo_diret=yes; } location /channels { rewrite ^/channels/(.*)/(.*)/(.*)/(.*)/(.*) /channels.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$2; rewrite ^/channels/([0-9]+) /channels.php?page=$1; rewrite ^/channels/?$ /channels.php; } location /members { rewrite ^/members/?$ /channels.php; } location /users { rewrite ^/users/?$ /channels.php; } location /user { rewrite ^/user/(.*) /view_channel.php?user=$1; } location /channel { rewrite ^/channel/(.*) /view_channel.php?user=$1; } location /my_account { rewrite ^/my_account /myaccount.php; } location /page { rewrite ^/page/([0-9]+)/(.*) /view_page.php?pid=$1; } location /search { rewrite ^/search/result/?$ /search_result.php; } location /upload { rewrite ^/upload/?$ /upload.php; } location /contact { rewrite ^/contact/?$ /contact.php; } location /categories { rewrite ^/categories/?$ /categories.php; } location /group { rewrite ^/group/([a-zA-Z0-9].+) /view_group.php?url=$1&$query_string; } location /view_topic { rewrite ^/view_topic/([a-zA-Z0-9].+)_tid_([0-9]+) /view_topic.php?tid=$2&$query_string; } location /groups { rewrite ^/groups/(.*)/(.*)/(.*)/(.*)/(.*) /groups.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$2; rewrite ^/groups/([0-9]+) /groups.php?page=$1; rewrite ^/groups/?$ /groups.php; } location /create_grou { rewrite ^/create_group /create_group.php; } location /collections { rewrite ^/collections/(.*)/(.*)/(.*)/(.*)/(.*) /collections.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$2; rewrite ^/collections/([0-9]+) /collections.php?page=$1; rewrite ^/collections/?$ /collections.php; } location /photos { rewrite ^/photos/(.*)/(.*)/(.*)/(.*)/(.*) /photos.php?cat=$1&sort=$3&time=$4&page=$5&seo_cat_name=$2; rewrite ^/photos/([0-9]+) /photos.php?page=$1; rewrite ^/photos/?$ /photos.php; } location /collection { rewrite ^/collection/(.*)/(.*)/(.*) /view_collection.php?cid=$1&type=$2&$query_string; } location /item { rewrite ^/item/(.*)/(.*)/(.*)/(.*) /view_item.php?item=$3&type=$1&collection=$2; } location /photo_upload { rewrite ^/photo_upload/(.*) /photo_upload.php?collection=$1; rewrite ^/photo_upload/?$ /photo_upload.php; } location = /sitemap.xml { rewrite ^(.*)$ /sitemap.php; } location /signup { rewrite ^/signup/?$ /signup.php; } location = /rss { rewrite ^(.*)$ /rss.php; } location /rss { rewrite ^/rss/([a-zA-Z0-9].+)$ /rss.php?mode=$1&$query_string; }
Така можем да ползваме пълноценно всичките екстри на clip-bucket!
Тъй като се натъкнах и на още един проблем , а именно качването на големи файлове в сайта , ето и решение на проблема.
Грешката която видях в лога на nginx-a е следната :
client intended to send too large body:
Тъй като ползвам ISPconfig , останових че чрез стандартните настройки на php.ini или увеличяването на ъплоад размера не се получиха нещата , открих странен трик за решаване на този проблем. Поставих client_max_body_size 900M; в nginx.conf в секция http {}
Воала.. вече мога и да ъплоадвам 🙂
Николай Николов Howto google, mysql, perftools, tuning 0
Today I find very interesting article for mysql tuning. It’s used google’s perftools (google-perftools package).
First we need to install those packages:
apt-get install google-perftools
After this we need to tell the mysql init script to use it:
nano /etc/init.d/mysql
put
export LD_PRELOAD="/usr/lib/libtcmalloc_minimal.so"
on it and save. Now restart mysql server and test!
Example test is :
SHOW ENGINE INNODB STATUS;
before and after the google-perftools installation 🙂