PHP question [CLOSED]

Some questions about managing server and products with artica.... Ask here...
First unread post • 18 posts • Page 1 of 21, 2

PHP question [CLOSED]

New postby Friend7 » Mon Feb 06, 2012 6:24 pm

How can php performance be improved at Freewebs?

Is it possible to have "dedicated RAM container" like in "Session path in memory"?
Last edited by Friend7 on Sun Apr 08, 2012 5:32 am, edited 1 time in total.
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: PHP question

New postby admin » Mon Feb 06, 2012 7:40 pm

"Session path in memory" it designed for all PHP5 applications running on the system.
Artica modify the global php5 configuration so each PHP application outside artica use the memory for sessions too
User avatar
admin
Site Admin
 
Posts: 11360
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: PHP question

New postby Friend7 » Mon Feb 06, 2012 8:21 pm

Console has improved very much its performance with "Session path in memory"
but I do not have the same performance in Freewebs.

What would that be?
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: PHP question

New postby admin » Mon Feb 06, 2012 9:47 pm

i did not know....
User avatar
admin
Site Admin
 
Posts: 11360
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: PHP question

New postby chris_c_ » Wed Feb 08, 2012 10:35 pm

Friend7 wrote:Console has improved very much its performance with "Session path in memory"
but I do not have the same performance in Freewebs.

What would that be?


To speed up PHP...

1) Each freeweb application has its own settings, and code, for cache and memory use.

If the app is not coded to specifically take advantage of caching engines available on the server - for example - to detect and use memcached - then memcached settings will have no effect on speeding up that application.

Just one example - Joomla (one of the PHP applications available as an Artica freeweb) has its own cache and session settings in the admin/system control panel.
Code: Select all
Cache Settings
Cache. This setting sets whether site caching is enabled or not. When enabled, it keeps a local copy of the content on the server to speed up accessing and lessen stress on the database. (New Joomla 2.5 version has: ON conservative cache - ON progressive cache - and OFF.) The default setting is No (OFF).
Cache Time. This setting sets the maximum length of time (in minutes) for a cache file to be stored before it is refreshed. The default setting is 15 minutes.
Cache Handler. This setting sets how the cache operates. There is only one caching mechanism which is file-based.
Session Settings
Session Lifetime. This setting sets how long a session should last and how long a user can remain signed in for (before logging them off for being inactive). The default setting is 15 minutes.
Session Handler. This setting sets how the session should be handled once a user connects and logs into the site. The default setting is set to Database.


2) There are some global settings, and modules, that provide caching for ALL PHP apps running on the server - this also has a dramatic effect on the speed.

APC is one of these global PHP cache that affects all PHP apps on the server. It is about 30MB and caches previously compiled unchanged PHP code files - so the system doesn't have to recompile PHP source code that hasn't changed (based on file date/time).

I'm 99% sure that memcached can be configured to replace APC and provide the same functionality as APC of "caching opcodes" - ie precompiled PHP files to avoid recompilation / reinterpretation - with a larger limit than 30 MB. Normally it can be 256MB, 512MB, whatever you want..
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: PHP question

New postby Friend7 » Wed Feb 08, 2012 11:47 pm

Thanks ....It is very interesting ....

I am investigating about this.

I would like to set an "dedicated RAM instance" to speed up PHP applis in Freewebs?

I have configured a Dedicated MySQL instance for Freewebs applis and
it works faultlessly.

I only need to speed up PHP.........
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: PHP question

New postby chris_c_ » Wed Feb 08, 2012 11:55 pm

For global PHP speed - I suggest to look and verify that PHP is configure to use memcached for opcode and object caching. If freewebs are as slow as you say, it's possible PHP is NOT configure to use memcached for opcode caching - it would be quite slow for PHP to compile the PHP for code every page, every time it's accessed.

Also google pagespeed extension for apache - double check that it's installed and configure correctly to work on all apache processes in the system. And verify that the freeweb apps are using apache not lighttpd or some other http engine that isn's about to use the google pagespeed apache module.

Is your PHP speed issue with the wordpress freeweb?
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: PHP question

New postby Friend7 » Thu Feb 09, 2012 2:24 am

I meant this:

Artica Console runs very fast since
Admin added "Session path in memory Feature" It only gets 16 MB RAM.

I want that Freewebs' Groupwares run as faster as Artica Console.
That's why I am thinking in a "RAM instance" for Freewebs.

Now I am happy with Artica Console performance.

P.S.: I know that "Session path in memory Feature" is for all PHP in Server.
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Re: PHP question

New postby chris_c_ » Thu Feb 09, 2012 3:01 am

I know that "Session path in memory Feature" is for all PHP in Server.


This is not true. It depends on how each Freeweb PHP application implements sessions.

For example - Joomla does NOT use the PHP sessions! Instead, Joomla uses its own separate session manager!

Yes, with the Joomla app, there are 2 separate session managers - standard PHP session manager, and the custom Joomla PHP session manager - and the app uses the custom PHP session manager!

So, improving the performance of the PHP session manager - with "PHP session path in memory feature" - will NOT speed up the Joomla freeweb's PHP sessions !
chris_c_
 
Posts: 793
Joined: Wed Oct 20, 2010 7:15 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A Geek

Re: PHP question

New postby Friend7 » Thu Feb 09, 2012 5:19 am

I have in Freewebs Wordpress (2), Zarafa Webmail, Zarafa mobile and 3 websites so far.
Another one has php applis.
I do not have joomla.
Best Regards,
Friend7
 
Posts: 2373
Joined: Sun Feb 06, 2011 3:41 pm
Artica servers number: 1
Linux System: Debian
Technical skills: A newbee

Next

18 posts • Page 1 of 21, 2

Return to Management console

Who is online

Users browsing this forum: No registered users and 3 guests

cron