Categories
Linux UNIX

Password Protect Website

There are two files that must be inside your root directory in order to password protect your site. .htaccess — the .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration. .htpasswd — .htpasswd is a flat-file used to store usernames and password […]

Categories
Code Linux MAC UNIX Wordpress

WordPress Backup on CentOS

Now that I’ve moved my website over to CentOS, I’ll be showing you how I do backups. My Setup VirtualBox – CentOS web server running WordPress iMac – connected Drobo Goal Run daily mysql backups Run weekly website backups Only keep the latest two backups Run daily rsync’s to my Drobo from my iMac CentOS — […]

Categories
Linux UNIX

Red Hat & CentOS – Setting Up Virtual Hosts

For this quick and simple example, I will enable Virtual Hosts and configure itsmetommy.com to point at /var/www/itsmetommy.com/public_html/. # vi /etc/httpd/conf/httpd.conf # mkdir /var/www/itsmetommy.com # mkdir /var/www/itsmetommy.com/public_html/ Add the below line to /private/etc/apache2/extra/httpd-vhosts.conf or you will get the below error when restarting httpd. ServerName localhost “Starting httpd: httpd: apr_sockaddr_info_get() failed for YOURHOSTNAMEhttpd: Could not reliably determine the […]

Categories
Design Internet Technology

CSS Basic Template

Here’s a basic CSS template that you can use. There’s a header, a footer, a left side and a right side. You need to create an index.html and mystyle.css file. Place them in the same directory. index.html <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ /> <link rel=”stylesheet” […]

Categories
Design Technology

Making CSS Rollover Buttons (Sprite)

I found a really good site that shows how to create a rollover affect by only using CSS. I’ve always used javascript via Dreamweaver, but thought it was very interesting of why using CSS was better. I am now going to use CSS for all my future rollover effects. Why should you use CSS over […]