hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : Hosting Software and Control Panels Tutorials : PHP Accelerator
Reply

Hosting Software and Control Panels Tutorials Tutorials specifically for control panels and other hosting software.
Forum Jump

PHP Accelerator

Reply Post New Thread In Hosting Software and Control Panels Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2004, 05:39 AM
viGeek viGeek is offline
Russ
 
Join Date: Mar 2002
Location: Philadelphia, PA
Posts: 2,493

PHP Accelerator


No warranties are made

First goto http://www.php-accelerator.co.uk/download.php and find the version that suits your platform. In this tutorial for reference, I will be using the Linux alpha version.

'create a directory
root@Server [~]# mkdir /usr/local/phpA

'Go into dir
root@Server [~]# cd /usr/local/phpA

'get the goods
root@Server [~]# wget http://www.php-accelerator.co.uk/rel...glibc2.1.3.tgz

'unpack
root@Server [~]# gzip -d php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3.tgz

'remove
root@Server [~]# rm -f php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3.tgz

'untar
root@Server [~]# tar -xvf php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3.tar

'go into dir created
root@Server [~]# cd php_accelerator-1.3.2_php-4.0.6_linux_alpha-glibc2.1.3/

'move it one directory down
root@Server [~]# mv * ../

'move yourself one dir down
root@Server [~]# cd ..

'cd to root
root@Server [~]# cd

'change to home
root@Server [~]# cd /home

'make cache directory
root@Server [~]# mkdir phpacache

'set access
root@Server [~]# chmod 577 phpacache

'open up php.ini in vi/pico etc
root@Server [~]# vi /usr/local/lib/php.ini

Now look for Dynamic Exension, after the Dynamic Exension arguments (the end of them), paste the following.

zend_extension="/usr/local/phpA/php_accelerator_[VERSION].so"
phpa.cache_dir = /home/phpacache
phpa.shm_ttl = 12h
phpa.shm_max_processes = 512
phpa.shm_stats_check_period = 5m
phpa.shm_size = 32
phpa.enable_php_memory_bug_workaround = 1

Save php.ini

'restart apache
root@Server [~]# /etc/init.d/httpd restart


Last edited by Akash; 03-08-2004 at 06:46 PM.
Reply With Quote


Sponsored Links
  #2  
Old 03-03-2004, 03:46 AM
Sheps Sheps is offline
Community Guide
 
Join Date: Dec 2002
Location: The Shadows
Posts: 2,900
Just a note, with the latest version, there are also a few other directives you should set:

phpa.phpa=on
phpa.tweaks=on

But other then that, it worked for me.


Last edited by Akash; 03-08-2004 at 06:47 PM.
Reply With Quote
  #3  
Old 03-04-2004, 01:52 AM
Andrew Andrew is offline
Web Hosting Master
 
Join Date: Jul 2002
Posts: 3,729
Another note: don't install this if you require the Zend Optimizer (needed for many popular closed source 3rd party scripts). The two will not work together.

Reply With Quote
Sponsored Links
  #4  
Old 03-04-2004, 02:18 AM
Sheps Sheps is offline
Community Guide
 
Join Date: Dec 2002
Location: The Shadows
Posts: 2,900
Good note...


Last edited by Akash; 03-08-2004 at 06:47 PM.
Reply With Quote
  #5  
Old 04-14-2004, 08:51 AM
hostchamp hostchamp is offline
Web Hosting Master
 
Join Date: Aug 2002
Posts: 647
Quote:
Originally posted by Andrew
Another note: don't install this if you require the Zend Optimizer (needed for many popular closed source 3rd party scripts). The two will not work together.
Thanks, this is a good note!

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Virginia Launches Cybersecurity Startup Accelerator MACH37 Web Hosting News 2013-04-12 12:47:19
Cloud Host NephoScale Partners with Mozilla WebFWD Startup Accelerator Web Hosting News 2013-01-17 10:58:56
Web Host SingleHop Launches Automated Security Service for Dedicated, Cloud Servers Web Hosting News 2013-01-07 14:20:53
MochaHost Enhances Server Performance with Tomcat Native Library Accelerator Web Hosting News 2012-08-01 15:35:20
Microsoft Launches Cloud Startup Program in Indian Office Web Hosting News 2012-05-23 17:01:10


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 On
HTML code is Off

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



Forgot Password?
Advertisement:
Web Hosting News:



 

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?