PHP Upload Limit

I was working on PHPMyAdmin today trying to create a copy of a database. The SQL file was bigger than 8MB. Before I uploaded, I saw a message on the page of PHPMyAdmin saying the upload limit is 8MB. All indication points to increasing the upload size in the PHP configuration.

Since my server runs on Ubuntu, the php.ini file is located in /etc/php/apache2/php.ini. You’ll need to change the following settings:

sudo nano /etc/php/apache2/php.ini
# Edit the following entries to file size you want
upload_max_filesize = 32M
post_max_size = 32M

It makes sense to match the two values because they go hand-in-hand.

The changes won’t take effect until you restart Apache.

sudo service apache2 restart

Wp_enqueue_scripts

There's a new way to load WordPress stylesheets from within your templates. In the older versions of WordPress, the stylesheets were hard coded on the theme's header file. The proper way to load your stylesheets is via the functions.php file. Here … [Continue reading]

Enable Mod Rewrite in Ubuntu

Another issue when installing Laravel on the Ubuntu server is to make sure you have the mod_rewrite module enabled. You can turn it on by invoking the following command. sudo a2enmod rewrite sudo service apache2 reload Once you've enabled … [Continue reading]

Laravel: Curl and Mycrypt

I've installed Laravel at least a dozen times. Each time, there's always something new that goes awry during the installation. If it's not curl, it's mcrypt, or maybe the app/storage permissions. I think it's just the fact that I'm experimenting … [Continue reading]

Keep Your SSH Sessions Alive

If you work on servers via Terminal using SSH (secure shell), one of the more annoying things that happens quite regularly are timeouts. If there's no activity between your SSH client and the server, your terminal is closed because your session has … [Continue reading]

Display Post From A Year Ago

Here's a cool little WordPress script to display a post from a year ago. You can display your old content to entice your readers to view older articles. You can display your old posts on your theme's sidebar, after your post content, or just anywhere … [Continue reading]

Hide WordPress Admin Bar

There are reasons why you want to hide the Admin Bar from your users. If users don't have edit rights, then there's really no use for an Admin bar. Another reason is if the account is shared with others, you don't want users to reset the password. … [Continue reading]

Shades of Color

Part of creating web design involves working with shades of color. At times, using a color for a HTML link may look good indeed, but the same Hex color code may not necessarily work as a background color. As a designer, you may have to work with … [Continue reading]