DreamHost Log Archives - David Yin's Blog https://www.yinfor.com/archives/dreamhost-log Tech geek. Life geek. Sat, 21 Apr 2018 06:31:34 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.yinfor.com/wp-content/uploads/2016/09/cropped-icon-120x120.png DreamHost Log Archives - David Yin's Blog https://www.yinfor.com/archives/dreamhost-log 32 32 Dreamhost retired Backup service for Shared hosting users https://www.yinfor.com/2015/07/4449.html https://www.yinfor.com/2015/07/4449.html#respond Sat, 25 Jul 2015 07:29:13 +0000 https://www.yinfor.com/?p=4449 Dreamhost retired Backup service now. A month ago, we let you know that the DreamHost Personal Backup feature was retiring. That day has come, Personal Backup has been turned off permanently. Please feel free to submit a support request through...

The post Dreamhost retired Backup service for Shared hosting users appeared first on David Yin's Blog.

]]>
Dreamhost retired Backup service now.

A month ago, we let you know that the DreamHost Personal Backup feature was retiring. That day has come, Personal Backup has been turned off permanently.

Please feel free to submit a support request through the DreamHost panel if you have any questions or concerns! Please include “personal backup” in the subject.

Happy DreamHost Improvement Bot

 

DH_Banner_300x250

The post Dreamhost retired Backup service for Shared hosting users appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2015/07/4449.html/feed/ 0
End of Life of Dreamhost Personal Backup https://www.yinfor.com/2015/06/end-of-life-of-dreamhost-personal-backup.html https://www.yinfor.com/2015/06/end-of-life-of-dreamhost-personal-backup.html#respond Wed, 24 Jun 2015 18:30:00 +0000 https://www.yinfor.com/?p=4435 Got an email from Dreamhost this morning. It announced that Dreamhost Personal Backup is retired. The last day of access of the data on my backup account is 2015-7-24. I was using Dreamhost Personal Backup to backup my website database...

The post End of Life of Dreamhost Personal Backup appeared first on David Yin's Blog.

]]>
Got an email from Dreamhost this morning. It announced that Dreamhost Personal Backup is retired. The last day of access of the data on my backup account is 2015-7-24.

I was using Dreamhost Personal Backup to backup my website database and sites periodically.  The free capacity is 50GB. It was a wonderful place to do the backup with ftp protocol.

Let us look at the email from DreamHost.

 

We’re writing to tell you that the Personal Backup feature you’ve been using has become too dated to be sustainable, and is being retired. Please note that starting 2015-07-24 Personal Backup will be turned off permanently. If you decide you don’t want to keep your data, no action is necessary.

If you would like to preserve your data, you should download it before 2015-07-24. Instructions for how to do so are available here.

Dreamhost did provide an option to store data. DreamObjects. It is kind of CDN, oh no. It is similar to Amazon S3.  It is a cloud storage. Pay as you go.

DreamObjects’ storage is only 2.5¢/GB per month and downloads are 5¢/GB. Uploads are free!

dreamhost-backup-retired

Go to Dreamhost Cloud Storage, or DreamObjects, to have a look.

The post End of Life of Dreamhost Personal Backup appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2015/06/end-of-life-of-dreamhost-personal-backup.html/feed/ 0
Upgrade selfoss to v2.6 https://www.yinfor.com/2013/04/upgrade_selfoss_to_v26.html https://www.yinfor.com/2013/04/upgrade_selfoss_to_v26.html#respond Wed, 10 Apr 2013 14:55:28 +0000 https://www.yinfor.com/?p=1124 Selfoss programe is very helpful to me. There is also some issues, such as duplicate items. Anyway, I did the upgrade from 2.4 to v2.6 today. The upgrade procedures are simple. See following upgrade guide. For me, I just did...

The post Upgrade selfoss to v2.6 appeared first on David Yin's Blog.

]]>
Selfoss programe is very helpful to me. There is also some issues, such as duplicate items.

Anyway, I did the upgrade from 2.4 to v2.6 today.

The upgrade procedures are simple. See following upgrade guide. For me, I just did step 1, 2,3.

1. backup your database and your “data” folder
2. (IMPORTANT: don’t delete the “data” folder) delete all old files and folders excluding the folder “data”
3. upload all new files and folders excluding the data folder (IMPORTANT: also upload the invisible .htaccess files)
4. Rename your folder /data/icons into /data/favicons
5. Delete the files /public/all.css and /public/all.js
6. Clean your browser cache
7. insert your current database connection and your individual configuration in config.ini. Important: we change the config.ini and add new options in newer versions. You have to update the config.ini too.

