Category: PHP

Turn on PHP register_globals with .htaccess file

It is of course a bad idea to write code that depends on register_globals for security reason, but sometimes when faced with old code it’s a necessary evil. You can turn on register_globals for a site or directory by adding the following line to your .htaccess file:

Read More »

PHP4 and PHP5 On The Same Server

If you have a server with PHP4 installed but need PHP5 on some websites then: Install a custom build of PHP5 to /opt/php5. Add lines like the following to your apache virtual host:

You might also find the RemoveHandler directive handy to disable PHP4.

Read More »

PHP4 on CentOS5/RHEL5

If you need PHP4 on a CentOS5/RHEL5 server then you’ll find the RPMs linked below very handy. They install to /opt/php4 and can coexist with a default PHP 5 install. The included conf.d/php4.conf file includes sample lines to run it as a CGI or as a module. RPMs are here: http://repo.conforge.com/conforge/CentOS/5/i386/RPMS/ http://repo.conforge.com/conforge/CentOS/5/x86_64/RPMS/ See this URL for details to add the yum repo: http://wiki.conforge.com/wiki/Linux-PHP4cgiAndPHP5on+CentOS5

Read More »

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): 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. Set Apache, MySQL and FTP service to start on boot:

Start Apache, MySQL and FTP:

Set MySQL root password:

Download PHPList distribution:

Unpack and install

Add FTP user and set file ownership:

Create database:

Configure firewall:

From the security level menus, set SELinux to disabled, then customize and allow incoming WWW and FTP. Setup PHPList config file:

In the editor, set database parameters. In your web browser go to:

You’ll be prompted to initialize the database. Follow the installation screens to complete the install process. The basic install is now complete. The PHPList admin screens are located at:

Read More »

Upgrade CentOS4 to PHP 5.2.9 with SQLite

Here’s an update to this article: Upgrade CentOS4 to PHP 5.2.9 The spec file has been modified to build the php-sqlite module which is needed by Plesk Sitebuilder. Here’s the new package: php-5.2.9_for_centos4.2.tar.gz

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.