[Linode][Ubuntu]設定與安裝LAMP for Linode 1G主機

有關於電腦系統設定, 備份, 監控, 網路等機制討論
回覆文章
頭像
tim
文章: 1380
註冊時間: 2008年 11月 26日, 00:49

[Linode][Ubuntu]設定與安裝LAMP for Linode 1G主機

文章 tim »

使用 Linode 1G主機的設定方式:

https://www.linode.com/docs/websites/hosting-a-website

其中的重點在於對於 1G 記憶體的 LAMP 優化設定方式, 逐一設定的參考:

Apache2:

代碼: 選擇全部

KeepAlive Off

...
<IfModule mpm_prefork_module>
StartServers 2
MinSpareServers 6
MaxSpareServers 12
MaxClients 30
MaxRequestsPerChild 3000
</IfModule>

MySQL:

代碼: 選擇全部

max_connections = 75
max_allowed_packet = 1M
thread_stack = 128K

table_open_cache = 32M
key_buffer_size = 32M
PHP:

代碼: 選擇全部

max_execution_time = 30
memory_limit = 128M
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = Off
log_errors = On
error_log = /var/log/php/error.log
register_globals = Off
多多留言, 整理文章, 把經驗累積下來.....
回覆文章