Category Archives: Uncategorized

Installing PHP

In order to install PHP with MySQL support you first need to install mysql, mysql-lib, mysql-server and mysql-devel. Install instructions for MySql libs. Also you may need to install libxml2-devel in order to get xml2-config. yum install libxml2-devel Finally generate … Continue reading

Uncategorized

Named-based virtual hosting

First you need to declare the IP used for virtual hosting with the NameVirtualHost directive: NameVirtualHost 192.168.0.1 # ip above is just an example # the above directive specifies that requests for this IP must be further devised Second you … Continue reading

Uncategorized

Main Apache Directives

The main Apache configuration directives The complete Apache directives list. Listen This directive sets the ip(s) and port on which the Apache server listens for connection. Listen: 192.168.0.1:80 Instead of 192.168.0.1 the actual IP must be used. Port 80 is … Continue reading

Uncategorized

Apache structure

The /bin folder Contains various binarie: httpd This is the server binary itself apachectl This controlls the server (start, stop, restart) htpasswd This creates user data for Apache passworded directories. ab This is used for benchmarking apxs Apache extension tool: … Continue reading

Uncategorized

Apache installation

Compile options Implicit options (DSO) ./configure –prefix=/install_path –enable-so –enable-mods-shared=all –enable-mods-shared=all This enables the installation of all available modules. –enable-so This enables modular support (DSO)

Uncategorized

dig

Query the local DNS server dig @localhost domain Reverse resolution query on local DNS server dig @localhost -x ip Query MX record from 8.8.8.8 DNS server dig @8.8.8.8 -t MX domain Query all records dig -t any domain

Uncategorized

rndc

Flush the DNS cache with Bind 9.2.0 or later rndc flush For previous versions simply kill named and restart it. Reload bind rndc reload rndc reload domain rndc reload domain1 domain2 …

Uncategorized

nslookup

Non-interactive mode Get the A record for domain nslookup domain Get the reverse resolution for an IP nslookup ip Get the reverse resolution using an alternate server nslookup ip dns_server Get the MX record for a domain using an alternate … Continue reading

Uncategorized

Zone files

Domain zone file $TTL 3h ; value that instructs non-authoritatively DNS servers how long to keep the data in cache @          TTL          IN           SOA          primary_nameserver.  email_address. ( 1000 ; serial number – to be increased with each zone file modification … Continue reading

Uncategorized

Bind: named.conf structure

named.conf sections The named.conf consists of a general section (options, logging etc) and the zones section. All lines (except the opening curly brackets only rows) must end with a semicolon. The named.conf general section The option container in named.conf. options{ … Continue reading

Uncategorized