Magento optional software
We strongly recommend you install NTP to ensure that cron-related tasks perform properly. (Server dates could be in the past or future, for example.)
The other optional utilities discussed in this topic might assist you with your installation; however, they are not required to install or use Magento.
Installing and Configuring Network Time Protocol (NTP)
NTP enables servers to synchronize their system clocks using globally available pool servers. We recommend you use NTP servers you trust, whether they are dedicated hardware solutions your internal network or external, public servers.
If you are deploying Magento on multiple hosts, NTP is a simple way to guarantee their clocks are all synchronized, no matter what time zone the servers are in. Also, cron-related tasks (such as indexing and transactional e-mails) depend on the server clock being accurate.
See one of the following sections:
Install and configure NTP on Ubuntu
Enter the following command to install NTP:
1 apt-get install ntp
Continue with Use NTP pool servers.
Install and configure NTP on CentOS
To install and configure NTP:
Enter the following command to find the appropriate NTP software:
yum search ntp
Select a package to install. For example,
Install the package.
yum -y install ntp.x86_64
Enter the following command so that NTP starts when the server starts.
chkconfig ntpd on
Continue with the next section.
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 help page. If you have a private NTP server that is available to all hosts in your Magento deployment, you can use that server instead.
/etc/ntp.confin a text editor.
Look for lines similar to the following:
1 2 3
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:
1 2 3
server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.ntp.org
Save your changes to
/etc/ntp.confand exit the text editor.
Restart the service.
service ntp restart
service ntpd restart
dateto check the server’s date.
If the date is incorrect, make sure the NTP client port (typically, UDP 123) is open in your firewall.
ntpdate _[pool server hostname]_command. If it fails, search for the error it returns.
If all else fails, try rebooting the server.
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:
1 2 3 <?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:
1 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 your firewall allows traffic on port 80.
phpmyadmin 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.
Use phpmyadmin in a development system only. It can be a security issue in production.
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
rootor administrative user’s username and password.