Changelog

Version 2.6
* fixed OPML import for other formats (thanks a lot to Remy Gardette)
* fix deletion of sources (no longer bad request)
* disable tag click on smartphone
* shortcuts mark/unmark as read and star/unstar also available on closed articles
* fix tag list refresh

Version 2.5
* new navigation with right/left cursor (thanks a lot to jicho)
* replace • for IE compatibility
* fix re-initialize entry events on screen width change (thanks a lot to Sean Rand)
* allow optional userdefined user.css (thanks a lot to Jean Baptiste Favre)
* some smaller css tweaks (thanks a lot to Sean Rand)
* new parameter use_system_font for using Arial instead of Open Sans
* new italian language file (thanks a lot to David Chionne)
* fix duplicate article fetching on uids with more than 255 characters
* add integrated json api
* add error handling for feeds with wrong link
* new swedish translation (thanks a lot to andersgd)

The post Upgrade selfoss to v2.6 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2013/04/upgrade_selfoss_to_v26.html/feed/ 0
selfoss release 2.4 – replacement of Google Reader https://www.yinfor.com/2013/04/selfoss_release_24.html https://www.yinfor.com/2013/04/selfoss_release_24.html#respond Mon, 08 Apr 2013 00:27:56 +0000 https://www.yinfor.com/?p=1123 Everyone knew Google Reader is going to retire on July 1, 2013. So I make a decision that I will not use other RSS reader service. I would like to have my personal Feed Aggregator site. Selfoss is an OpenSource...

The post selfoss release 2.4 – replacement of Google Reader appeared first on David Yin's Blog.

]]>
Everyone knew Google Reader is going to retire on July 1, 2013. So I make a decision that I will not use other RSS reader service. I would like to have my personal Feed Aggregator site.

Selfoss is an OpenSource replacement of Google Reader. Look at the following features.

  • web based rss reader
  • universal aggregator
  • open source and free
  • easy extendable with an open plugin system (write your own data connectors)
  • mobile support (Android, iOS, iPad)
  • use selfoss to live stream and collect all your posts, tweets, feeds in one place
  • lightweight PHP application with less than 2 MB
  • supports MySQL, PostgreSQL and Sqlite Databases
  • OPML Import
  • easy installation: upload and run

I installed selfoss 2.3 when I heard the RIP news of Google Reader.  Now it is v2.4.

I am just upgrade my selfoss to v2.4.

The release notes of v2.4. I make the one bold I like.

Version 2.4
* prevent error on icons parsing error
* new homepage parameter (thanks a lot to Jean Baptiste Favre)
* new button for open an articles source
* no error message if no unread item is available and mark all as read was pressed
* improve logger
* readability is now available as spout instead as global parameter
* new share buttons for google+, twitter and facebook
* mysql use longtext for articles content
* improved detection of mobile devices
* allow more tags in articles content
* show unread items per tag in taglist (thanks a lot to Fedor Bezrukov)
* show list of sources for filtering (thanks a lot to Fedor Bezrukov)
* use more eye catching unread stats in main navigation
* show source title in selfoss RSS feed (thanks a lot to Darkwing1)
* load sources for update by last update time (thanks a lot to Lars Formella)
* Opening feed search focuses the search input field
* Scroll blockquotes and pre on overflow (especially good for mobile devices)
* new option for automatically mark items as read
* new share buttons for email and pocket (thanks a lot to Francis Noel)
* new shortcut r for reloading the current list
* new internationalization (language files for German, English, French, Turkish, Dutch, Czech, Russian, Latvian, traditional and simplified Chinese included)
* make article id generation more reliable
* fix some font issues
* fix JavaScript error in login screen
* autofocus username on login
* add open in new window button for mobile view
* allow choosing tags in article list
* concurent multiples updates makes no longer duplicates entries
* Reload items on mark as read
* anonymizer support
* selfoss rss feed support tag filtering (?tag=) (thanks a lot to Francis Noel)
* fix tag render bug

I installed it on Dreamhost, the hosting place I am using for more than 8 years. This is my seloss site: http://r.yinfor.com/

Update: I install the latest one 2.5 from GitHub, it fixed the bug 208:

fix duplicate article fetching on uids with more than 255 characters

