|
|
|
Home Credits Affliates Link Exchange HTMLshaman PHPshaman LINUXshaman Helpful Links Web Design Images Backgrounds Icon Sets GIF Images |
Installation : Apache Configuration Let us clear some doubts when you are first starting off. You DO NOT need to spend hundreds or thousands of dollars to purchase a kind of software to manage your websites. it is not necessary at all!! These control panels are merely a graphically way to get you around and provides with with a lot of eye candy stuff that would not be very necessary if you are very familiar with the commandline procedures and how to create sites since this is just a personal server to host a few of your own sites. We will now need to configure your server ready to stream webpages and since you selected your unit to be a server in the pervious installation, Apache has already been installed and will start running when you set the correct variables. Creating a New WebSite Taking into consideration that you ahve already finished all the settings for your domain name to point to this IP address of the server, now all you need is to set it up. First we will create a locatino for all your sites to be stored in. ( isue the follwoing commands to create that directory ) mkdir /home/sites/www.domain.com/www chmod 755 /home/sites/www.mydomain.com/www Once the needed directory is created we will now move on to configure Apache. Follow the below to open and edit the configuration file: pico /etc/httpd/conf/httpd.conf The httpd.conf file is the file controlling the activities of Apache. ( If pico does not work, use the vi command ) Scroll to the bottom of the file and enter tehse lines: <VirtualHost 111.222.333.444> ServerName www.domain.com ServerAdmin root DocumentRoot /home/sites/www.domain.com/www ErrorDocument 401 /error/401-authorization.html ErrorDocument 403 /error/403-forbidden.html ErrorDocument 404 /error/404-file-not-found.html ErrorDocument 500 /error/500-internal-server-error.html RewriteEngine on RewriteCond %{HTTP_HOST} !^111.222.333.444(:80)?$ RewriteCond %{HTTP_HOST} !^swww.domain.com(:80)?$ [NC] RewriteRule ^/(.*) http://www.domain.comm/$1 [L,R] RewriteOptions inherit # Remove the below 2 lines if you want php to be active # AddType application/x-httpd-php .php4 # AddType application/x-httpd-php .php </VirtualHost> Replace the IP address 111.222.333.444 with your own IP address and the domain name and path with that of yours. Unlike Windows, a Linux does not have to fully reboot to be active. All you need is to get the specific Daemon to reboot. We will discuss it in the next section for "What are Daemons?" so just excute the below command on the commandline to restart the Apache server. /etc/rc.d/init.d/httpd restart
|
| Our Recommended Links |
|
|
Contact us at webmaster@galacnet.com for advertising opportunities on GalacNet. |