Differences between revisions 1 and 2
|Deletions are marked like this.||Additions are marked like this.|
|Line 67:||Line 67:|
More info at:
Trial Migration Webserver
Before a new webserver is to be setup (to replace orac) - a number of things need to be tested to see what works and what breaks with regards to Users Websites and increased functionality.
New Features for proposed Webserver ->
Move from Debian to Ubuntu.
Work all packages from APT (as much as possible).
Move from Apache1 to Apache2.
Provide suPHP functionality which a user can "turn on" themselves.
Provide PHP5 functionaility which a user can "turn on" themselves.
Others main ones....?
Sticky points ->
suPHP may 'break' some users websites/web applications.
PHP5 may/will 'break' some users websites/web applications.
Ideal Situation ->
Run PHP4 + mod_php seperate
Run PHP4 + suPHP seperate
Run PHP5 + mod_php (+ suPHP seperate optional)
After Testing - Current Situation (Using APT - and NO compiling from source.) ->
PHP4 + mod_php (libapache2-mod-php4) will not run together with PHP5 + mod_php (libapache2-mod-php5). People have managed to get the two working together by recompiling apache. So only 1 version of mod_php can run,: either mod_php4 or mod_php5.
suPHP will run seperately as a suPHP apache module, and can be activated on a user basis by using .htaccess Only 1 suPHP apache module can be run (without compiling) and will in-turn run only 1 version of PHP.
So - We can have the following setups ->
PHP4 + mod_php and PHP4 + suPHP
PHP4 + mod_php and PHP5 + suPHP
I think the last option #2 is the best. Those people who know and are willing to use suPHP will have a good knowledge of PHP and will be able to lead the way in using PHP5.
1. # Install Ubuntu dapper server 2. # Edit /etc/apt/sources.list and uncomment the two lines for universe packages. 3. apt-get install apache2 4. # get php4 + mod_php working ok on apache2 apt-get install php4-cli php4-common php4-cgi libapache2-mod-php4 php4-mysql 5. # Test Apache2 and PHP with phpinfo and web_uploads.php program 6. # Install suPHP - This should install fine - and add the apache suPHP module into /etc/apache2/mods-enabled apt-get install libapache2-mod-suphp suphp-common 7. # Edit /etc/apache2/mods-enabled/suPHP.conf and comment out AddHandler # AddHandler AddHandler x-httpd-php .php .php3 .php5 8. # Edit /etc/suphp/suphp.conf and change this line: check_vhost_docroot=false # This is to allow php files to be served from apache userdir in the default vhost www.skynet.ie/~user 9. # Restart apache - PHP4 + mod_php should be default and serve files out as .php 10. # In order to activate PHP4 + suPHP on a user specific level the following .htaccess file is required: RemoveType application/x-httpd-php .php .phtml .php3 AddHandler x-httpd-php .php 11. #Config #1 from above is now working, i.e. PHP4+mod_php and PHP4+suPHP (optional) 12. #Config #2 -> 13. apt-get install php5-cli php5-common php5-cgi 14. This will install PHP5 and will update suPHP to use it instead. 15. viloa - PHP4+mod_php and PHP5+suPHP
More info at: