Posting in WordPress through Post — > Edit submenu

As I logged in to my admin panel, I could immediately post something or edit the default post which was made by the system as an example.

I clicked on the arrow next to the first option – “posts”, and then on the option “edit” in the submenu. I clicked “edit” under the name of the default post “Hello, world!”.

Editing post was easy as if I was working with the Word. I typed in new text of the post. I did everything in the “Visual” layout, and it was translated into HTML automatically. There is a “publish” section and the “post tags” area on the right side of my admin panel.

I can save my posts as a draft without publishing them immediately or make the post visible to me only, in the publishing option.

I can change the date when to publish my post.

Post tag function lets me add one or more tags to my post or to search among the existing tags.

Click on the x next to the tag to exclude that tag and leave the boxes next to the category unchecked to exclude the category.

I saved changes in my post by clicking “Update post” in the publish section.

The “view post” link appeared above the heading of the post.

I viewed my post to make sure everything was ok.

How to install a WordPress theme through the FTP connection?

Some older versions of WordPress do not support “one-click” installation from the admin panel of your site. Plus we don’t recommend one-click installations because they do not always work well. You can upload themes for WordPress through the FTP. You need to have an FTP client for this. FTP client is a program which you can easily download from the Internet.

  1. 1. I opened an FTP client (FileZilla) and enabled the FTP connection to my hosting account by typing in the name of my host (testing.2by2host.com), my username and my password.
  2. 2. I downloaded to my hard disk the zip archive with the WordPress theme. I unzipped it.
  3. 3. In FileZilla I navigated to the theme folder. In the right side of the FTP client I went to the directory where my WP files were located. I found the wp-content — > themes folder.
  4. 4. I dragged and dropped the theme folder into the wp-content — > themes folder.
  5. 5. I returned to my WP site, the admin area, and found the recently installed theme. I activated it.

Read more — >

I connected to the FTP using my hostname, username and password. This information was given to me by my hosting provider.

To the right I saw the folders of my hosting account. I navigated to the “public html” — > “myblog” folder. This was where all the files of my Word Press blog were stored. If you have installed your blog in the root directory you have to look for them in the “public_html” folder. I found “wp-contents” — > “themes” folder. In the left column I saw the content of my hard drive. I found there the uploaded and unzipped theme folder and dragged and dropped it to the right column.

That’s it! Done!

I entered the admin panel of my site which was located at the address www.testing.2by2host.com/myblog/wp-admin and found the “Manage themes” option (Appearance — > themes). I had new theme among the available ones, and had to click “Activate” to make it current. At the very top of my admin panel I clicked “Visit site” link to see how my blog had changed.

How to install WordPress theme via admin panel of the blog?

So, I managed to install a Word Press blog at last but, having entered the site, I was disappointed. My site looked so plain and ordinary!

    I wanted it to look special. I pondered on how I could change at least the colors. However, I found that there are lots of free templates for WordPress at http://wordpress.org/extend/themes and even more you can buy or download free from the web. WordPress templates are called themes.

  1. 1. I entered my WordPress site, the wp-admin directory.
  2. 2. I navigated to the “Appearance”– > “Add new theme” section.
  3. 3. I selected the theme and clicked “Install” under the screenshot of the chosen theme.
  4. 4. I typed in the data necessary to connect to the FTP (hostname, username, password for FTP connection)
  5. 5. I navigated to “Appearance”– > “Themes” and returned to the “Manage themes” section. There I activated the installed theme.

To see explanation with screenshots, read — >

I located to the admin panel (wp-admin directory) of my blog. This can be achieved by typing in the browser address line www.mydomain.com/wp-admin/ .

I entered the appearance — > themes folder and I found myself in the “Manage themes” section. There I could see the themes which were available, but they also looked boring.

I saw the “Add new themes” option and clicked on it. I was taken to a theme search where I could filter themes according to color, width and some other parameters.

I looked through the featured, newest and recently uploaded themes. The function “Upload” let me upload and install my own theme from a local directory of my computer. Finally I decided to choose a theme according to color. I found the one I liked most, clicked on “Preview”, then on the “Install” button under the screenshot of the selected theme.

I was taken to the dialogue where I should input the data of my FTP connection. The FTP hostname, username and password were given to me by my hosting provider.

The mistake in the address caused me a problem. I had to correct it and the installation began.

It took several seconds to install the theme, and then the confirmation dialogue appeared.

By clicking “Activate” I made the newly installed theme the current one and was taken to the “Manage Themes” dialogue.

At the very top of my admin panel I found the link “Visit site”. See how my blog changed! I was very satisfied with the results.

How to forward to multiple addresses in cPanel

How to forward to multiple addresses in cPanel

It would be convenient not only to collect mail from several email boxes into one, but also to send from one address to many others. Is it possible by the means of cPanel? Yes, it is possible. <>

  1. 1. I did everything as it is described in the article “How to create email forwarder in cPanel”.
  2. 2. I repeated the procedure for the same address as many times as necessary, each time giving new destination address.
  3. 3. I checked thoroughly the correctness of all the addresses.
  4. 4. It is possible to write two destination addresses at a time, they should be separated by a semi-column without any space between the addresses.

To read about the procedure in details, see — >

With one email I wanted to inform all users of my site about some important event. I did everything as it is described in the article “How to create email forwarder in cPanel”. I repeated the forwarding for one address as many times as necessary, each time giving new destination address.

To speed up the procedure I wrote 2 addresses in one line. First, I separated them with a space and it was wrong. The program considered them as one email address.

When I separated addresses with a semi-column and a space, it didn’t work either. It worked only when the addresses were separated only by semi-column.

I tested everything and found a mistake in typing address, so it is important to check the correctness at every stage:

I made also forwards of the mail to the external host address.

As only inbox messages are forwarded, message from mynews@mydomain.com won’t forward unless it comes to this address. So, it is convenient to create one more box, for example, chiefadmin@mydomain.com and to send from it all messages to mynews@mydomain.com. The inbox messages from mynews@mydomain.com will forward to admin1@mydomain.com, admin2@mydomain.com, admin3@mydomain.com, someone@gmail.com.

SMF requirements

by Alex Benko, 2by2host

SMF (simple machines forum) requirements for the installation and running the forum.

2.5MB of storage are recommended by the SMF but we advise to have at least 100 MB. This will give you enough space to experiment with mods, themes and allow enough room for the database

SMF runs well on any web server that supports PHP. Either Apache or IIS would be a good choice.

Recommended Web Servers

  1. Apache 1 or 2 with AcceptPathInfo directive on in Apache 2 which will enable query-less support for the URLs.
  2. Microsoft IIS 6 or 7

Recommended Database Servers

  1. MySQL 3.23.4 and up.
  2. MySQL4.0.15 and up with enabled query caching

Recommended PHP versions

  1. PHP4.1.0 and up.
  2. PHP4.3.0 and up.

An important note is to have resiter_globals off to ensure the proper speed of the forum, otherwise it will crawl.

We do not recommend going with older software due to security issues.

Our choice of the best packages to run SMF is either our managed shared hosting or GoEasy plan both of them have been fine-tuned to run SMF. A lot of people recommend these as a perfect platform for SMF web hosting.

How to remove all messages in mail queue

by George Benko, 2by2host

Remove messages from command line

Remove all messages older than 24 hours:

/usr/sbin/exiqgrep -o 86400 -i | xargs exim -Mrm

Remove messages from WHM

WHM > Mail Queue Manager > Delete Mail Queue > Delete all

count of the messages in the queue:

exim -bpc

The right use of the mail() PHP function

Due to recently increased activity of spammers we had to disable the ability to send emails from the nobody account on our servers. It is also not a very good practice to have your emails come from the user nobody as it is unprofessional and misleading.

