Server Topic
   >  Introduction to Webservers
   >  Installing the Webserver
   >  Controlling the Webserver
   >  Installing PHP Support
   >  Using PHP
   >  Installing mySQL Database
   >  Using mySQL

 

Installing the PHP Web Scripting Language under Linux

What is PHP?

PHP is a server-side scripting language, much like ASP on Windows, whereby commands are embedded into static HTML code to fill in dynamic content (-such as data retrieved from a back-end database -for example mySQL). It is used extensively to create dynamic web pages on the Linux platform, but can be used on any O/S.

PHP is a server-side scripting language .. whereby commands are embedded into static HTML code to fill in dynamic content ..


Installing PHP

In Ubuntu, the PHP5 server scripting language can be installed from the command line with a single command:

sudo apt-get install php5-cgi php5-mysql

Note: if either of these packages fail to install, try the command again after running sudo apt-get update

For Fedora, the command is slightly different:

sudo yum install php php-mysql

Once installed, that is it - as long as you have configured the webserver to deal correctly with PHP!

Note: if you are using Apache instead of lighttpd please see the Ubuntu ApacheMySQLPHP guide for webserver PHP configuration


References and Further Reading:


HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button