The post selfoss release 2.4 – replacement of Google Reader appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2013/04/selfoss_release_24.html/feed/ 0
How to install SugarCRM ce on Dreamhost https://www.yinfor.com/2013/01/how_to_install_sugarcrm_ce_on_.html https://www.yinfor.com/2013/01/how_to_install_sugarcrm_ce_on_.html#respond Mon, 28 Jan 2013 01:07:08 +0000 https://www.yinfor.com/?p=1101 Here is the guide to show you how to install SugarCRM Community Edition on Dreamhost share hosting plan. Step 1: Set up a new domain, subdomain, or folder for Sugar. Step 2: Set up a new MySQL database in Dreamhost...

The post How to install SugarCRM ce on Dreamhost appeared first on David Yin's Blog.

]]>
Here is the guide to show you how to install SugarCRM Community Edition on Dreamhost share hosting plan.

Step 1:
Set up a new domain, subdomain, or folder for Sugar.

Step 2:
Set up a new MySQL database in Dreamhost Web Panel. Write down the mysql host name, user name, password and database name.

Step 3:
Download the latest Community Edition of SugarCRM. It is free version. Then, unzip into a folder such as /home/yourUserName/sitename.yourdomain.com/CRM/

Step 4:
To enable full functionality of SugarCRM (specifically, uploading modules and upgrades (especially over 7MB)) under PHP 5.3, you will need to add the following lines to ~/.php/5.3/phprc (create it if it doesn’t exist):

post_max_size = 40M

upload_max_size = 40M

max_input_time = 999

memory_limit = 128M

upload_max_filesize = 40M

suhosin.executor.include.whitelist = upload

Then, do a killall -9 p0hp53.cgi to restart PHP 5.3.

Step 5:

From the web browser, enter the web address of the Sugar folder. http://sitename.yourdomain.com/CRM/

It will show the installation wizard

Step 6

The informatin sheet will ask for the folders and files permission to be changed to writeable by Web Server user.

  • cache
  • custom
  • data
  • modules
  • config.php

The rest is simple, I think it is no problem to everyone. You can choose to install it without sample data or with sample data.

If the permissions are wrong, it will looks wired on layout.

The post How to install SugarCRM ce on Dreamhost appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2013/01/how_to_install_sugarcrm_ce_on_.html/feed/ 0
Pro and Con of Dreamhost https://www.yinfor.com/2012/03/pro_and_con_of_dreamhost.html https://www.yinfor.com/2012/03/pro_and_con_of_dreamhost.html#respond Mon, 12 Mar 2012 19:31:04 +0000 https://www.yinfor.com/?p=962 I am using Dreamhost for more than 7 years. It is not perfect, but trustful. There are some Pro and Con lists. It is my list below. Pro Clearity: DreamHost status tells what happen on their network, server, services. Dreamhost...

The post Pro and Con of Dreamhost appeared first on David Yin's Blog.

]]>
I am using Dreamhost for more than 7 years. It is not perfect, but trustful.
There are some Pro and Con lists. It is my list below.
Pro
Clearity:
DreamHost status tells what happen on their network, server, services.
Dreamhost newsletters provide a overall information update every month.
Support Knowledge Wiki, easy to find the answer before to ask the support.
Response time of support ticket is better than my expect.
A lot of program for One-Click-Installation
User friendly Cpanel.
Most important is the price. It is $107.40/year for unlimited space, unlimited Bandwidth, One free domain, etc. Use dreamhost coupon G2SAVING to get ONE MORE FREE DOMAIN.


Con
Yes, as I said, nothing is perfect.
When you use too much CPU, they may kill the threads automatically.
I recommend Dreamhost to small business.

The post Pro and Con of Dreamhost appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2012/03/pro_and_con_of_dreamhost.html/feed/ 0
How to Synchonize files between two Dreamhost accounts https://www.yinfor.com/2011/01/how_to_synchonize_files_betwee.html https://www.yinfor.com/2011/01/how_to_synchonize_files_betwee.html#respond Mon, 24 Jan 2011 12:20:17 +0000 https://www.yinfor.com/?p=878 If you have two Dreamhost ftp account with SSH permission, and you want to transfer the content from account A to Account B, you need following script to do it. It is simply one line shell command. I save it...

The post How to Synchonize files between two Dreamhost accounts appeared first on David Yin's Blog.

]]>
If you have two Dreamhost ftp account with SSH permission, and you want to transfer the content from account A to Account B, you need following script to do it.
It is simply one line shell command. I save it into a sh file. Schedule to run it every two hours.
Here is the script for you.
Name of Account A: ftp2010
Host name for ftp2010: hosting.mydomain.com
Name of Account B: ftp2011
Host name of ftp2011: hosting.yourdomain.com
The target is to transfer all files under ftp2010 to ftp2011 at hosting.yourdomain.com


