Professional Documents
Culture Documents
Home / Linux System Administration / Using phpinfo to Display Info (Including Version Number) of your php (Linux)
Deciding Where to Put the PHP File install package (php) with another on Linux
(CentOS 6)
On CentOS 6 the default directory for html documents is /var/www/html/ . Let’s go to that directory: 5. Installing WordPress Step 5: Running the
WordPress php Install Script
[ahmed@amayem /]$ cd /var/www/html/
Or if you want to go to a custom directory you may do that but we will have to change some apache configuration to
point it to that directory.
Linux System Administration
Point Apache to the Directory that Contains the PHP File (if not Linux (CentOS 6)
Go to the bottom of the file by entering G . If NameVirtualHost *:80 is commented then uncomment it (remove the #
at the beginning of the line). Paste (copy and paste in vi here) the following at the end while replacing the values to
what your values would be.
<VirtualHost *:80>
ServerName info.amayem.com
ServerAlias www.info.amayem.com
DocumentRoot /var/www/html
</VirtualHost>
Exit insert mode qith Esc or ctrl+c and save by entering :x . Now Apache needs to be restarted to get this new
configuration.
References
1. Cyberciti’s phpInfo page
This entry was posted in Linux System Administration and tagged apache, Linux, php, phpinfo, technical.
Bookmark the permalink.
Installing Different Versions of php Using yum on Enabling php in Apache on Linux (CentOS 6) by
Linux (CentOS 6) Loading the Module in httpd.conf