hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Security and Technology Tutorials : eAccelerator auto installer - for cPanel
Reply

Forum Jump

eAccelerator auto installer - for cPanel

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524

eAccelerator auto installer - for cPanel


I know a promised a new script a while back, so here it is...

In root SSH:
Code:
wget http://tutorials.medialayer.com/cPanel/eaccelerator.sh
chmod 700 eaccelerator.sh
./eaccelerator.sh
Should work perfectly on any cPanel server. There are lots of sanity checks built in to prevent any possible issue or destruction. The php.ini gets backed up before it is modified.

HTH

__________________
MediaLayer, LLC - www.medialayer.com Lightning fast web hosting since 2005.
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage
Learn how we can make your website load faster, translating to better conversion rates for your business!



Sponsored Links
  #2  
Old
Newbie
 
Join Date: Feb 2004
Posts: 14
wonderful

But would you use the new version of eaccelerator because I saw you're using the old version (eaccelerator-0.9.4) it would be great from you if you'll update your script to the new version

http://sourceforge.net/projects/eaccelerator

also i tried your script but i faced small problem check
Quote:
root@host [~/top/eaccelerator-0.9.5-rc1]# wget http://tutorials.medialayer.com/cPanel/eaccelerator.sh
--13:41:34-- http://tutorials.medialayer.com/cPanel/eaccelerator.sh
=> `eaccelerator.sh'
Resolving tutorials.medialayer.com... 208.68.171.10
Connecting to tutorials.medialayer.com[208.68.171.10]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,784 [application/x-sh]

100%[===========================================================>] 2,784 --.--K/s

13:41:34 (94.82 MB/s) - `eaccelerator.sh' saved [2,784/2,784]

root@host [~/top/eaccelerator-0.9.5-rc1]# chmod 700 eaccelerator.sh
root@host [~/top/eaccelerator-0.9.5-rc1]# ./eaccelerator.sh
ABORT: One or more of the variables are incorrect. Please review lines 3-6 in the script and adjust appropriately for your server.
root@host [~/top/eaccelerator-0.9.5-rc1]#
( i was install eaccelerator) but i removed it from php.ini

Any idea?

BTW Thanks


Last edited by OpenSource; 09-27-2006 at 01:59 PM.
  #3  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
Hello,

That error explains that you need to do

nano -w ~/eaccelerator.sh

and edit lines 3-6 for the variables. One or more of the directories either do not exist or something to that extent.

The latest *stable* version of eAccelerator is being used in this script. I may add an option to use the RC version, but I wouldn't want to release an auto installer for non-stable version.

Thanks,

__________________
MediaLayer, LLC - www.medialayer.com Lightning fast web hosting since 2005.
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage
Learn how we can make your website load faster, translating to better conversion rates for your business!

Sponsored Links
  #4  
Old
WHT Addict
 
Join Date: May 2003
Posts: 169
thanks for the autoinstaller.

But may I ask how do I access control.php ? (I have modified your installer a little so that I can install version 0.9.5

__________________
ozdoc.com
Taiwan independence!!!
Go Sydney Swans!!!

  #5  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
You'll need to re-download the eA source, extract it with tar jfx ea*.tar.bz2 and then you should find a control.php file in there.

HTH,

  #6  
Old
WHT Addict
 
Join Date: May 2003
Posts: 169
thanks. But under which directory should I install it under? Obvious I wouldn't be able to open it if it's stored under "root" (like the rest of eaccelerator). At the moment, I have placed control.php under public_htm of my website, but l could not log into it.

__________________
ozdoc.com
Taiwan independence!!!
Go Sydney Swans!!!

  #7  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
Quote:
Originally Posted by allanh
thanks. But under which directory should I install it under? Obvious I wouldn't be able to open it if it's stored under "root" (like the rest of eaccelerator). At the moment, I have placed control.php under public_htm of my website, but l could not log into it.
If on a cpanel server, try /usr/local/apache/htdocs and then you can access it at IP/control.php. You can try /var/www/html if non-cpanel.

  #8  
Old
Ottomatic backup specialist
 
Join Date: Aug 2006
Location: Canada
Posts: 756
I can't seem to install eAccelerator using this script with Zend Optimizer already installed...

  #9  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
Quote:
Originally Posted by -OY-
I can't seem to install eAccelerator using this script with Zend Optimizer already installed...
What error are you receiving?

I've sometimes seen issues with the extensions dir not existing try

mkdir /usr/local/lib/php/extensions and then run the script.

__________________
MediaLayer, LLC - www.medialayer.com Lightning fast web hosting since 2005.
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage
Learn how we can make your website load faster, translating to better conversion rates for your business!

  #10  
Old
Ottomatic backup specialist
 
Join Date: Aug 2006
Location: Canada
Posts: 756
There is an eaccelerator.so file in no-debug-non-zts-20020429 of the extension folder.

But when I go to phpinfo, it doesn't show that eaccelerator was installed.

Maybe because I have PHP4 and PHP5 installed at the same time?

  #11  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
Quote:
Originally Posted by -OY-
There is an eaccelerator.so file in no-debug-non-zts-20020429 of the extension folder.

But when I go to phpinfo, it doesn't show that eaccelerator was installed.

Maybe because I have PHP4 and PHP5 installed at the same time?
Having both PHP4 and 5 shouldn't cause a problem. Is PHP4 running as mod_php? Can you paste me the result of php -v please?

__________________
MediaLayer, LLC - www.medialayer.com Lightning fast web hosting since 2005.
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage
Learn how we can make your website load faster, translating to better conversion rates for your business!

  #12  
Old
Ottomatic backup specialist
 
Join Date: Aug 2006
Location: Canada
Posts: 756
PHP 4.4.4 (cli) (built: Oct 21 2006 21:10:43)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v3.0.1, Copyright (c) 1998-2006, by Zend Technologies

  #13  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
grep "eaccelerator" -- /usr/local/lib/php.ini also paste that pelase

Thanks

__________________
MediaLayer, LLC - www.medialayer.com Lightning fast web hosting since 2005.
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage
Learn how we can make your website load faster, translating to better conversion rates for your business!

  #14  
Old
Ottomatic backup specialist
 
Join Date: Aug 2006
Location: Canada
Posts: 756
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/php-cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="0"

  #15  
Old
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,524
well that looks setup correctly, how about:

grep "extension_dir" -- /usr/local/lib/php.ini

__________________
MediaLayer, LLC - www.medialayer.com Lightning fast web hosting since 2005.
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage
Learn how we can make your website load faster, translating to better conversion rates for your business!

Reply

Related posts from TheWhir.com
Title Type Date Posted
Hulk Hogan's Hostamania Announces Partnership with cPanel Web Hosting News 2013-12-10 12:12:09
GoDaddy Supports cPanel as Part of Web Hosting Updates Web Hosting News 2014-05-09 12:40:20
What's New at cPanel: IPv6 and 1:1 NAT Support Web Hosting News 2013-10-01 18:12:07
cPanel & WHM Software 11.36 Reaches Stable Tier Status Web Hosting News 2013-04-09 11:44:33
Web Host ServerHub Launches High Availability Hosting Web Hosting News 2013-02-04 09:00:54


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?