1) SSH to hosting.mydomain.com with ftp2010 account
2) Run following command

rsync -e  ssh -av /home/ftp2010/ ftp2011@hosting.yourdomain.com:/home/ftp2011/

It will promote you to enter the password ftp2011. Just enter it and press return.


3) After finished the transferring, the files and folders are all in ftp2011 account and same as ftp2010
Because I want it automatically, I saved it into a sh file named copyfiles.sh. Add a crontab task in Dreamhost web panel. Run it every two hours.
There is still a problem for password entering. I doing search on Dreamhost wiki and find the post of passwordless ssh login. It can solve this problem.

The post How to Synchonize files between two Dreamhost accounts appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2011/01/how_to_synchonize_files_betwee.html/feed/ 0
Solution of Dreamhost memory limitation https://www.yinfor.com/2010/08/solution_of_dreamhost_memory_l.html https://www.yinfor.com/2010/08/solution_of_dreamhost_memory_l.html#comments Mon, 09 Aug 2010 23:15:13 +0000 https://www.yinfor.com/?p=784 The previous post I wrote explain why 500 internal error happen when MovableType publishing. At the last, I promise that I will tell you how to solve this problem without upgrading your sharing host to VPS. KEY point: The 120MB...

The post Solution of Dreamhost memory limitation appeared first on David Yin's Blog.

]]>
The previous post I wrote explain why 500 internal error happen when MovableType publishing.
At the last, I promise that I will tell you how to solve this problem without upgrading your sharing host to VPS.
KEY point: The 120MB memory limit is per user.
If you know that, the answer is simple.
In one Dreamhost account, you can create many, many users. So
Create a new user for Movabletype powered blog.


Follow my step by step howto.
1) Login https://panel.dreamhost.com
2) Domains > Manage Domain
3) Click EDIT link of the domain which has Movabletype on.
4) Just under Users, Files, and Paths
Click the pulldown menu of users, choose create a new user.
5) After enter the new user name, then new option shows that
Move files to the new user?
Keep it as checked.
6) Click the blue “Change Settings” button.
After few minutes, all files under this domain, will be copied to new user account.
Then the 500 internal error gone.
You can use linux command top to check how much memory used per user.

The post Solution of Dreamhost memory limitation appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2010/08/solution_of_dreamhost_memory_l.html/feed/ 4
Dreamhost has 120 MB memory limit for a shared account https://www.yinfor.com/2010/08/dreamhost_has_120_mb_memory_li.html https://www.yinfor.com/2010/08/dreamhost_has_120_mb_memory_li.html#comments Thu, 05 Aug 2010 15:52:54 +0000 https://www.yinfor.com/?p=783 Because my blog is hosted on Dreamhost, the limitation of shared account is always bothering me. About one or half years ago, any time I rebuild this blog, 500 internal error came out. I have to try a lot of...

The post Dreamhost has 120 MB memory limit for a shared account appeared first on David Yin's Blog.

]]>
Because my blog is hosted on Dreamhost, the limitation of shared account is always bothering me.
About one or half years ago, any time I rebuild this blog, 500 internal error came out. I have to try a lot of time to rebuild, maybe 10% success.
I have no idea how to solve this problem. Previously I knew Dreamhost has CPU time limit. Later, they remove this limit. But they did have some limitation for shared account.
The following is the response from Dreamhost support.

It’s being killed for requesting an amount of RAM (memory) that puts the
total usage for the account over the limit:
2010-08-05 10:58:17 procwatch2 INFO: Process(pid=28759, name=’mt.cgi’,
uid=davidyin(1659020), tty=None, cpu=49.7, rss=52068.0, vsize=102664.0):
kill for total RAM
That’s from the process monitoring logs. It’s likely the amount of data
it’s needing to do its job isn’t the problem, but your total usage is so
close to the limit, that’s puts it over. In fact, you’ve got more than 10
thousand kills in the logs, so this is not an isolated occurrence. Your
total usage is hitting the RAM limit very often, so it’s possible one or
more of your sites has a bit of high usage, and needs to be addressed to
reduce the occurrence of this. This article may help you track down
what’s using the most memory:


Yes, I think I put too many sites on my account on Dreamhost. The memory is the bottleneck.
I run linux command “top” in ssh window, when I rebuild the blog. Almost the maximum memory I use is about 120MB.
So I think 120MB memory is the limit for shared account.
If you want to know how I solve it without upgrade to DH VPS, see my next post.

The post Dreamhost has 120 MB memory limit for a shared account appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2010/08/dreamhost_has_120_mb_memory_li.html/feed/ 2
How to increase Yslow score from C to B at Dreamhost https://www.yinfor.com/2009/07/how_to_increase_yslow_score_fr.html https://www.yinfor.com/2009/07/how_to_increase_yslow_score_fr.html#comments Wed, 22 Jul 2009 11:15:55 +0000 https://www.yinfor.com/?p=705 I have a small site hosted on Dreamhost. Yslow Score with default setting is C, or 77. Later I do the following optimization to increase it to B, or 89. Based on Yslow v2 test. The key is to change...

The post How to increase Yslow score from C to B at Dreamhost appeared first on David Yin's Blog.

]]>
I have a small site hosted on Dreamhost.
Yslow Score with default setting is C, or 77.
Later I do the following optimization to increase it to B, or 89. Based on Yslow v2 test.
The key is to change .htaccess file.
Put following content into .htaccess file on root of the site.

FileETag none
ExpiresActive On
ExpiresDefault A86400
ExpiresByType application/javascript A8640000
ExpiresByType application/x-javascript A8640000
ExpiresByType text/css A8640000
ExpiresByType image/x-icon A8640000
ExpiresByType image/gif A6048000
ExpiresByType image/png A6048000
ExpiresByType image/jpeg A6048000
ExpiresByType application/pdf A6048000
ExpiresByType text/html A300
AddOutputFilterByType DEFLATE text/css application/javascript

The second improvement I made is do not use external domain’s images. Put all images on the same site. It reduce the DNS loolup time.
It took me about 10 minutes to implement this optimization.

The post How to increase Yslow score from C to B at Dreamhost appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2009/07/how_to_increase_yslow_score_fr.html/feed/ 1
Upgrade Joomla and Gallery through Dreamhost 1-Click install https://www.yinfor.com/2008/11/upgrade_joomla_and_gallery_thr.html https://www.yinfor.com/2008/11/upgrade_joomla_and_gallery_thr.html#comments Thu, 27 Nov 2008 14:26:59 +0000 https://www.yinfor.com/?p=623 Today, I upgraded about 5 sites through Dreamhost One-Click installation facility. It is simply to me to upgrade them. I click upgrade, and sit to wait the confirm email. Only do something when I get the confirmation of finish upgrading....

The post Upgrade Joomla and Gallery through Dreamhost 1-Click install appeared first on David Yin's Blog.

]]>
Today, I upgraded about 5 sites through Dreamhost One-Click installation facility.
It is simply to me to upgrade them.
I click upgrade, and sit to wait the confirm email.
Only do something when I get the confirmation of finish upgrading.
No hands wet. No uploading, downloading.
The program I used through Dreamhost One-Click installation are WordPress, Gallery, phpBB, and Joomla!.

The post Upgrade Joomla and Gallery through Dreamhost 1-Click install appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2008/11/upgrade_joomla_and_gallery_thr.html/feed/ 1
Server Upgrade and Database moveing https://www.yinfor.com/2008/11/server_upgrade_and_database_mo.html https://www.yinfor.com/2008/11/server_upgrade_and_database_mo.html#comments Tue, 04 Nov 2008 12:42:01 +0000 https://www.yinfor.com/?p=618 Last weekend, the server which I put my Blog on, is upgraded based on the Dreamhost schedule. The new server is 64bit, and Linux is 64bit too. SO I have to rebuild my customized PHP on it, and doing a...

The post Server Upgrade and Database moveing appeared first on David Yin's Blog.

]]>
Last weekend, the server which I put my Blog on, is upgraded based on the Dreamhost schedule.
The new server is 64bit, and Linux is 64bit too.
SO I have to rebuild my customized PHP on it, and doing a lot of extension upgrade too.
Later I found I can not add new database and use the existing mysql host.
There is no option of “Use Hostname”.
I have to ask for upgrading databse too.
Today,they moved my MySQL database from alvin:ruano to my main MySQL server: lingling:myler.
Everything looks fine. If you find any strange issue, just comment here. Thank you.

The post Server Upgrade and Database moveing appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2008/11/server_upgrade_and_database_mo.html/feed/ 1
Dreamhost is down this morning https://www.yinfor.com/2008/10/dreamhost_is_down_this_morning.html https://www.yinfor.com/2008/10/dreamhost_is_down_this_morning.html#respond Wed, 29 Oct 2008 12:25:47 +0000 https://www.yinfor.com/?p=612 You may find my blog is not available this morning. It is happened because of the file server error of Dreamhost. It is fixed after two or three hours site down. I hope Dreamhost can make their service more reliable....

