WebFaction
Community site: login faq

I recently installed Magento to a PHP static app on WebFaction. It seems very slow but I think this is inherent to Magento. Magento guides seem to recommend using APC, which I'll do if I have to.

I read on another answer here that WebFaction use eAccelerator - is that running by default for all static PHP apps, or has to be enabled or installed?

Incidentally, when I installed Magento I had to do it via the command line. The web installer timed out, leaving an uncompletable install. When I did it via the command line I thought it was broken too, it took about 15 minutes to run the command, with no progress or feedback. Eventually the prompt returned and it had completed successfully.

Seems like PHP and/or MySQL is really slow here?

asked 16 May '11, 06:51

anentropic
81710
accept rate: 0%

I've recently also installed Magento and after couple of days finds that its really slow. What I did is installed APC (Alternate PHP Cache) for PHP apps. you wont be able to install this on one click installation for apps webfaction provides. you need to installed custom app and then install APC on it. this is definatelly speed my magento store.

There are several others step you can follow for diffrent aspect of speeding site up which can be found http://www.magentocommerce.com/boards/viewthread/36225/

Have a look at my magento site. www.wingmirrorsmarket.co.uk

Do you feel any speed difference from yours?

webbyfox

(16 May '11, 10:42) webbyfox

did you notice an improvement after switching to APC?

(16 May '11, 12:33) anentropic

yeah it was 50% improvement, i should say

(16 May '11, 15:33) webbyfox

Our PHP 5.3 app includes its own .htaccess file. Magento overwrites that with its own, and I think that the performance issues you saw are related to that.

With that in mind, I just did my own installation of the Magento with the following steps, and didn't notice any performance issues (except where noted):

Control panel steps:

  1. Create a new Static/CGI/PHP-5.3 app in the control panel, named "magento".
  2. Create a new Static-only symlink app in the control panel, named "magent_media" and using "/home/username/webapps/magento/media" in the extra info field (be sure to change "username" to your username).
  3. Create a new site in the control panel with the "magento" app on URL path "/" and the "magento_media" app on URL path "/media". Make a note of the domain you assigned to the site, eg "yourdomain.com"
  4. SSH into the server and run the following commands:

SSH steps

cd ~/webapps/magento
wget --referer=http://www.magentocommerce.com/download http://www.magentocommerce.com/getmagento/1.5.1.0/magento-1.5.1.0.tar.bz2
wget --referer=http://www.magentocommerce.com/download http://www.magentocommerce.com/getmagento/1.2.0/magento-sample-data-1.2.0.tar.bz2
tar xjf magento-1.5.1.0.tar.bz2 --strip 1
tar xjf magento-sample-data-1.2.0.tar.bz2 --strip 1
mysql -u databasename databasename -p < magento_sample_data_for_1.2.0.sql

Enter your database password when prompted, and wait a bit while the sample data loads. This is the only step that seemed to take a long time.

Finally, edit ~/webapps/magento/.htaccess and add the following two lines to the top:

Action php53-cgi /php53.cgi
AddHandler php53-cgi .php

Once you've done that, you can go to your site's domain, eg http://yourdomain.com, to complete the Magento setup process.

When everything is finished, Magento's scripts will be served correctly via PHP 5.3, and your Magento media will be served by the front-end Nginx server (which can make a huge improvement in the performance of your site).

permanent link

answered 16 May '11, 17:47

seanf
12.2k41936
accept rate: 37%

edited 16 May '11, 17:47

eAccelerator is no longer installed on any of our servers due to an incomparability between the versions of it and PHP we use. If you want a PHP accelerator you'll need to install PHP, Apache and whichever accelerator you like.

Incidentally, when I installed Magento I had to do it via the command line. The web installer timed out, leaving an uncompletable install. When I did it via the command line I thought it was broken too, it took about 15 minutes to run the command, with no progress or feedback. Eventually the prompt returned and it had completed successfully.

Seems like PHP and/or MySQL is really slow here?

That doesn't sound right at all. We have a lot of users running Magento (and far more running regular PHP/MySQL) all without issue.

Could you point us to the domain where this is happening (or open a support ticket if you don't want to give this out).

permanent link

answered 16 May '11, 07:06

David L ♦♦
1.4k13
accept rate: 45%

dressesplusmore.com and my webfaction account is the same as my username. My gut feel was that php/mysql were slow, since the cli version of the interpretter is just creating lots of tables from php, no html to render (command was >php53 -f install.php -- --license_agreement_accepted "yes" [etc]). The ajax saving of data in the admin is also quite slow.

(16 May '11, 13:06) anentropic

See my answer below.

(16 May '11, 17:47) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×17
×9
×1

question asked: 16 May '11, 06:51

question was seen: 9,090 times

last updated: 16 May '11, 17:47

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM