Recently in Servers Category

2008 Jul 30
virtual.gifSetting up virtual hosts with XAMPP is very straight forward and could be done in less than 5 minutes. Although, your local XAMPP server will still work even if virtual hosts are not configured. You might want to ask, is there a need for my local XAMPP setup to configure virtual hosts? Apparently, virtual hosts are needed when

  • your on multiple domains
  • your need to test your projects with same configuration with the server
  • test your projects without touching your public server
  • your just organizing your projects into groups
  • or setup a local copy of your blog or website
What do we need?
This document assumes that you are working with Windows XP with XAMPP. If you don't have XAMPP, get it at their XAMPP for Windows download page. Just execute the exe file and follow the onscreen instructions.

Configuring Windows XP to accept hosts
Hosts is a file under Windows XP that is used to map IP addresses to a custom list of hosts or maybe domain names. The IP address should be placed in one line. The first column should contain the IP address and on the second column its corresponding hostname. The IP address may be separated by a space or by a tab. You can place comments by prepending your line this symbol '#' (pound sign). Initially the first line is added. Now lets add our domain tildemark.com

127.0.0.1       localhost
127.0.0.1       www.tildemark.com
127.0.0.1       tildemark.com

you can check your work by doing a ping to your configured host.
pinging-tildemark.com.jpg 

Configuring XAMPP to accecpt Virtual Hosts
  1. Got to your Apache folder in XAMPP and locate the conf files. The are usually located at <<local path>>\xampp\apache\conf\extra
  2. Open the file named httpd-vhosts.conf with a text editor
  3. If posible read the instructions so may have the idea on what you are doing
  4. Now paste the following code at the bottom of the file without touching the document.

    NameVirtualHost 127.0.0.1:80
    <VirtualHost 127.0.0.1:80>
      DocumentRoot E:/xampp/htdocs/    # change this line with your htdocs folder
      ServerName localhost
    </VirtualHost>

  5. Edit the line DocumentRoot with your own document root folder
  6. For each domain you are to configure paste the following lines below, just replace my domain name your corresponding domain:
<VirtualHost www.tildemark.com>
  DocumentRoot "E:\www\www.tildemark.com"
  ServerName www.tildemark.com
  ServerAlias www.tildemark.com

  CustomLog "E:\www\www.tildemark.com\www.tildemark.com-access_log" combined
  ErrorLog "E:\www\www.tildemark.com\www.tildemark.com-error_log"

  <Directory "E:\www\www.tildemark.com">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>



2007 Dec 6

i kept on forgetting this until i reinstalled xampp. i keep receiving this error, and i am sure IIS was not installed with my windows xp installation.

Installing Apache2.2 as an Service
Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Now we Start Apache2.2 :)
The Apache2.2 service is starting.
The Apache2.2 service could not be started.

A service specific error occurred: 1.

More help is available by typing NET HELPMSG 3547.

Its making me insane @#$^#. And then somebody sent me a message from Skype !!!! There it goes, i remembered, Skype is using port 80, and I dont know why. Closed Skype, runned the installed again and viola! It works.

2007 Feb 28

.htaccess files allows us to change configurations on our servers per directory or subdirectory. we may enable htaccess files by editing our httpd.conf rewmoving the comment on line from

;LoadModule rewrite_module modules/mod_rewrite.so

to

LoadModule rewrite_module modules/mod_rewrite.so

we need to change the AllowOverride directive also from

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>

to

<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Satisfy all
</Directory>

You can also rename your .htaccess file by adding the line below on you httpd.conf file

AccessFileName [filename]

example: AccessFileName .configuration




-----
70-648 certified people seem more valuable to employers and businesses. Online businesses need experts with 642-552 certifications. Cisco 642-892 exam addresses Demand for networking skilled people in the Telecommunications Market. 650-621 validates your practical experience and helps you earn more from your existing jobs. Oracle's market share in the database market creates a demand for 1z0-042 certified individuals even in small businesses.