The post Dreamhost is down this morning appeared first on David Yin's Blog.

]]>
You may find my blog is not available this morning.
It is happened because of the file server error of Dreamhost.
It is fixed after two or three hours site down.
I hope Dreamhost can make their service more reliable. Then I can trust them more and move my commercial site on it.
OK. It works now. Enjoy it.

The post Dreamhost is down this morning appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2008/10/dreamhost_is_down_this_morning.html/feed/ 0
Install Zend Optimizer 3.3 on Customized PHP 5.2.3 https://www.yinfor.com/2008/05/install_zend_optimizer_33_on_c.html https://www.yinfor.com/2008/05/install_zend_optimizer_33_on_c.html#comments Fri, 09 May 2008 01:50:43 +0000 https://www.yinfor.com/?p=538 Now PHP 5.2.3 is installed on Dreamhost. If you don’t know how to do it, just refer to my previous post, Install customized PHP5 on Dreamhost. Let us see how to add Zend Optimizer support on your own PHP installation....

The post Install Zend Optimizer 3.3 on Customized PHP 5.2.3 appeared first on David Yin's Blog.

]]>
Now PHP 5.2.3 is installed on Dreamhost. If you don’t know how to do it, just refer to my previous post, Install customized PHP5 on Dreamhost.
Let us see how to add Zend Optimizer support on your own PHP installation.
1) Go to Zend official site. http://www.zend.com/
2) Find and download the Zend Optimizer 3.3. You may need sign an account to download it. To install it on Dreamhost, you may choose Linux x86 (32bit) (TAR.GZ) | 9.74MB | 3.3.3 package.
3) I suggest to download it through SSH.

wget http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

4) Decompress it.

tar xvfz ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz

5)

cd ZendOptimizer-3.3.3-linux-glibc23-i386

6) We use complied ZendOptimizer so file.

cd data/5_2_x_comp

7) There are two files.
ZendOptimizer.so is the complied file.

8) Copy this file to the PHP installation folder.

cp ZendOptimizer.so ~/jiuan4/php5/lib/php/

Now ZendOptimizer 3.3.3 installation finished.

9) To enable ZendOptimizer, you need to edit your domain’s php.ini file.

cd php5/etc/php5/youdomainname

10) Edit php.ini file.

vi php.ini

11) Go to the end of file, add the following.

; Zend Optimizer options
zend_optimizer.optimization_level=15
zend_extension=/home/<em>yourusername</em>/php5/lib/php/ZendOptimizer.so

12) Make a phpinfo() file to test it.
You will see the following screen.
zendoptimizer

The post Install Zend Optimizer 3.3 on Customized PHP 5.2.3 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2008/05/install_zend_optimizer_33_on_c.html/feed/ 4
Install customized PHP5 on Dreamhost https://www.yinfor.com/2008/05/install_customized_php5_on_dre.html https://www.yinfor.com/2008/05/install_customized_php5_on_dre.html#comments Thu, 08 May 2008 20:28:57 +0000 https://www.yinfor.com/?p=537 Install a customized PHP5 on Dreamhost can help you to make php work better and work more. That means you can add more extension on it. Let’s go to the details of installation. Install/Compile PHP 5 1) Copy the PHP5_installscript...

The post Install customized PHP5 on Dreamhost appeared first on David Yin's Blog.

]]>
Install a customized PHP5 on Dreamhost can help you to make php work better and work more. That means you can add more extension on it.
Let’s go to the details of installation.
Install/Compile PHP 5
1) Copy the PHP5_installscript (see the last portion of this post) into a text editor and replace YOUR DOMAIN HERE on the 4th line with your site’s domain name. For example your domain is abc.com, you need to add it same as it.
2) Copy the new contents to your clipboard.
3) Log in to your account using SSH, create a new folder as temp and cd temp.
4) Create a new file in your SSH by entering the command:

vi installscript

5) Hit i for insert mode, then right-click to paste your clipboard (the install script) contents, then hit Esc, type :wq (that’s ‘colon’, ‘w’, ‘q’), and press Enter to save and exit.
6) Make the file executable by entering the command:

chmod +x installscript

7) Run the script by entering the command:

./installscript

8) After it has finished you will need to edit your htaccess file appropriately. Add the following:

Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
&lt;FilesMatch "^php5?.(ini|cgi)$"&gt;
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
&lt;/FilesMatch&gt;

to a file called .htaccess and place it in the root folder of your domain you specified above (/home/YOUR USERNAME/YOUR DOMAIN HERE/.htaccess)
I have a post tell you how to install PHP 5.2.0 on Dreamhost in Chinese last December.

#!/bin/sh
# Script updated 2006-12-25 by Carl McDade (hiveminds.co.uk) to allow memory limit and freetype
#
# Script updated 2007-11-24 by Andrew (ajmconsulting.net) to allow 3rd wget line to pass
# LIBMCRYPT version information (was set as static download file name previously.)
#
# Save the code to a file as *.sh
# Abort on any errors
#
set -e
# The domain in which to install the PHP CGI script.
export DOMAIN="your.domain.com"
# Where do you want all this stuff built? I'd recommend picking a local
# filesystem.
# ***Don't pick a directory that already exists!*** We clean up after
# ourselves at the end!
SRCDIR=${HOME}/source
# And where should it be installed?
INSTALLDIR=${HOME}/php5
# Set DISTDIR to somewhere persistent, if you plan to muck around with this
# script and run it several times!
DISTDIR=${HOME}/dist
# Pre-download clean up!!!!
rm -rf $SRCDIR $DISTDIR
# Update version information here.
PHP5="php-5.2.5"
LIBICONV="libiconv-1.11"
LIBMCRYPT="libmcrypt-2.5.7"
LIBXML2="libxml2-2.6.27"
LIBXSLT="libxslt-1.1.18"
MHASH="mhash-0.9.7.1"
ZLIB="zlib-1.2.3"
CURL="curl-7.14.0"
LIBIDN="libidn-0.6.8"
CCLIENT="imap-2004g"
CCLIENT_DIR="imap-2004g" # Another pest!
FREETYPE="freetype-2.2.1"
# What PHP features do you want enabled?
PHPFEATURES="--prefix=${INSTALLDIR}
--with-config-file-path=${INSTALLDIR}/etc/php5/${DOMAIN}
--enable-fastcgi
--enable-force-cgi-redirect
--with-xml
--with-libxml-dir=${INSTALLDIR}
--with-freetype-dir=${INSTALLDIR}
--enable-soap
--with-openssl=/usr
--with-mhash=${INSTALLDIR}
--with-mcrypt=${INSTALLDIR}
--with-zlib-dir=${INSTALLDIR}
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-gd
--enable-gd-native-ttf
--enable-memory-limit
--enable-ftp
--enable-exif
--enable-sockets
--enable-wddx
--with-iconv=${INSTALLDIR}
--enable-sqlite-utf8
--enable-calendar
--with-curl=${INSTALLDIR}
--enable-mbstring
--enable-mbregex
--enable-bcmath
--with-mysql=/usr
--with-mysqli
--without-pear
--with-gettext
--with-imap=${INSTALLDIR}
--with-imap-ssl=/usr"
# ---- end of user-editable bits. Hopefully! ----
# Push the install dir's bin directory into the path
export PATH=${INSTALLDIR}/bin:$PATH
# set up directories
mkdir -p ${SRCDIR}
mkdir -p ${INSTALLDIR}
mkdir -p ${DISTDIR}
cd ${DISTDIR}
# Get all the required packages
wget -c http://us.php.net/get/${PHP5}.tar.gz/from/this/mirror
wget -c http://mirrors.usc.edu/pub/gnu/libiconv/${LIBICONV}.tar.gz
wget -c http://easynews.dl.sourceforge.net/sourceforge/mcrypt/${LIBMCRYPT}.tar.gz
wget -c ftp://xmlsoft.org/libxml2/${LIBXML2}.tar.gz
wget -c ftp://xmlsoft.org/libxml2/${LIBXSLT}.tar.gz
wget -c http://superb-west.dl.sourceforge.net/sourceforge/mhash/${MHASH}.tar.gz
wget -c http://www.zlib.net/${ZLIB}.tar.gz
wget -c http://curl.haxx.se/download/${CURL}.tar.gz
wget -c http://kent.dl.sourceforge.net/sourceforge/freetype/${FREETYPE}.tar.gz
wget -c ftp://alpha.gnu.org/pub/gnu/libidn/${LIBIDN}.tar.gz
wget -c ftp://ftp.cac.washington.edu/imap/old/${CCLIENT}.tar.Z
echo ---------- Unpacking downloaded archives. This process may take several minutes! ----------
cd ${SRCDIR}
# Unpack them all
echo Extracting ${PHP5}...
tar xzf ${DISTDIR}/${PHP5}.tar.gz
echo Done.
echo Extracting ${LIBICONV}...
tar xzf ${DISTDIR}/${LIBICONV}.tar.gz
echo Done.
echo Extracting ${LIBMCRYPT}...
tar xzf ${DISTDIR}/${LIBMCRYPT}.tar.gz
echo Done.
echo Extracting ${LIBXML2}...
tar xzf ${DISTDIR}/${LIBXML2}.tar.gz
echo Done.
echo Extracting ${LIBXSLT}...
tar xzf ${DISTDIR}/${LIBXSLT}.tar.gz
echo Done.
echo Extracting ${MHASH}...
tar xzf ${DISTDIR}/${MHASH}.tar.gz
echo Done.
echo Extracting ${ZLIB}...
tar xzf ${DISTDIR}/${ZLIB}.tar.gz
echo Done.
echo Extracting ${CURL}...
tar xzf ${DISTDIR}/${CURL}.tar.gz
echo Done.
echo Extracting ${LIBIDN}...
tar xzf ${DISTDIR}/${LIBIDN}.tar.gz
echo Done.
echo Extracting ${CCLIENT}...
uncompress -cd ${DISTDIR}/${CCLIENT}.tar.Z |tar x
echo Done.
echo Extracting ${FREETYPE}...
tar xzf ${DISTDIR}/${FREETYPE}.tar.gz
echo Done.
# Build them in the required order to satisfy dependencies.
#libiconv
cd ${SRCDIR}/${LIBICONV}
./configure --enable-extra-encodings --prefix=${INSTALLDIR}
# make clean
make
make install
#libxml2
cd ${SRCDIR}/${LIBXML2}
./configure --with-iconv=${INSTALLDIR} --prefix=${INSTALLDIR}
# make clean
make
make install
#libxslt
cd ${SRCDIR}/${LIBXSLT}
./configure --prefix=${INSTALLDIR}
--with-libxml-prefix=${INSTALLDIR}
--with-libxml-include-prefix=${INSTALLDIR}/include/
--with-libxml-libs-prefix=${INSTALLDIR}/lib/
# make clean
make
make install
#zlib
cd ${SRCDIR}/${ZLIB}
./configure --shared --prefix=${INSTALLDIR}
# make clean
make
make install
#libmcrypt
cd ${SRCDIR}/${LIBMCRYPT}
./configure --disable-posix-threads --prefix=${INSTALLDIR}
# make clean
make
make install
#libmcrypt lltdl issue!!
cd ${SRCDIR}/${LIBMCRYPT}/libltdl
./configure --prefix=${INSTALLDIR} --enable-ltdl-install
# make clean
make
make install
#mhash
cd ${SRCDIR}/${MHASH}
./configure --prefix=${INSTALLDIR}
# make clean
make
make install
#freetype
cd ${SRCDIR}/${FREETYPE}
./configure --prefix=${INSTALLDIR}
# make clean
make
make install
#libidn
cd ${SRCDIR}/${LIBIDN}
./configure --with-iconv-prefix=${INSTALLDIR} --prefix=${INSTALLDIR}
# make clean
make
make install
#cURL
cd ${SRCDIR}/${CURL}
./configure --with-ssl=${INSTALLDIR} --with-zlib=${INSTALLDIR}
--with-libidn=${INSTALLDIR} --enable-ipv6 --enable-cookies
--enable-crypto-auth --prefix=${INSTALLDIR}
# make clean
make
make install
# c-client
cd ${SRCDIR}/${CCLIENT_DIR}
make ldb
# Install targets are for wusses!
cp c-client/c-client.a ${INSTALLDIR}/lib/libc-client.a
cp c-client/*.h ${INSTALLDIR}/include
#PHP 5
cd ${SRCDIR}/${PHP5}
./configure ${PHPFEATURES}
# make clean
make
make install
#copy config file
mkdir -p ${INSTALLDIR}/etc/php5/${DOMAIN}
cp ${SRCDIR}/${PHP5}/php.ini-dist ${INSTALLDIR}/etc/php5/${DOMAIN}/php.ini
#copy PHP CGI
mkdir -p ${HOME}/${DOMAIN}/cgi-bin
chmod 0755 ${HOME}/${DOMAIN}/cgi-bin
cp ${INSTALLDIR}/bin/php ${HOME}/${DOMAIN}/cgi-bin/php.cgi
rm -rf $SRCDIR $DISTDIR
echo ---------- INSTALL COMPLETE! ----------

The post Install customized PHP5 on Dreamhost appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2008/05/install_customized_php5_on_dre.html/feed/ 2