Use NTP pool servers
Selecting pool servers is up to you. If you use NTP pool servers, ntp.org recommends you use pool servers that are close to your servers’ time zone as discussed on the NTP pool project page. If you have a private NTP server that is available to all hosts in your deployment, you can use that server instead.
-
Open
/etc/ntp.conf
in a text editor. -
Look for lines similar to the following:
server 0.centos.pool.ntp.org server 1.centos.pool.ntp.org server 2.centos.pool.ntp.org
-
Replace those lines or add additional lines that specify your NTP pool server or other NTP servers. It’s a good idea to specify more than one.
-
An example of using three United States-based NTP servers follows:
server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.ntp.org
-
Save your changes to
/etc/ntp.conf
and exit the text editor. -
Restart the service.
-
Ubuntu:
service ntp restart
-
CentOS:
service ntpd restart
-
-
Enter
date
to check the server’s date.If the date is incorrect, make sure the NTP client port (typically, UDP 123) is open in your firewall.
Try the
ntpdate _[pool server hostname]_
command. If it fails, search for the error it returns.If all else fails, try rebooting the server.
Create phpinfo.php
The phpinfo.php
file displays a large amount of information about PHP and its extensions.
phpinfo.php
in a development system only. It can be a security issue in production.Add the following code anywhere in your web server’s docroot:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
For more information, see the phpinfo manual page.
To view the results, enter the following URL in your browser’s location or address field:
http://<web server host or IP>/phpinfo.php
If a 404 (Not Found) error displays, check the following:
-
Start the web server if necessary.
-
Make sure that your firewall allows traffic on port 80.
phpMyAdmin
The phpMyAdmin application is an easy to use, free database administration utility. You can use it to check and manipulate the contents of your database. You must log in to phpMyAdmin as the MySQL database administrative user.
For more information about phpMyAdmin, see the phpMyAdmin home page.
For more detailed information about installation, see the phpMyAdmin installation documentation.
-
To use phpMyAdmin, enter the following command in your browser’s address or location field:
http://<web server host or IP>/phpmyadmin
-
When prompted, log in using your MySQL database
root
or administrative user’s username and password.