WordPress 3.0, Beta 1 is Released

This is really great news of yesterday. WordPress 3.0 beta is out for testing.

They merged the wordpress and wordpressMU in this version. There are so many major changes in UI and interfaces has been done.

WordPress 3.0, Beta 1 is Released
WordPress 3.0, Beta 1 is Released

You must know about this release

  • The custom menus system (Appearance > Menus) is not quite finished. In Beta 2, the layout will be different and a bunch of the functionality will be improved, but we didn’t want to hold things up for this one screen. You can play with making custom menus, and report bugs if you find them, but this is not how the final screen will look/work, so don’t get attached to it.
  • The merge! Yes, WordPress and WordPress MU have merged. This does not mean that you can suddenly start adding a bunch of new blogs from within your regular WordPress Dashboard. If you’re interested in testing the Super Admin stuff associated with multiple sites, you’ll need some simple directions to get started.
  • We’re still fiddling with a few small things in the UI, as we were focused on getting the more function-oriented code finished first. For example, we’re getting a new icon for the Super Admin section.

Best new thing in wordpress 3.0 beta

  • Play with the new default theme, Twenty Ten, including the custom background and header options.
  • Custom Post Type functionality has been beefed up. It’s really easy to add new types, so do that and see how it looks!
  • WordPress MU users should test the multiple sites functionality to make sure nothing broke during the merge.

You can download the wordpress 3.0 beta from here

Download wordpress 3.0 beta

  • Play with the new default theme, Twenty Ten, including the custom background and header options.
  • Custom Post Type functionality has been beefed up. It’s really easy to add new types, so do that and see how it looks!
  • WordPress MU users should test the multiple sites functionality to make sure nothing broke during the merge.

Solved: issue with wordpressMU image or media uploading

Many people is having issues with image uploading with WordPressMU. In this article I will tell you the solution. Solved: issue with wordpressMU image or media uploading.

Solved: issue with wordpressMU image or media uploading
Solved: issue with wordpressMU image or media uploading

Solved: issue with wordpressMU image or media uploading

Single wordpress and wordpressMu has different behaviour.. If you are using apache webserver then there is no issue but if you are using than there is issue with image mapping. specially with nginx web server.
You need to write the rewrite rule for image. Also you need to check about folder permission in your “blogs.dir” directory. change folder permission to 777.
For single wordpress there is uploads folder is present but for wordpressMu there is no uploads folder present in directory. You should look for blogs.dir folder which is present in wordpressMu/wp-content folder.

For solve the issue add the following lines in your apache configuration(httpd.conf) file. If this file is not present then add following lines in your .htaccess file.

RewriteEngine On
RewriteBase /

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

One another issue.
You should check the “Upload File Types” settings going here.
http://yoursite/wp-admin/wpmu-options.php

Check the “Max upload file size” and also check the “Blog upload space”

For Nginx you will find the configuration code from https://purabtech.in/image-upload-issue-in-wordpressmu-with-nginx/

If you have still facing issue with image uploading in wordpressMU. Feel free to write to me or write a comment.

wordpress vs wordpressmu

As we know the wordpress is best featured CMS and growing very fast. Thousands sites are building wordpress daily. When it comes to which wordpress CMS we need to use then You should think about following points. Points about wordpress vs wordpressmu

wordpress vs wordpressmu

I am WordPressMU fan frankly speaking but that comes after words. When you are choosing wordpress client in senorio you should better understand the requirement and future plans of client.

In this article I am going to talk about some good features of both (wordpress and wordpressMU). We should also discuss about when to choose wordpress and when to choose wordpressmu.

——————————x———————x———————————–x—————

  • Use WordPress When following criteria is fitting with your client.
wordpress vs wordpressmu
wordpress vs wordpressmu

1. When client want create website in very less time

2. There are only few admin are going to handle the site

3. There is not so much huge amount of data to listed on website

4. Client is no huge future plans about website

5. If client want so much free plugins or many features.

6. Client has less knowledge about handling CMS

