Main

Servers Archives

August 22, 2006

XAMPP All-in-one-webserver

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 ->

February 2, 2007

Common Linux User Commands

Here are common linux command examplers for managing user accounts.

Displaying user details
Syntax: id {username}
shell> id tildemark

Create a new user with username tildemark
Syntax: useradd {username}
shell> useradd tildemark

Create a new user with username tildemark under group admin
Syntax: useradd -g {group} {username}
shell> useradd -g admin tildemark

Creating a new user with username tildemark and assign a home folder
Syntax: useradd -d {location} {user}
shell> useradd -d /home/tildemark tildemark

Creating a new user tildemark and assigning a password pass
Syntax: useradd -p {password} {username}
shell> useradd -p pass tildemark

assigning password to user tildemark
Syntax: passwd {username}
shell> passwd tildemark

Creating a new group
Syntax: groupadd {group}
shell> groupadd developers

Creating a new user and assigning it multiple groups admin, developers
Syntax: useradd -G {group1}, {group2} {,...}
shell> useradd -G admin, developers

Assigning user tildemark to group admin, developers
Syntax: usermod -G admin, developers tildemark

Delete an existing user
Syntax: userdel {username}
shell> userdel tildemark

February 8, 2007

Enable curl with XAMPP on Windows XP

To enable curl library with XAMPP we need to modify the php.ini files in our xampp folder.

1) Locate the following files:
C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini

2) Uncomment the following line on your php.ini file by removing the semicolon.

;extension=php_curl.dll

3) Restart your apache server.

4) Check your phpinfo if curl was properly enabled.

February 28, 2007

Enable htaccess on Apache

.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

About Servers

This page contains an archive of all entries posted to Tildemark blogs in the Servers category. They are listed from oldest to newest.

Desktop Applications is the previous category.

Many more can be found on the main index page or by looking through the archives .

Creative Commons License
This weblog is licensed under a Creative Commons License .
Powered by
Movable Type 3.33