2006 Oct 2

If you came across to this error while installing apache2, well, heres the fix.

Goto your apache installation folder its usually at:

C:\Program Files\Apache Group\Apache2\bin

Execute this command:

Apache.exe -k install -n "Apache2"

-k install -- tells apache to install an Apache service
-n "Apache2" -- sets its service name to be Apache2
-k start -- Start Apache server
-k restart -- Tells Apache to do a restart

You can then test your installation by typing in http://localhost/ to your browser address bar.

2006 Aug 22

XAMPP is a web development tool containing the essential applications in rapidly deploying web applications. XAMPP contains thew following:
1) Apache HTTP Server,
2) MySQL Database Server
3) ProFTPD Server
4) PHP
5) Perl
6) phpMyAdmin
7) OpenSSL

Xampp logo

Initially XAMPP stands for X-, A-pache, M-ySQL, P-HP, P-erl. XAMPP may be installed on most of the operating systems namely, Linux, Windows, Mac OS X and Sun Solaris. In Linux XAMPP is called LAMPP but to avoid the misconception it was renamed to XAMPP for Linux. The main feature of XAMPP is its one click server deploy and the easy PHP version switch. XAMPP was initially intended as a web developer tool so it is designed to be free from all restrictions. However, there are ways to secure XAMPP if you are planning to use it in a production environment.

A number of packages are also bundled with XAMPP.
Graphics: libjpeg, libpng, GD, ncurses
Database: SQLite, gdbm, FreeTDS
PHP: Pear, ezpdf, TURCK
XML: xpat, libxml, salbotron
Generic: mod_perl, zlib, IMAP, Ming, mcrypt, gettext, freetype2

The latest version of XAMPP may downloaded from its website.

XAMPP Download:
Linux
Windows
Mac OS X
Solaris

You may choose which installer to download the easiest is the .exe. if you have downloaded the tar ball you may use the command to install:

tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt

by default in linux XAMPP is located at:
/opt/lampp

to start XAMPP you may issue the command:
./lampp start

to stop XAMPP you may issue the command
./lampp stop

check your XAMPP installation by typing the following on your web browsers address bar:
http://localhost/

other more specific commands:
Start commands
/opt/lampp/lampp startapache
/opt/lampp/lampp startmysql
/opt/lampp/lampp startftp

Stop commands
/opt/lampp/lampp stopapache
/opt/lampp/lampp stopmysql
/opt/lampp/lampp stopftp

Switch PHP versions
/opt/lampp/lampp php4
/opt/lampp/lampp php5

To uninstall XAMPP
rm -rf /opt/lampp

There would be no problem in Windows for there is an administration tool for running server applications in XAMPP. It usually located at:

Start -> All Programs -> apachefriends -> xampp ->

About this Archive

This page is a archive of recent entries in the Servers category.

Desktop Applications is the previous category.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Tuesday

  • tildemark tweeted, "most of the times, we really can not trust the alarm clocks."

Friday

  • tildemark saved the link COMMAND & CONQUER RED ALERT 3
  • tildemark tweeted, "wordpress had given away tshirts at the wordcamp davao. http://www.philippines.wordcamp.org manila is next on sept 6 2008."

Thursday

  • tildemark tweeted, "@gmtristan hello sir, can i posibly get a copy of the pics we had at the hodet davao?"
  • tildemark saved the link Web Hosting Promo Codes - Promo-Code.net
  • tildemark tweeted, "when loading big pdf files, chrome freezes until the file is downloaded"
  • tildemark saved the link Google Chrome - Download a new browser
  • tildemark saved the link FreelanceSwitch Hourly Rate Calculator

Wednesday

  • tildemark tweeted, "flash is now working but i always acidintally click the quit button and everything is gone. i wish chrome has a warning message"
  • tildemark tweeted, "i cant see flash on chrome waaaa"