7. For single small firms  and business like (lawyer, Doctor, real estate agents, builders, witter,  advertiser,   engineers, professionals). In this situation wordpress is best suitable.

8. For small sites and wordpress will give the best performance.

9. SEO purpose wordpress is the best tool.

10. You will get so many free plugins and tools for wordpress

11. You will easily get the so much help and documentation

12. wordpress will always get first update from wordpress compnay

13. Performance – WordPress gives the is best in performance. But you should think about data size.

————————x———————————x—————————x——————————–

  • Use WordPressMU When following criteria is fitting with your client.
wordpress vs wordpressmu
wordpress vs wordpressmu

1. When Client has big future plans with the website

2. There is enough time develop the site

3. If client is agree to develop custom solutions

4. If client is taking interest and he is having some knowledge about CMS

5. They are so many authors going to write and mange the website

6. There is very huge data need to be insert in website

7. For Big firms and business like (Magazine, Publication house, book writters, groups, social community, Big manufactures, big offices…etc). In this situation wordpressmu is the best solution.

8. For bigger sites I would recommend use wordpressMU

9. SEO purpose wordpressmu is also good but you need to do some customization in code.

10. For wordpressmu there are always few plugins and tool. (No plugins like wordpress)

11. You will get documentation and help but limited becasue not so many developers working on WordPressMU

12. WordPressMU always wait for update from wordpress company

13. Performance – WordPressMU gives best in performance in any condition.

But still I say I love WordPressMU and I think in future automatic will merge wordpress with wordpressMU.

So have fun and develop sites in wordpress.

Image upload issue in wordpress with nginx

Nginx server is used by wordpress itself. We solved Image upload issue in wordpress with nginx. you can use following code.

Image upload issue in wordpress with nginx

Please Use the following code:


location ~ ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
root /usr/share/nginx/html/wordpressmu;
rewrite ^/.*(/wp-admin/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^/.*(/wp-includes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^/.*(/wp-content/themes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^/.*(/wp-content/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ /wordpress/wp-content/blogs.php?file=$1 last;

expires 10d;
break;
}

NginX Rule for WordPress Mu with Pretty Url

I am using wordpressmu 2.6.5, quite old version. Three month back i moved our site Apache to Nginx. Now these day nobody use wordpress mu. Still article can be used for wordpress multisite.

NginX Rule for WordPress Mu with Pretty Url

Nginx i am using for Rails and WordPressmu application.

I am able to run wordpressmu and Clean Urls(Pretty Url) successfully. I am using Fedora 9 as OS.
“/usr/share/nginx/html/wordpress” – This is my path where i installed WordPressmu

Here is my Nginx code:


server {
listen 80;
server_name localhost.localdomain;
# access_log logs/site.access.log;

location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root /usr/share/nginx/html/wordpress;
rewrite ^/.*(/wp-admin/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^/.*(/wp-includes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^/.*(/wp-content/themes/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^/.*(/wp-content/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ /wp-content/blogs.php?file=$1 last;
expires 10d;
break;
}

location / {
root /usr/share/nginx/html;
index index.php;

rewrite ^.*/.*/files/(.*) /wordpress/wp-content/blogs.php?file=$1;
if (!-e $request_filename) {
rewrite ^.+?(/wp-.*) /wordpress$1 last;
rewrite ^.+?(/.*\.php)$ /wordpress$1 last;
rewrite ^(.+)$ /wordpress/index.php?q=$1 last;
break;
}

fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;

fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param REDIRECT_STATUS 200;
include fastcgi_params;

}

location = /50x.html {
root /var/www/nginx-default;
}

}

This code is working fine for me.

find replace content in post wordpress

Some times we need to change specific text in wordpress. Using mysql database query or PHPmyadmin interface, you can find replace content in post wordpress. We have given mysql query for replacing the content using database.

find replace content in post wordpress

Use this query for wordpress users


UPDATE wp_1_posts SET post_content = REPLACE(post_content, 'www.test.com', 'www.secondtest.com');

Use this query for wordpress

UPDATE wp_posts SET post_content = REPLACE(post_content, 'www.test.com', 'www.secondtest.com');