Getting Started

ID #379

What do I need to know about the Debian 5 environment introduced in May 2009?

Applies to: Grid System

Attention: Modwest introduced the "Debian 5" hosting environment in May 2009.  Debian 5 has been superceded by the Debian 6 hosting environment, which you should consider unless you specifically need PHP 5.2.x.  As of April, 2011, the Debian 5 environment will receive no further updates.  The information below remains for historical purposes.

Before Switching

  • If you are using Ruby on Rails, do not switch. The new environment is not prepared for RoR.
  • Although most accounts switch seamlessly, be prepared to update applications and configurations for any incompatibilities that occur.

How to Switch

There is an interface in OnSite that will allow you to select which hosting environment you desire.  

Common Questions

What is different?

All the software we provide is newer. In particular, these common scripting languages:

  • PHP 4.4.6 (or 5.0.4) to PHP 5.2.6
  • Perl 5.6.1 to Perl 5.10.0
  • Python 2.1 to Python 2.5

And these other frequently-used packages:

  • ImageMagick 5.5.7 to ImageMagick 6.3.7

You can get a good idea of the new programming environment by looking at our PHP Info, PEAR Info, and Perl Modules.

Is there downtime involved when switching environments?

Generally, no. Most hosting accounts will switch over without any downtime. If you have some applications which are not the latest version, they may break and require you to update. We recommend that you update all of your third-party applications to the newest version available before switching environments.

How long does the switch take?

The operation takes about 5 minutes, although your site will remain available during this time.

It looks like my applications are not working and need much work to be compatible with the new platform. Can I switch back?

Yes, you can, although we recommend working through the errors, for the old environment is deprecated. Switching back takes the same length of time as the initial transition.

Will my files or directory tree change?

No. Any files that you have uploaded will remain the same.

I am using one of your experimental versions of PHP, will this be a problem?

No, when you switch, there will be only one version of PHP available, PHP 5.2.6. Your scripts will automatically use that version.

I am using PHP4 still, and I've made a lot of configuration customizations in my /conf/php.ini. Will they work in the new environment?

PHP's configuration options have changed, in some places drastically, from php4 to php5. It may just be easier to copy /etc/php5/php.ini to /conf/php.ini and modify it as you see fit.

Are all the same software in the new environment?

Mostly. We've worked hard to make sure that all the major programs you need are in the new environment, like PHP, Perl, and their extensions. However, there are thousands of other utilities potentially used that we may have missed. If you require software that we do not have, let us know, and we can install most anything for you.

Do my shell, FTP, mailbox, or database credentials change?

No. All of your users will remain untouched by the transition.

Typical Adjustments

If you have any custom PHP code, you should review php.net's migration appendices:

Those in a hurry may find this summary list of PHP changes more helpful:

  • PHP5's object oriented syntax is greatly changed from PHP4. You can make PHP4 act more like PHP5 in this case with the configuration directive, zend.ze1-compatibility-mode
  • PHP uses a new XML extension.
  • Some extensions, like pfpro are no longer available in PHP5.
  • register_globals is off by default.
  • mnogosearch does not work in the new environment.

Last update: 2017-01-10 12:58
Author: FAQ Admin
Revision: 1.5

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 5 (1 Vote)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:
If you get a "No input file specified" error:

(1) You may be sending a non-existent file to php.

Use mod_rewrite check to see if the file actually exists:

RewriteEngine on
Rewritecond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule \.*$ /404.php

* Here's a good explanation: http://jenseng.com/archives/000035.html

(2) You are trying to use clean URLS, like them.com/index.php/page.php=. Toggling cgi.fix_pathinfo ought to do resolve the error.
Added at: 2009-05-27 07:41

Comment of Anonymous:
We used $_SERVER["PATH_INFO"] to build "clean URLs" like "index.php/14".

After the upgrade to PHP5 we began getting the "No input file specified" error too.

Setting cgi.fix_pathinfo = 0 fixed it for us.

The guidance in the php.ini comments say "Default is 1. You should fix your scripts to use SCRIPT_FILENAME rather than PATH_INFO/PATH_TRANSLATED." so at some point we will modify the script to use SCRIPT_FILENAME

Added at: 2009-06-05 08:33