Many smart hosting providers either already disabled that feature or will disable it soon.

To ensure that all your scripts are working with this change please modify them to use the mail() function by adding the “from” header to it. You should use the header this way with any email address and domain associated with your account. This way your emails will not be flagged as SPAM.


$headers = 

"From: your_name <your@email.com>" .
"Reply-To: your_name <your@email.com>" .
"MIME-version: 1.0";

mail($recipient, $subject, $content, $headers);

Drupal requirements

by Alex Benko, 2by2host

Drupal requirements for the installation

The minimum disk space needed for Drupal installation is 40MB as indicated on Drupal's web site. We recommend at least 100MB which should allow enough room to have a variety of themes and modules on your Drupal site and have a backup of everything.

Drupal runs on both Apache and IIS with Apache being the recommended platform.

Recommended Web Servers

  1. Apache 1.3 or 2.x running on *nix, Windows or OS X platforms.
  2. IIS 5, 6 or 7 as long as PHP is configured correctly.

Recommended Database Servers

  1. Drupal 5.x and earlier need MySQL 3.23.17 and up.
  2. Drupal 6 needs MySQL 4.1 and up.
  3. Drupal 7 needs MySQL 5.0.15 and up.
  4. Drupal 7 will also run on PostgreSQL 7.4 and up.

Note: Some inexpensive hosting packages do not provide or support the following database account rights: ALTER, SELECT, UPDATE, INSERT, DELETE, DROP, CREATE, INDEX. That is why we strongly recommend using either our fully managed hosting plan or self managed GoEasy plan – both fully support Drupal and we also offer our support to address any issue.

Recommended PHP versions

  1. PHP 5.2.x is recommended
  2. PHP 4.3.5 is required.

There are a lot of subtleties in Drupal's requirements that can be easily overlooked even after examining them carefully. Two of our hosting plans have been tailored to work with Drupal and our managed shared hosting is perfect for somebody who needs us to manage their Drupal site or our GoEasy plan for somebody who will run everything on their own. This allows the best approach to Drupal web hosting.

Cannot modify header information – headers already sent by

by Alex Benko, 2by2host

When you see the “cannot modify header information – headers already sent by” error message take a closer look at the file listed in the error. The issue is commonly in the extra “white space” in the code. For example take a look at this error generated by Drupal:
warning: Cannot modify header information – headers already sent by (output started at /home/2by2host/2by2host.com/sites/all/themeeMed/template.php:7) in/home/2by2host/public_html/2by2host.com/includes/common.inc on line 148.

The error is in the template.php file. We opened it up and found the following on line 7:
?>

<?php

We removed the line between the tags and the problem was fixed.

We can easily fix an issue like that for you if you are our shared hosting or managed shared hosting customer.

Installing WordPress theme from cPanel

I navigated to the File Manager — > public html (or www, which is the same)– > myblog — > wp-content — > themes. To enter the folder in the File Manager you have to double-click on the folder symbol.

When in the right side of the file manager the content of the folder “Themes” appeared, I clicked “Upload” in the upper line.

I have uploaded the zip archive of the Atahualpa theme. It didn’t work until I had extracted it. I clicked on the Extract button. The extraction dialogue appeared.

The paths were written into the boxes automatically. So I didn’t add anything. The File Manager created a new directory called “Atahualpa” and extracted files in it. Note that the archive with the theme should be comprised of one folder named as the theme. In this case the extraction will be correct.

I entered the admin panel of my site which was located at the address www.testing.2by2host.com/myblog/wp-admin and found the “Manage themes” option (Appearance — > themes). I had new theme among the available ones, and had to click “Activate” to make it current. At the very top of my admin panel I clicked “Visit site” link to see how my blog had changed.

So, I had installed three different WordPress themes using three different methods.

Now I could switch between the uploaded themes in my wp-admin panel by simply clicking “Activate”.