Dette viser forskellene mellem den valgte og den nuværende udgave af dokumentet. Gul er linjer der findes i den gamle udgave, og grøn er linjer der findes i den nuværende.
| Begge sider forrige revision Forrige revision Næste revision | Forrige revision | ||
|
webserver_with_apache_php [2026/07/13 02:31] 216.73.216.243 gammel revision gendannet (2026/05/28 23:38) |
webserver_with_apache_php [2026/07/13 02:43] (nuværende) 216.73.216.243 gammel revision gendannet (2021/01/12 19:01) |
||
|---|---|---|---|
| Linje 1: | Linje 1: | ||
| - | === Apache & PHP === | ||
| - | Add Ondrej repos for Apache & PHP | ||
| - | < | ||
| - | add-apt-repository ppa: | ||
| - | add-apt-repository ppa: | ||
| - | </ | ||
| - | Install Apache & PHP | ||
| < | < | ||
| - | apt install apache2 | + | apt install apache2 php7.4-cli php7.4-curl php7.4-gd php7.4-intl php7.4-mbstring php7.4-opcache php7.4-soap php7.4-xmlrpc php7.4-common php7.4-fpm php7.4-imap php7.4-json php7.4-mysql php7.4-readline php7.4-xml php7.4-zip |
| </ | </ | ||
| - | |||
| - | Enable some modules | ||
| - | < | ||
| - | a2enmod proxy_fcgi setenvif md | ||
| - | </ | ||
| - | |||
| - | === IonCube === | ||
| - | Download & install IonCube https:// | ||
| - | < | ||
| - | wget https:// | ||
| - | </ | ||
| - | |||
| - | Copy content to ''/ | ||
| - | |||
| - | Create file ''/ | ||
| - | < | ||
| - | zend_extension = / | ||
| - | </ | ||
| - | |||
| - | Create links to this file | ||
| - | < | ||
| - | ln -s / | ||
| - | ln -s / | ||
| - | </ | ||
| - | |||
| - | |||
| - | Example of config file for a host | ||
| - | < | ||
| - | < | ||
| - | ServerName hosting.gl | ||
| - | ServerAlias www.hosting.gl | ||
| - | DocumentRoot / | ||
| - | ServerAdmin webmaster@hosting.gl | ||
| - | UseCanonicalName On | ||
| - | CustomLog / | ||
| - | |||
| - | < | ||
| - | Options FollowSymLinks | ||
| - | AllowOverride All | ||
| - | Require all granted | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | < | ||
| - | SetHandler proxy: | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | MDomain hosting.gl | ||
| - | |||
| - | < | ||
| - | ServerName hosting.gl | ||
| - | ServerAlias www.hosting.gl | ||
| - | DocumentRoot / | ||
| - | ServerAdmin webmaster@hosting.gl | ||
| - | UseCanonicalName On | ||
| - | CustomLog / | ||
| - | |||
| - | < | ||
| - | Options FollowSymLinks | ||
| - | AllowOverride All | ||
| - | Require all granted | ||
| - | </ | ||
| - | |||
| - | Header always set X-Frame-Options DENY | ||
| - | |||
| - | < | ||
| - | Include / | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | < | ||
| - | SetHandler proxy: | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | RequestHeader set X-HTTPS 1 | ||
| - | </ | ||
| - | </ | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | |||