How to Set up Php on Apache 2.2.3 on CentOS 5.
Connect to your VPS using SSH to get a command line (unless its being installed on your local machine)., Remember that search for the PHP.
Step-by-Step Guide
-
Step 1: Connect to your VPS using SSH to get a command line (unless its being installed on your local machine).
Your machine will need to be connected to the network to download packages.
Packages can be installed using the 'yum' command.
CentOS and Red Hat based distros call the Apache server 'httpd' rather than Apache.
This can be confusing at times to new people, but it is the same application/server.
You should search for Apache using the command 'yum search httpd' .
This will probably show you a lot of results, however some of these things are modules or addons.
The main one to look for looks like 'httpd.i386' or similar.
Now you can install it with 'yum install httpd.i386' -
Step 2: Remember that search for the PHP.
PHP comes with many modules, this means a 'yum search php' will show a lot more items.
The main one to install is php.i386 (like the httpd) unless you run a 64bit OS in which case you will see the difference in name in the search.
Detailed Guide
Your machine will need to be connected to the network to download packages.
Packages can be installed using the 'yum' command.
CentOS and Red Hat based distros call the Apache server 'httpd' rather than Apache.
This can be confusing at times to new people, but it is the same application/server.
You should search for Apache using the command 'yum search httpd' .
This will probably show you a lot of results, however some of these things are modules or addons.
The main one to look for looks like 'httpd.i386' or similar.
Now you can install it with 'yum install httpd.i386'
PHP comes with many modules, this means a 'yum search php' will show a lot more items.
The main one to install is php.i386 (like the httpd) unless you run a 64bit OS in which case you will see the difference in name in the search.
About the Author
Christine Mendoza
Creates helpful guides on hobbies to inspire and educate readers.
Rate This Guide
How helpful was this guide? Click to rate: