1. Install PHP

最後更新: 2024-07-03

目錄

  • libphp7.so
  • 什麼是 Thread Safety
  • Virtual Directory

libphp7.so

 

只有 prefork 才會 load libphp7.so

00-mpm.conf

#LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

 


什麼是 Thread Safety

 

Thread Safety means that binary can work in a multithreaded webserver context

Default: disabled

使用環境:

  • Apache + mod_prefork : disabled  (rely on the operating system to separate context )
  • Apache + FastCGI: disabled
  • Apache + mod_mpm: enabled
  • IIS: enable

Virtual Directory

 

emulate a "Virtual Directory" build using mod_rewrite to rewrite input to a script in another location.

 

Creative Commons license icon Creative Commons license icon