Web Sites

Page 1 of 212

To run vhosts under separate UIDs/GIDs in apache is very easy with mpm-itk.  This will help secure your sites on your shared server.

First install apache2-mpm-itk

apt-get install apache2-mpm-itk

Next add a group and user

groupadd web1
useradd -s /bin/false -d /home/web1_admin -m -g web1 web1_admin

Now add this to the end of your vhost for your site. Be sure to place this inside the </virtualhost> tag and not outside of it.

AssignUserId web1_admin web1


For each of your sites you will user a different username and group. Now be sure to set your web directory to the correct user and group.

Example:

chown -R web1_admin:web1 /var/www/website

HamTalk-Logo2

 

Check out the new HamTalk website, it is now live.

Sometimes working with a directory full of subdirectories and files you need to compare the directories and files to another version of the files.  This comes in extremely useful when restoring a hacked website.  To do this you need to have the old copy and the current copy in two different directories on your system.  Then run the command below replacing DIR1 and DIR2 with the directoires you would like to compare.  This works through the entire directory because of the -r option which stand for recursive.  The -q option suppresses the entire output and only outputs the files the differ.

Continue reading

After setting up your website it is always a good idea to change the directory and file permissions.  This makes it a little harder for an attacker to compromise your site.  For Joomla and Wordpress it is best practice to set your directory permissions to 755 and your file permissions to 644.  In addition to this, Wordpress recommends setting the wp-config.php file to 600.

 

Using the code below, go to the root directory of your website and run the following commands.

 

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

 

 

Gravatar is junk….

 

To remove it, add this toward the top of  your themes function.php

Continue reading

Create web site using ISP Config

  • If a new client, under “client” tab, select “Add new client” button
    • Enter relevant client information
    • “Save” entry
  • Under “DNS” tab, use the main “Add new DNS Zone (SOA)” button, not the text link on the left.
    • Choose the DNS server
    • Choose the appropriate client
    • For “Zone”, enter the domain name (Do not include “www”)
    • Set “NS” as ns3.mpl.com
    • Set “e-mail” as administrator.mail.mpl.com
    • Under “Records” tab, create the following Continue reading

If you are going to use MyDNS on a VPS you must remove Bind first.  It is preinstalled on most VPS images.

Server

Install Dirvish, rsync and ssh on the backup server:

apt-get install dirvish ssh 

/etc/dirvish/master.conf should look something like this:

bank:
        /data/backup
Runall:

expire-default: +15 days
expire-rule:
        #MIN    HR      DOM     MON     DOW     STRFTIME_FMT
        *       *       *       *       1       +3 months
        *       *       1-7     *       1       +1 year
        *       *       1-7     1,4,7,10 1
        *       10-20   *       *       *       +4 days

Create a dirctory where all backup’s will be stored: Continue reading

I got a new client this week at work, Highland Landscaping.  I have some very good ideas for a design for his site based off the photos he gave me.  Also, from the photos it appears they do some amazing work.  So if you need some landscaping done I would be looking in their direction.

You can follow along with the design and development of their site by going tohttp://www.highlandyard.com.  If the splash page is still up, I am still in the dev phase and you can go tohttp://www.highlandyard.com/demo3.

TracySheets.com has been updated.  The update was just simply for stability and security.  Check it out here.

Page 1 of 212

Categories

Archives