Article ID: 6774, created on Oct 15, 2009, last review on May 11, 2014

  • Applies to:
  • Plesk Billing


If you have a Red Hat-like system and need to install Plesk Billing standalone version, you need to prepare your system to meet minimum requirements.

Please follow these steps in order to configure your system:

1. Run the sestatus command to make sure there is no selinux enabled.

[root@localhost ~]# sestatus | grep status
SELinux status:                 enabled

If it is enabled, change the SELINUX=enforcing line by SELINUX=disabled in /etc/selinux/config

In order to apply the changes, you need to reboot the system.

Please double-check that selinux is disabled after reboot:

[root@localhost ~]# sestatus
SELinux status:                 disabled

2. Make sure there is no firewall running:

[root@localhost ~]# chkconfig iptables off

[root@localhost ~]# chkconfig --list | grep iptables
iptables        0:off   1:off   2:off   3:off   4:off   5:off   6:off

[root@localhost ~]# /etc/init.d/iptables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]

3. Install httpd, php, and mysql:

# yum -y install httpd php mysql-server

4. Next, install the following php modules:

# yum -y install php-mysql php-gd php-xml php-mbstring

5. Backup php.ini just in case:

# cp -p /etc/php.ini /root/php.ini_backup

Then modify php.ini configuration settings to meet these requirements:

open_basedir - none (or blank)
memory_limit - at least 64M or disabled
safe_mode - off
register_long_arrays - on
error_reporting - 2039 (E_ALL & ~E_NOTICE)

alternatively, you may use the following commands to aut:

[root@localhost ~]# sed -i -e 's/^memory_limit\s\+=\s\+16M/memory_limit = 64M/' /etc/php.ini
[root@localhost ~]# sed -i -e 's/^register_long_arrays\s\+=\s\+Off/register_long_arrays = On/' /etc/php.ini

6. Download Zend Optimizer from for Linux x86 to /root directory and untar it:

[root@localhost ~]# tar -xvzpf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

7. Place to the directory which corresponds to your version of PHP.

# cp /root/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_1_x_comp/ /usr/lib/php/modules/

You may check the required directory in this way:

# php -i | grep extension_dir

Then add the following string to php.ini file:

# echo "zend_extension= /usr/lib/php/modules/" >> /etc/php.ini

8. Restart Apache web-server:

# /etc/init.d/httpd restart

9. Go to the web-accessible folder on your server /var/www/html/ and create phpinfo.php file with the following content <?php phpinfo(); ?> :

# echo '<?php phpinfo(); ?>' >> /var/www/html/phpinfo.php

10. Open it in your browser and check php requirements once again  http://server_ip_address/phpinfo.php

11. Start mysql server:

# /etc/init.d/mysqld start

Set a root password:

# /usr/bin/mysqladmin -u root password 'secure_password_here'

Create a new database:

# mysqladmin -u root -h localhost -p create pleskbilling

Create a new mysql user  and grant it all privileges on the new database::

mysql> CREATE USER 'bill'@'localhost' IDENTIFIED BY 'securepass';
mysql> GRANT ALL PRIVILEGES ON pleskbilling.* TO 'bill'@'localhost'; 

12. Download Zend encrypted Parallels Plesk Billing fileset to /var/www/html directory:

# cd /var/www/html
# wget

13. Untar the fileset:

# tar -xvzpf plesk-billing-zend-6.0.3-20090515.17.tar.gz

14. Open this link in your browser http://server_ip_address/plesk-billing/admin/install/

15. Accept the terms of license agreement and press Continue

16. Leave I will manually edit my config files checkbox selected and insert mysql access information which was configured in above-mentioned steps.

Click Save and Continue button at the bottom of the page and click OK for javascript window asking about confirmation.

17. Create config.php file:

# vi /var/www/html/plesk-billing/lib-billing/include/config/config.php

Copy/Paste the newly generated config.php file entry from your browser into this file and save the changes.

18. Go to the installation area in your browser and click Continue

Check if database connection is ok and if Critical requirements are satisfied and click Continue
Confirm secure URL settings.
Click Use free version button to install 10 clients free version.

19. Fill in  Administrator Information. Please note that you will be able to change this later.

Click Continue and wait until database building process finishes.

20. Once installation is completed, remove the "install" directory before you start using the product.

You may do this from command line in the following way:

# rm -rf /var/www/html/plesk-billing/admin/install

21. Congratulations! You are done! You may access your Plesk Billing at http://server_ip_address/plesk-billing/admin/login.php

08b3edb77202fffdd656b40acff117c1 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF