Warning: Missing required field "entry-title" | Missing required field "updated". | Missing required hCard "author".

Warning: Missing required field "entry-title".
Warning: Missing required field "updated".
Warning: Missing required hCard "author".


Are you facing these errors while checking your rich snippets microformat?

Just add these following codes to your respective file
For entry title:

<h1 class="entry-title">
In your Title code, add this piece of class

For Updated:

<h2 class="updated">January 24, 2011</h2>

 Before your date, add this class

And last for Hcard "author"

Author:<p class="author vcard"><span class="fn">Niraj M Chauhan</span></p>

For author add this code,
Done, now you will see no warnings in testing your webpage on rich snippets testing tool

:)

Wodpress plugins not updating | Plugins Incompatible Archive Plugin upgrade failed | wp themes not updating

As the title describes the post, If you face any of these problems, where if you try to update your wordpress plugin or wordpress themes and you get the following error
Unpacking the update…
Installing the latest version…
Incompatible Archive.
Plugin upgrade failed

 Then first thing you should do is, check whether your wordpres is updated, if not then manually update it, this is very easy to do, you get the exact way to update wordpress manually here

After this also, if updating of plugins doesn't works then just replace class-ftp-sockets.php file with any of these files

 http://rdsdesign.in/class-ftp-sockets-.txt
or

http://darkman.it/x/class-ftp-sockets.php.txt


This will work for sure,
Happy coding :)

How to delete a file or folder via SSH | Delete command in SSH

Log into SSH and then just type the following command to delete the folder or file

rm -r -f /directory or filename

rm= remove or delete
-r = recursively delete the folder including sub folders in it,
-f = will not ask for confirmation for deleting the file or directory

Centos Virtual hosting | Centos enabling multi apache hosting through 1 IP

OK, so now you decided to have one VPS, one IP, and many sites?
Cool, its very easy
First in the root folder, create your website folders, like you have 2 websites, so name them as site1.com and site2.com
So now you'll be having two website folders site1.com and site2.com in your root directory.

Now navigate to /etc/httpd/conf/ and start editing httpd.conf file,
At the end of the page, you will find a line, just like below
#NameVirtualHost *:80
Just uncomment that by removing # from it, So that it becomes like the below one:-

NameVirtualHost *:80

Then below their will be more lines which will be commented so uncomment them also, and make them look something like this


<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/html/site1.com
    ServerName site1.com
    ErrorLog logs/site1-error_log
    CustomLog logs/site1-access_log common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot /var/www/html/site2.com
    ServerName site2.com
    ErrorLog logs/site2-error_log
    CustomLog logs/site2-access_log common
</VirtualHost>

Thats it, after this just restart your apacheby the following command

service httpd restart

Done,
You have successfully enabled multi-site or virtual hosting on apache Centos.

How to enable mod_rewrite in centos via SSH


This is a very simple question, but for beginners it is little bit difficult,
Now assuming that everything is installed, open the httpd conf file and start editing it,

You can find this file in
/etc/httpd/conf/httpd.conf

or directly edit it
vi /etc/httpd/conf/httpd.conf

 in this file search for Directory "/var/www/html" this can be on line 290-320
You will find a line of code, just like below
AllowOveride None

Just change it to
AllowOverideAll

Save it, and exit, mod_rewrite is enabled on your server
:)

Blog Archive

About Me

My Photo
NiRaJ (asp or php)!!!!!!
I am basically a software engineer and Website designer & developer (final year student)
View my complete profile

Woooo

WooThemes - Made by Designers