Top Nav

Archive | PHP

PHPList Install to RackSpace Cloud Server (CentOS)

Here’s a step-by-step to setup a RackSpace Cloud Server with CentOS for PHPList (http://phplist.com):

  1. Install PHP, PHP IMAP module, PHP MySQL module, MySQL Server and FTP server:

    Apache and a number of other related packages are installed automatically as dependencies.

  2. Set Apache, MySQL and FTP service to start on boot:

  3. Start Apache, MySQL and FTP:

  4. Set MySQL root password:

  5. Download PHPList distribution:

  6. Unpack and install

  7. Add FTP user and set file ownership:

  8. Create database:

  9. Configure firewall:

    From the security level menus, set SELinux to disabled, then customize and allow incoming WWW and FTP.

  10. Setup PHPList config file:

    In the editor, set database parameters.

  11. In your web browser go to:

    You’ll be prompted to initialize the database. Follow the installation screens to complete the install process.

  12. The basic install is now complete.

    The PHPList admin screens are located at:

4

Upgrade CentOS4 to PHP 5.2.9

To facilitate upgrading CentOS 4 servers to PHP 5.2.9 we created a new source RPM. This work was based on previous RPMs by Jason at Utter Ramblings (http://www.jasonlitka.com).

Here’s a tar/gz with all the source and binary RPMS:

http://blogs.reliablepenguin.com/files/php-5.2.9_for_centos4.tar.gz

Contained in the package are the following files:

freetds-0.64-1.el4.rf.i386.rpm
freetds-devel-0.64-1.el4.rf.i386.rpm
libmcrypt-2.5.7-1.2.el4.rf.i386.rpm
libmcrypt-devel-2.5.7-1.2.el4.rf.i386.rpm
libtidy-0.99.0-12.20070228.jason.1.i386.rpm
libtidy-devel-0.99.0-12.20070228.jason.1.i386.rpm
pcre-6.6-1.1.i386.rpm
pcre-devel-6.6-1.1.i386.rpm
php-5.2.5-jason.2.src.rpm
php-5.2.9-rp.1.i386.rpm
php-5.2.9-rp.1.src.rpm
php-5.2.9.tar.gz
php-bcmath-5.2.9-rp.1.i386.rpm
php-cli-5.2.9-rp.1.i386.rpm
php-common-5.2.9-rp.1.i386.rpm
php-dba-5.2.9-rp.1.i386.rpm
php-devel-5.2.9-rp.1.i386.rpm
php-embedded-5.2.9-rp.1.i386.rpm
php-gd-5.2.9-rp.1.i386.rpm
php-imap-5.2.9-rp.1.i386.rpm
php-ldap-5.2.9-rp.1.i386.rpm
php-mbstring-5.2.9-rp.1.i386.rpm
php-mcrypt-5.2.9-rp.1.i386.rpm
php-mhash-5.2.9-rp.1.i386.rpm
php-mssql-5.2.9-rp.1.i386.rpm
php-mysql-5.2.9-rp.1.i386.rpm
php-ncurses-5.2.9-rp.1.i386.rpm
php-odbc-5.2.9-rp.1.i386.rpm
php-pdo-5.2.9-rp.1.i386.rpm
php-pgsql-5.2.9-rp.1.i386.rpm
php-snmp-5.2.9-rp.1.i386.rpm
php-soap-5.2.9-rp.1.i386.rpm
php-tidy-5.2.9-rp.1.i386.rpm
php-xml-5.2.9-rp.1.i386.rpm
php-xmlrpc-5.2.9-rp.1.i386.rpm

If you want to build install the binary distribution just do this:

or you can rebuild the source rpm as follows:

If you’ve not previously done so, you might need to install the rpm-build package in order to use the rpmbuild command. Also there will probably be some other dependencies that you have to install with yum to get the build to run.

After the build completes, just install the new binary packages:

1

Turn on register_long_arrays for PHP on Plesk

Add the following lines to the vhost.conf file for the site:

And then do:

/usr/local/psa/admin/sbin/websrvmng -a -v

1

Turn on allow_url_fopen for PHP in Plesk

Add the following to the vhost.conf file:

2