Top Nav

Archive | Scripting

Install WordPress on Ubuntu virtual server at Media Temple

Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system.

The first step is to install packages:

Now set mysql service to start automatically:

Next create a database for wordpress:

Next we’ll download and install wordpress:

Now set the database credentials in /var/www/wp-config.php:

Finally point your web browser to the site and run the WordPress installer.

7

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:

1

PHP4 and PHP5 On The Same Server

If you have a server with PHP4 installed but need PHP5 on some websites then:

  1. Install a custom build of PHP5 to /opt/php5.
  2. Add lines like the following to your apache virtual host:

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

0

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

2

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