mirror of
https://github.com/friendica/friendica
synced 2024-05-26 14:27:00 +02:00
Updated How to: improve performance (markdown)
parent
da3e7e4e68
commit
403b779710
|
@ -3,7 +3,7 @@ A little guide to increase the performance of a friendica site
|
|||
At first
|
||||
========
|
||||
|
||||
Feel freee to ask the friendica support at
|
||||
Feel free to ask the friendica support at
|
||||
<https://helpers.pyxis.uberspace.de/profile/helpers> if you need some
|
||||
clarification about the following instruction or if you need help in any
|
||||
other way.
|
||||
|
@ -21,7 +21,7 @@ This value reduces the data that is send from the server to the client.
|
|||
* Set "OStatus conversation completion interval" to "never".
|
||||
|
||||
if you are having many OStatus contacts then completing of conversations
|
||||
can be very time wasting. The downside: You won't see any answer in
|
||||
can be very time wasting. The downside: You won't see every answer in
|
||||
OStatus conversations.
|
||||
|
||||
* Set "Path for lock file" to an empty folder outside your web root.
|
||||
|
@ -32,10 +32,10 @@ run at the same time.
|
|||
For example: It can happen the the poller.php is working longer than
|
||||
expected. When there would be no lock file than maybe several instances
|
||||
of poller.php would run at the same time - which would slow down the
|
||||
systen and would affect the maximum numbers of processes and database
|
||||
conenctions.
|
||||
system and would affect the maximum numbers of processes and database
|
||||
connections.
|
||||
|
||||
Please define a full file path that is writeable by the web server
|
||||
Please define a full file path that is writable by the web server
|
||||
process. If your site would be located at "/var/www/sitename/htdocs/"
|
||||
you maybe could create a folder "/var/www/sitename/temp/".
|
||||
|
||||
|
@ -46,7 +46,7 @@ When using MyISAM (default) this speeds up the search.
|
|||
* Set "Path to item cache" to an empty value outside your web root.
|
||||
|
||||
Parsed BBCode and some external images will be put there. Parsing BBCode
|
||||
is a timewasting process that also uses much CPU speed.
|
||||
is a time wasting process that also uses much CPU speed.
|
||||
|
||||
You can use the same folder like you used for the lock file.
|
||||
|
||||
|
@ -54,8 +54,8 @@ Warning!
|
|||
--------
|
||||
|
||||
The folder for the item cache is cleaned up regularly. Every file that
|
||||
exceedes the cache duration is deleted. If you accidently would point
|
||||
the cache path to your web root then you would delete your webroot!
|
||||
exceeds the cache duration is deleted. If you accidentally would point
|
||||
the cache path to your web root then you would delete your web root!
|
||||
|
||||
So ensure twice that the folder only contains temporary content that can
|
||||
be deleted at any time.
|
||||
|
@ -75,19 +75,19 @@ Active the following plugins:
|
|||
Alternate Pagination
|
||||
--------------------
|
||||
|
||||
Description:
|
||||
### Description
|
||||
|
||||
This plugin reduces the database load massively. Downside: You can't see
|
||||
anymore the number of pages.
|
||||
|
||||
Administration:
|
||||
### Administration
|
||||
|
||||
Go to the admin settings of "altpager" and set it to "global".
|
||||
|
||||
Privacy Image Cache
|
||||
-------------------
|
||||
|
||||
Description:
|
||||
### Description
|
||||
|
||||
This plugin is prefetching external content and stores it into the
|
||||
cache. Besides speeding up the page rendering it is also good for
|
||||
|
@ -98,17 +98,17 @@ IP addresses).
|
|||
Additionally it helps with content from external sites that are having a
|
||||
slow performance or that are aren't online all the time.
|
||||
|
||||
Administration:
|
||||
### Administration
|
||||
|
||||
Please create a folder named "privacy_image_cache" and "photo" in
|
||||
your web root. If these folders exists then the cached files will be
|
||||
stored there. This has the great advantage that your webserver will
|
||||
stored there. This has the great advantage that your web server will
|
||||
fetch the files directly from there.
|
||||
|
||||
rendertime
|
||||
----------
|
||||
|
||||
This plugin doesn't speed up your system. It helps analysing your
|
||||
This plugin doesn't speed up your system. It helps analyzing your
|
||||
bottlenecks.
|
||||
|
||||
When enabled you see some values like the following at the bottom of
|
||||
|
@ -129,7 +129,7 @@ These values are showing your performance problems.
|
|||
Webserver
|
||||
=========
|
||||
|
||||
If you are using apache pease enable the following modules.
|
||||
If you are using apache please enable the following modules.
|
||||
|
||||
Cache-Control
|
||||
-------------
|
||||
|
@ -139,7 +139,7 @@ that they aren't fetched with every request.
|
|||
|
||||
Enable the module "mod_expires" by typing in "a2enmod expires" as root.
|
||||
|
||||
Please add the following lines to your site config in the "directory"
|
||||
Please add the following lines to your site configuration in the "directory"
|
||||
context.
|
||||
|
||||
<IfModule mod_expires.c>
|
||||
|
@ -152,7 +152,7 @@ See also: http://httpd.apache.org/docs/2.2/mod/mod_expires.html
|
|||
Compress content
|
||||
----------------
|
||||
|
||||
This module compresses the traffic between the webserver and the client.
|
||||
This module compresses the traffic between the web server and the client.
|
||||
|
||||
Enable the module "mod_deflate" by typing in "a2enmod deflate" as root.
|
||||
|
||||
|
@ -165,10 +165,9 @@ FCGI
|
|||
----
|
||||
|
||||
When using apache think about using FCGI. When using a Debian based
|
||||
distribution you will need the packages named "php5-cgi" and "
|
||||
libapache2-mod-fcgid".
|
||||
distribution you will need the packages named "php5-cgi" and "libapache2-mod-fcgid".
|
||||
|
||||
Please refer to external documentations for a more detaillied
|
||||
Please refer to external documentations for a more detailed
|
||||
explanation how to set up a system based upon FCGI.
|
||||
|
||||
APC
|
||||
|
@ -184,7 +183,7 @@ Database
|
|||
========
|
||||
|
||||
There are scripts like tuning-primer.sh <http://www.day32.com/MySQL/>
|
||||
and mysqltuner.pl <http://mysqltuner.pl> that analyse your database
|
||||
and mysqltuner.pl <http://mysqltuner.pl> that analyzes your database
|
||||
server and that are giving hints on values that could be changed.
|
||||
|
||||
Please enable the slow query log. This helps being aware of performance
|
||||
|
|
Loading…
Reference in a new issue