Archive for the ‘hepblog’ Category

Edit the file wp-content/themes/default/sidebar.php. Right after this:

<li>
<?php get_search_form(); ?>
</li>
</pre>

add this:
<li>
<?php wp_list_bookmarks(); ?>
</li>

Edit ../wp-content/themes/default/index.php and archive.php.

Look for a line like this:

<small> <? php the_time('F jS, Y') ?> <-- by <?php the_author() ?> --> </small>

Edit to this:

<small><? php the_time('F jS, Y') ?> by <?php the_author() ?></small>

In archive.php, the by <?php the_author() ?> needs to be added.

Download the plugin from wherever it’s located. Put the file in the wp-content/plugins folder and change permissions to 644 root:apache. Then, just reload the plugins page in wordpress and activate the new plugin.

I had a problem on one of my wordpress blogs where a user wanted to upload a file larger than 2MB. When attempting to upload, he got the error message:

The uploaded file exceeds the upload_max_filesize directive in php.ini.

The solution was to simply change the upload_max_filesize parameter in the php.ini file. But, after searching, I found that there wasn’t a php.ini file on the computer in question. I created a new one and tried it in /etc, /var/php5/etc and some other locations, but the change wasn’t registered. Finally I remembered that I could use php itself to tell me where it expected the file. To do this, I created a simple file, called phpinfo.php and put in the following info:

<? phpinfo(); ?>

Then, when I looked at that file in a browser, it showed that the location of the php.ini file should be /var/php5/lib.

Blog with information about the setup of machine hepblog is located here.