download the XAMPP from aparchie friend
linux version.
sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt
This is command to extracting the file into the folder.
customzied the folder for yourself.
start XAMPP
sudo /opt/lampp/lampp start
kang@ubuntu:~$ sudo lampp/lampp start
stop XAMPP
sudo /opt/lampp/lampp stop
1. Make public_html directory in home directory:
Code:
mkdir ~/public_html
2. Link to /opt/lampp/htdocs
Code:
sudo ln -s ~/public_html /opt/lampp/htdocs/$USER
Thursday, February 19, 2009
Wednesday, February 18, 2009
Platforms, Servers, Databases, and PHP
PHP is cross-platform
server module
PHP is designed to integrate easily with databases.
1. directly
2. open database connectivity (ODBC)
A1: The manual for PHP is available at http://www.php.net/manual/.
A2: You can get help on configuration options by calling the configure script in the PHP distribution folder and passing it the --help argument:
./configure -help
A3: The Apache configuration file is called httpd.conf.
A4: The line is
AddType application/x-httpd-php .php
It ensures that Apache treats files ending with the .php extension as PHP scripts.
A5: PHP's configuration file is called php.ini.
server module
PHP is designed to integrate easily with databases.
1. directly
2. open database connectivity (ODBC)
A1: The manual for PHP is available at http://www.php.net/manual/.
A2: You can get help on configuration options by calling the configure script in the PHP distribution folder and passing it the --help argument:
./configure -help
A3: The Apache configuration file is called httpd.conf.
A4: The line is
AddType application/x-httpd-php .php
It ensures that Apache treats files ending with the .php extension as PHP scripts.
A5: PHP's configuration file is called php.ini.
Subscribe to:
Comments (Atom)