Howto setup eZ Publish on MediaTemple DV hosting
Verified to work February 2009.
If you have not already, set up the domain in the DV service..
http://www.webportalmaster.com/index.php/eng/MT-DV/Basics/Add-domain-to-DV-server
Be sure PHP is ON using the checkbox, be sure safe mode is OFF - unchecked.
- Upload an expanded archive via transmit, or more simply and much more quickly scp after the next step.
- Allow ssh access in the Plesk physical hosting setup screen. While in this screen, uncheck the box for php safe mode.
-
# scp /Volumes/misc/ezpublishcommunity-4.4.0-with_ezc-gpl.tar.gz doug@xx.xx.77.xx:/var/www/vhosts/catfishingguide.com/httpdocs/
# gunzip ezpublishcommunity-4.4.0-with_ezc-gpl.tar.gz
# tar -xvf ezpublishcommunity-4.4.0-with_ezc-gpl.tar - #cd ezpublishcommunity-4.4.0-with_ezc-gpl
-
# cp -R * /var/www/vhosts/catfishingguide.com/httpdocs/
# rm -Rf ezpublish-4.4.0-with_ezc-gpl/ - While waiting on upload, setup a new mysql database and add a user for that database. Take a screen shot of the settings for future reference. Save to iphoto so will have a backup record that is Touch able. The default db collation is correct on the mediattemple dv servers
- From a terminal window in os X, login ssh, credentials are the same as the ftp login for the site. May then su root for complete control.
- $ ssh "userlogin@256.256.256.256"
- userlogin@256.256.256.256's password:
- -bash-3.2$ su
- Password:
- [root@masterdomain webportalmaster.com]#
- chmod -R ug+rwx design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/storage autoload
- chgrp -R apache design extension settings settings/override settings/siteaccess settings/siteaccess/admin var var/cache var/storage autoload
Switch into the plesk control panel for the site, and create a new file named .htaccess in the httpdocs folder. If you know vi, you can skip the plesk.
vi .htaccess, paste, esc, :w, :q
*****Contents of .htacces file********
php_value allow_url_fopen 1
php_value date.timezone America/Chicago
php_value upload_max_filesize 12M
php_value memory_limit 96M
php_value max_execution_time 90
AddType text/x-vcard .vcf .vcard
Addtype text/calendar .ics
***************************************************
This reduces the system finetune warnings down to missing ImageMagick and missing PostgreSQL, neither is a real problem. Pasting from os X, into vi .htaccess misses the first few characters of the paste and throws a server misconfiguration error if not corrected prior to save. The vcard and ics entries are helpful if serving automated calendar and business card information.
A webmaster style email account set up just for this server is a good idea. Setup on mediatemple DV is straightforward, then enter the information regarding the account on the first screen after getting past the fine tune warnings. Then..
- Click the Next buttons until the Database initialization page. This page requires the username and password set up earlier for the database.
- Server is localhost.Leave the language at English-UK, this will simplify working with the site later.
- Tick the selector next to eZ flow and click next. This part may take a while, because it is actually downloading the latest eZ Flow into the file structure.
- Click next a few more times until get to Site details page.
- Here, the database that was setup earlier should be listed, if other databases were previously set up, may need to drop down the selector to get it. Click Next
- The User Path and Admin Path contain ezflow in the names. Change the "ezflow" to something more site specific. Otherwise the urls will be built with ezflow in the name. Since this site is webportalmaster, I replace the text "ezflow" with "wpm".
- Next window, set a very good password and a good working email address for admin contact. If you want the publicity, fill in your first and last name in edit fields.
- Clicking next brings up Site registration. Registration is optional. But most importantly, several key site parameters are included in the registration email text area. May want to take a quick look at the actual server setup before proceeding with the Next button.
*****Mediatemple DV server-February 9, 2009*************************
Site info:
Site package - ezflow_site
Title - eZ Flow
URL - http://www.webportalmaster.com/index.php/wpm_site
Admin URL - http://www.webportalmaster.com/index.php/wpm_site_admin
Access type - url
Access value - wpm_site
Web server info:
Version - Apache/2.2.3 (CentOS)
PHP info:
Version - 5.2.6
OS info
Name - Linux2.6.9-023stab048.4-enterprise #1 SMP Fri Jul 11 18:31:01 MSD 2008 i686
Database info:
Type - MySQL
Driver - ezmysql
Email info:
Transport - sendmail
Image conversion:
ImageGD extension was found and used.
Regional info:
Primary - eng-GB
Additional - eng-GB
Critical tests
directory_permissions - Success
phpversion - Success
database_extensions - Success
image_conversion - Success
open_basedir - Success
safe_mode - Success
memory_limit - Success
execution_time - Success
magic_quotes_runtime - Success
allow_url_fopen - Success
accept_path_info - Success
php_session - Success
file_upload - Success
zlib_extension - Success
dom_extension - Success
timezone - Success
Other tests:
php_magicquotes - Success
mbstring_extension - Success
imagegd_extension - Success
imagemagick_program - Failure
database_all_extensions - Failure
php_register_globals - Success
texttoimage_functions - Success
*****************************************************
- Next, presents links to login to anonymous and admin eZ sites. These links open new pages, so can click them both to verify both are correctly set up and working.
- Back in the SSH terminal window, make extension and design folders in eZ file system editable by the plesk user. eZ install chown to apache on the sub-folders, which creates problems if you need to edit contained files from the plesk interface.
Substitute the real plesk user for pleskuser in following lines.
[httpdocs]# chown -R pleskuser extension/
[httpdocs]# chown -R pleskuser design/
The information above is correct, it may appear to require chgrp, but look into the subfolders and you will see why the above is correct
- Logout of the ssh session by typing "exit" at the command prompt twice, once for root, again for admin.
- In the mediatemple domain setup, set ssh access back to "forbidden"
