jusupov.com

Computer Technology Blog

Archive for January, 2008

How to install libssh2 with PHP on CentOS 5 x86_64

with 3 comments

This post is just for archiving it, if you find it useful I’m glad!

If you are dealing with CentOS 5 x86_64 (Free version of RHEL5), try to install libssh2 for your PHP development you might fail in doing so.

So here’s a quick tip how to install libssh2 on X86_64 systems(I think i386 works just fine)

Edit: /usr/share/pear/pearcmd.php

Set: @ini_set(’memory_limit’, ‘16M’);

And try again!

Written by Arstan

January 19th, 2008 at 9:25 am

Posted in Linux, Open Source

How to reset MySQL root password in Ubuntu Linux

with 2 comments

In case you have forgotten your root password on your Ubuntu Linux, here’s a small tip on how to reset it.

$ sudo mysqld –skip-grant-tables &

$ mysql -u root mysql

$ mysql> UPDATE user SET Password=PASSWORD(’MyNewPasswordHere’) WHERE User=’root’;

$ mysql> FLUSH PRIVILEGES;

$ mysql> \q

$ sudo /etc/init.d/mysql restart

Now you can login using your new root password.

Written by Arstan

January 18th, 2008 at 9:58 am

Posted in Linux, Open Source

Sun to acquire MySQL

without comments

Jonathan Schwartz reports they are to acquire MySQL.

I am excited to see yet another good deal on Open Source projects, the fact that free software can do a good business.

Hopefully, they, Sun, will remain true to the Open Source spirit.

Written by Arstan

January 17th, 2008 at 10:21 am

Posted in Open Source

WordPress theme layout structures

with one comment

In our first part on how to create WordPress(WP) theme we’ve covered basic installation of WP and also got to know where are the theme files located.

Before we proceed any further let’s take a look into different WP layouts.

This one will be most common layout used among bloggers. It’s very basic layout, designing and customizing this kind of theme is much easier than the most.

This is what we call two column WP layout. Because you have two columns – Main and Sidebar.WordPress two column layout
It has a header, where we usually put our logo, blog name and tag lines. Also it’s a common practice to put navigation bar there as well.

Then a sidebar, its where we have blog categories, blogroll, may be some ads and things like that.

The main part is where we have our blog posts shown, it will contain posts with details like date published, author and if there are comments to the posts.

Lastly we have footer, usually people want to put some Copyright/Copyleft, site credits.

WordPress three column layoutWordPress three column layoutAlso we have another popular layout with three columns. This one can be in two variations, it differs from each other on the sidebars positions.

In the first layout, we can see that sidebars are kept at both sides, so that the main part(the part where you have your blog posts) is kept in the center.

And the second layout is where we like to have our sidebars on the right or the left side of the blog.

So these are more or less standard WP theme layouts you will see in the blogosphere. These types of layouts are common ones but of course there are other types.

So, I have covered basic WP layout types. My next blog post will be about WP theme files and their functions.

Please make sure you have the following:

  1. Working WordPress blog installed. It can be on your workstation(local webserver) or hosted in the internet.
  2. Basic HTML and CSS knowledge.
  3. Your favorite text editor. You can use Macromedia Dreamweaver or any kind of IDE tool at that point. As long as you are comfortable and can manipulate text.
  4. Graphical FTP client or knowledge of command line FTP.
  5. Covered my previous posts :)

If you have any other tips or suggestions please drop your comments, I really appreciate your feedback!

Reminder: This post is a 2nd post in a How to create WordPress Theme series. If you want to get updated make sure you subscribe to my RSS feed at http://www.jusupov.com/feed/

Written by Arstan

January 10th, 2008 at 10:06 pm

Posted in internet

How to create WordPress theme – Part 1

with 4 comments

I’ve decided to create and publish my own custom WordPress theme. I haven’t come up with the name or anything but all I can say is that it’s going to be free.

At the same time I will be taking notes, step by step and publish a series of posts on designing your own custom WordPress(WP) theme.

Enough said, let’s get right to it.

Folks at WP did a fairly awesome job at simplifying installation process. However, let’s take a brief look into installing WP.

  1. First you need to download the latest version of WP, another good point from developers that they always keep the latest version available to download at http://www.wordpress.org/latest.zipUnlike many other open source softwares/scripts where you need to go through versions pick mirrors etc, WP is made simple to download.
  2. Unzipping latest.zip(it can also get wordpress-version-number.zip name), you find folder wordpress created. Inside this folder you will find wp-config-sample.php, rename this to wp-config.php file name.
  3. Edit this wp-config.php file. Enter your MySQL details here.
  4. Now upload everything that is under wordpress directory to your web server. Make sure you upload into a directory that is accessible from outside, it is something like htdocs, public_html or www directories.
  5. Fire up your favorite browser and point it to your domain where you uploaded the files.
  6. Once you will see WP setup screen, it will ask you to enter the blog title and admin E-Mail address. Once you have done so, it will generate you random admin password. In case you forget to change the random password, WP will email password details to the E-Mail address you provided during the installation.

2008-01-09_002746.pngNow that we know how to setup WP , let’s take a look into WP themes locations. Themes are located in wp-content/themes directory and they are under named folders. To edit or modify WP themes, you look into those folders.

You can see from the left image the basic WP theme structure.

So, in this post we learned how to install WP, and we know where to look and what too look for in WP themes.

This is the first part in a WordPress theme series. Please subscribe to my RSS feed to get updated.

Written by Arstan

January 9th, 2008 at 12:34 am

Posted in internet