Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Sun May 02, 2010 10:54 pm 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
Thanks for the response obs, i'm pretty sure I installed PHP from "apt-get install php5"

Quote:
dpkg -l | grep php
ii libapache2-mod-php5 5.2.4-2ubuntu5.10 server-side, HTML-embedded scripting languag
ii php-pear 5.2.4-2ubuntu5.10 PEAR - PHP Extension and Application Reposit
ii php5 5.2.4-2ubuntu5.10 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.4-2ubuntu5.10 command-line interpreter for the php5 script
ii php5-common 5.2.4-2ubuntu5.10 Common files for packages built from the php
ii php5-curl 5.2.4-2ubuntu5.10 CURL module for php5
ii php5-dev 5.2.4-2ubuntu5.10 Files for PHP5 module development
ii php5-gd 5.2.4-2ubuntu5.10 GD module for php5
ii php5-mcrypt 5.2.3-0ubuntu1 MCrypt module for php5
ii php5-mysql 5.2.4-2ubuntu5.10 MySQL module for php5
ii php5-suhosin 0.9.22-1 advanced protection module for php5
ii phpmyadmin 4:2.11.3-1ubuntu1.3 Administrate MySQL over the WWW


Quote:
cd /home/source
mkdir apc
cd apc
wget http://pecl.php.net/get/APC-3.1.3p1.tgz
tar -xzvf APC-3.1.3p1.tgz
cd APC-3.1.3p1
phpize
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/local/bin/php-config
make
make test
make install
echo extension="apc.so" >> /etc/php5/apache2/php.ini
cp apc.php /home/public_html/greenandgoldrugby.com/public/
cp /home/source/apc/APC-3.1.3p1/modules/apc.so /usr/lib/php5/20060613+lfs/apc.so
/etc/init.d/apache2 restart
vi /etc/php5/apache2/conf.d/suhosin.ini


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 4:40 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
hrmm try this

pear channel-update pecl.php.net

pecl install apc

That "should" work. tbh I'm not exactly sure why your method didn't work since the error says the php version apc is compiled against is different to your php version but you have the same version of php and php-dev.


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 5:44 am 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
I went back to APC 3.0.19 and that works, happy days ;)

Should I increase the RAM for wordpress / vbulletin running on a 360?


Top
   
 Post subject:
PostPosted: Mon May 03, 2010 6:24 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Nah you should be fine, make sure you use wp super cache, I don't really use forums/bulletin board software since they tend to be full of holes so I can't advise on that part.


Top
   
 Post subject:
PostPosted: Wed May 19, 2010 8:30 am 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
Thanks obs, I'm thinking of removing suhosin as I've still had no luck with APC... it's worked twice on the dev site now, and failed about 40 times!

I noticed I'm still hitting maxclients from time to time so have lifted this to 30. Figure I'm not running out of memory, but find it confusing how top shows memory usage as a %.. makes it tough to know how many MB each process is using.

I also get an occasional error where the server prompts one of the other admins to download a .php file rather than serving it. Any thoughts on what could


Top
   
 Post subject:
PostPosted: Thu Sep 30, 2010 6:11 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Hey did you ever get anywhere with this? I'm using Ubuntu 8.04 and trying to install APC with no luck. I can't get it to find the application with the normal get-apt command (or apt-get, whatever).

Didn't want to go to source since that didn't work for you either.

THANKS.

_________________
kyler d. boudreau
theatereleven.com


Top
   
 Post subject:
PostPosted: Thu Sep 30, 2010 6:43 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
http://lmgtfy.com/?q=ubuntu+8.04+apc


Top
   
 Post subject:
PostPosted: Thu Sep 30, 2010 7:06 pm 
Offline
Senior Member
User avatar

Joined: Tue Dec 01, 2009 10:31 pm
Posts: 57
theatereleven wrote:
Hey did you ever get anywhere with this? I'm using Ubuntu 8.04 and trying to install APC with no luck. I can't get it to find the application with the normal get-apt command (or apt-get, whatever).

Didn't want to go to source since that didn't work for you either.

THANKS.

I did get it going in the end, through a lot of perseverance and testing on a second linode. The latest beta of APC, combined with a switch to nginx for front end proxying has been fantastic and my site has now enjoyed an unprecedented 36 days uptime (touch wood).


Top
   
 Post subject:
PostPosted: Thu Sep 30, 2010 7:17 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Cool thanks! Was the switch to Nigx difficult? I tried the link from the forum member above but it still doesn't work installing APC. Says this:

ERROR: '/tmp/pear/cache.APC-3.0.19/configure --with-apxs' failed

Whatever that means. =(

_________________
kyler d. boudreau

theatereleven.com


Top
   
 Post subject:
PostPosted: Thu Sep 30, 2010 7:43 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
You might want to Google "Drupal Nginx" before going down that path. Nginx is NOT a drop in replacement for Apache.


Top
   
 Post subject:
PostPosted: Thu Sep 30, 2010 8:38 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Okay thanks - good to know. If it is going to be a hassle there is probably more support out there for Apache so it just will not be worth it.

_________________
kyler d. boudreau

theatereleven.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group