Professional Documents
Culture Documents
Apache is an open source freely available HTTP web server that runs on most UNIX-based operating systems as well as on Windows !pache web server is used to serve web pages li"e # htm php pl cgi $s% etc !s per &arch '()'* !pache web server runs on almost "5.24( websites across all the domains
What is MySQL?
MySQL is one of the world+s most popular open source relational database management system #,-.&/% that runs any server by providing multi-user access to multiple databases &y/01 runs with !pache
What is PHP?
PHP #Hyperte2t Preprocessor% is an open source server-side scripting language that is best suited for web development and can be used to produce dynamic web pages for a website
PHP Modules
We are going to install all these following PHP modules in this installation
MySQL (php mysql! " # extension for $%$ appli&ations that use MySQL data'ases. $ostgreSQL (php pgsql! " # extension for $ostgreSQL data'ase for $%$. Mongo() (php pe&l mongo! " # driver for Mongo() data'ase. SQLite (php sqlite! " *xtension for SQLite (ata'ase *ngine. Mem&a&he (php pe&l mem&a&he! " Mem&a&hed &a&hing daemon. Mem&a&hed (php pe&l mem&a&hed! " Mem&a&hed &a&hing daemon.
3- #php-gd% 4 3- e2tension for PHP application to serve graphics X&1 #php-2ml% 4 X&1 Parser for PHP applications &./tring #php-mbstring% 4 &bstring e2tension is used to handle multi-byte string in PHP applications
&5rypt #php-mcrypt% 4 ! &crypt library for PHP scripts !P5 #php-pecl-apc% 4 !P5 module used to optimi6e and cache PHP code 51I #php-cli% 4 5ommand-line interface for PHP P7!, #php-pear% 4 !pplication ,epository framewor" for PHP P-8 #php-pdo% 4 -atabase access module for PHP applications
Step ": (eri)ying Apache ! !1"# MySQL "!"!$% & PHP "!"!%
) 5reate a page called php)n*o.php under your !pache root directory and add the following lines to it 9or e2ample #/+a&/,,,/ht-l/php)n*o.php%
<=php =A phpin"o >?@
' Now access the page via web browser li"e http:;;localhost;phpinfo php <ou will see below screenshot
PHP = = > Preview That+s it? If you are having any trouble installing* let me "now via our comment section