Tab 3     Lock Down                        How to setup limited access to PhpMyAdmin and MyDNS Web front end admin
                        This is done via letting selected IP address to have access to the Vhost and the rest
                        Will get the 403 error : Forbidden access error

Tab 4     Adding Vhosts


                       Simple way to add new Vhost to your OAMP Box
                       Itís really just a copy and paste the code into notepad and then use Find and
                       Replace to put in your New Domain/ Sub Domain info

 

 

Tab 5    Bittorrent Tracker


                       An Quick and simele tracker to install only takes about 3 mins to install
                       If you got the apache/mysql/php already installed

 

 

Please Note this are continues from my other howto's on  the homepage

ZcWorld 2008 

how to lock down the access to phpMyAdmin and MyDNS


log in your account
than

REMEMBER to change the IP address on the allow from : to your IP address of your PC you want access to the MyDNS / PhpMyDnS

vi /var/www/conf/vhosts/mydns.admin.lan.conf


<Location />
       Order deny,allow
       Deny from all
       Allow from 192.168.1.100 192.168.1.101 192.168.1.107 192.168.1.108 192.168.1.10
       AllowOverride None
</Location>



below DocumentRoot /var/www/vhosts/mydns.admin.lan/htdocs

and above       CustomLog /var/www/logs/mydns.admin.lan_access.log combined

so it should look like this

<VirtualHost *>
        ServerName mydns.admin.lan
        DocumentRoot /var/www/vhosts/mydns.admin.lan/htdocs
    <Location />
       Order deny,allow
       Deny from all
       Allow from 192.168.1.100 192.168.1.101 192.168.1.107 192.168.1.108 192.168.1.10
       AllowOverride None
    </Location>
      CustomLog /var/www/logs/mydns.admin.lan_access.log combined
      ErrorLog /var/www/logs/mydns.admin.lan_error.log
</VirtualHost>



and do the same thing the sql.admin.lan.conf file

vi /var/www/conf/vhosts/sql.admin.lan.conf



apachectl stop
httpd -u



and try to access from your PC and it should load up
and than to make sure they are working try to acceess it from an PC on your network that isn't in the allow from

simple adding new Vhost sites to your system

login with your account that has got WWW group access rights

copy and paste this into notepad and use find and replace
replace subdomain.topleave = with mysite.woot


<VirtualHost *>
        ServerName subdomain.topleave.lan
        DocumentRoot /var/www/vhosts/subdomain.topleave.lan/htdocs
    <Location />
       Order deny,allow
       Deny from all
       Allow from 192.168.1.100
       AllowOverride None
    </Location>
      CustomLog /var/www/logs/subdomain.topleave.lan_access.log combined
      ErrorLog /var/www/logs/subdomain.topleave.lan_error.log


</VirtualHost>


mkdir -p  /var/www/vhosts/subdomain.topleave.lan/htdocs
cd /var/www/vhosts/subdomain.topleave.lan/htdocs
vi  /var/www/conf/vhosts/subdomain.topleave.lan.conf



push the insert key and copy from

push (twice) ESC :wq <enter>



replace the subdomain.topleavel with what you want

like
list.vdb
blog.zcworld.lan



if you want to limit the access to the site than keep in the allow from
if not take out from <Location />  to </Location>

restart apache so it can load the new Vhost file up

apachectl stop
httpd -u



in the folder are you in
is the htdocs for your new Vhost site
put in here what you want to be access via the website

than go

http://mydns.admin.lan



log in
and if you using an exista topleavel than you just add an record to it
if its an new toplevel than you add a new zone first than an record to it afters


if you put nothing in here
you will get an Forbidden  error

just run to set read /write access right to the folder / files

chmod -R 775 /var/www/vhosts/







its better to use something like

sites.lan <top level>
than you have you sub level domains
search
vdb
mail



admin.lan <top level>
sql
mydns



than vdb.lan : you can do it but its a lot of records if you have like 10 or more sites
each one got its own zone and than you got to add an
empty : name record with the IP of the box
for the top level domain to be access able

please note i have not tested this out on centos / redhat but due to fedora /centos useing the redhat core : it will should work without any problems


Btit-tracker homepage @ SF.net

what you need install
* MySql
* PHP
* Apache
and about 20 MB of space for the tracker and torrent

 

yum install yum install httpd mysql-server php php-mysql php-mbstring

chkconfig --levels 235
mysqld on
/etc/init.d/mysqld start
mysqladmin -u root password yourrootsqlpassword


mkdir /tmp/bt
cd /tmp/bt
wget http://downloads.sourceforge.net/btit-tracker/btitracker_147.zip?modtime=1196799856&big_mirror=0


mv btit147 /var/www/html/bt
chown -R apache:apache /var/www/html
chmod -R 775 /var/www/htm


mysql -u root -p


CREATE DATABASE BT_tracker;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE ON BT_tracker.* TO 'BT_tracker'@'localhost' IDENTIFIED BY 'BT_tracker';
FLUSH PRIVILEGES;
quit;



 http://<IP>/bt


replace <IP> with your box / pc IP

 than follow the onscreen setup

 

 

 system check

 

 

 database info seutp

 

 

 
at the Administrator Setup
the password must be 6 letters or more :)

 

 

 Finished Page

 

 

Click the Home Tab to go back to the Homepage



THis Page is powered by Dolphin Tabs Menu- by JavaScript Kit

 

if you want to see any howto or want to email me an thanks
or ask to use work on any website or anything else
email me here>> Email Me <<

remove the -SPAM-FREE-Zone part out of the address