Contents /
Previous /
Next
Installation
Standard Configuration: RPM in Linux distributions.
There are several ways to install PHP,
the most common are:
- As an Apache module:
The most popular with the best performance.
- As a CGI executable:
This creates a command-line interpreter,
which can be used for CGI processing (by Apache),
or for non-web-related PHP scripting.
In case of a local installation of your web server (Apache)
you can place your script "my.php" under the directory
"/srv/www/htdocs/my.php" and open it as "http://localhost/my.php"
in you browser.
Configuration
The PHP configuration is done in the php.ini file (in /etc).
Edit httpd.conf (in /etc/httpd) to configure Apache to work with PHP.