Blame
Date:
Sun Jan 29 05:00:28 2023 UTC
Message:
Daily backup
01
2023-01-22
jrmu
version=pmwiki-2.2.130 ordered=1 urlencoded=1
02
2023-01-22
jrmu
agent=w3m/0.5.3+git20210102
03
2023-01-22
jrmu
author=jrmu
04
2023-01-22
jrmu
charset=UTF-8
05
2023-01-22
jrmu
csum=
06
2023-01-22
jrmu
ctime=1627380291
07
2023-01-22
jrmu
host=38.87.162.154
08
2023-01-22
jrmu
name=Php.Install
09
2023-01-22
jrmu
rev=9
10
2023-01-22
jrmu
targets=Acme-client.Configure,Openhttpd.TLS,Relayd.Acceleration
11
2023-01-22
jrmu
text=(:title Install PHP for OpenHTTPd:)%0a%0aYou'll first want to choose the version of PHP you use:%0a%0a!! Install PHP7%0a%0a[@%0a$ doas pkg_add php%257%0a$ doas rcctl enable php74_fpm%0a$ doas rcctl start php74_fpm%0a@]%0a%0a!! Install PHP8%0a%0a[@%0a$ doas pkg_add php%258%0a$ doas rcctl enable php80_fpm%0a$ doas rcctl start php80_fpm%0a@]%0a%0aThen, in /etc/httpd.conf, add the following block:%0a%0a[@%0aserver "example.com" {%0a listen on * port 80%0a location "/.well-known/acme-challenge/*" {%0a root "/acme"%0a request strip 2%0a }%0a location "*.php" {%0a fastcgi socket "/run/php-fpm.sock"%0a root "/htdocs/example.com"%0a }%0a}%0a@]%0a%0aLines 3-7, the @@location "/.well-known/acme-challenge/*"@@ block, is for [[acme-client/configure|acme-client]], for requesting new SSL certs.%0a%0aLines 8-11, the @@location "*.php"@@ block, tells the web server to use PHP for any file that ends with a @@.php@@ file extension.%0a%0aLine 10 says where the '''document root''' is located -- where web files should be placed. By default, openhttpd chroots into /var/www, so if your document root is /htdocs/example.com, then your actual web files need to be placed in /var/www/htdocs/example.com. %0a%0a'''NOTE''': Make sure to replace example.com with your real domain.%0a%0aTo test your installation, create the file /var/www/htdocs/example.com/index.php:%0a%0a[@%0a%3c?php phpinfo(); ?>%0a@]%0a%0aThen, have your web browser visit http://example.com/ . If you set everything up correctly, you should see a screen full of PHP installation information.%0a%0aFor SSL, you will want to follow the [[openhttpd/TLS|OpenHTTPD TLS]] or [[relayd/acceleration|relayd]] guides.%0a%0a!! Troubleshooting %0a%0aIf you run into any PHP configuration errors, check the logs folder in /var/www/logs:%0a%0a[@%0a$ less /var/www/logs/access.log%0a$ less /var/www/logs/error.log%0a@]%0a%0a!! Files%0a%0a|| File Path || Purpose ||%0a|| /var/www/logs/access.log || Web access logs ||%0a|| /var/www/logs/error.log || Web error logs ||%0a%0a%0a!! Upgrading Notes%0a%0aIf you are upgrading to php8.0 and you have got pmwiki, then make sure that you update your pmwiki, else it will spam your logs and it will be within a minute that you got no space left on /var %0a%0a
12
2023-01-22
jrmu
time=1651619461
13
2023-01-22
jrmu
title=Install PHP for OpenHTTPd
14
2023-01-22
jrmu
author:1651619461=jrmu
15
2023-01-22
jrmu
diff:1651619461:1644140531:=3,6c3,4%0a%3c You'll first want to choose the version of PHP you use:%0a%3c %0a%3c !! Install PHP7%0a%3c %0a---%0a> !! Install%0a> %0a8,10c6,8%0a%3c $ doas pkg_add php%257%0a%3c $ doas rcctl enable php74_fpm%0a%3c $ doas rcctl start php74_fpm%0a---%0a> $ doas pkg_add php-8.0.8%0a> $ doas rcctl enable php80_fpm%0a> $ doas rcctl start php80_fpm%0a13,14c11,12%0a%3c !! Install PHP8%0a%3c %0a---%0a> Then, in /etc/httpd.conf, add the following block:%0a> %0a16,23d13%0a%3c $ doas pkg_add php%258%0a%3c $ doas rcctl enable php80_fpm%0a%3c $ doas rcctl start php80_fpm%0a%3c @]%0a%3c %0a%3c Then, in /etc/httpd.conf, add the following block:%0a%3c %0a%3c [@%0a74d63%0a%3c %0a
16
2023-01-22
jrmu
host:1651619461=38.87.162.154
17
2023-01-22
jrmu
author:1644140531=Naglfar
18
2023-01-22
jrmu
csum:1644140531=Update SquirrelMail version to 1.4.23 [SVN] and PHP 8.0.x
19
2023-01-22
jrmu
diff:1644140531:1637932804:=9a10,11%0a> %0a> '''Note''': SquirrleMail does not support PHP-8.x. The latest known supported PHP version is 7.x.%0a
20
2023-01-22
jrmu
host:1644140531=92.191.225.58
21
2023-01-22
jrmu
author:1637932804=miniontoby
22
2023-01-22
jrmu
csum:1637932804=Added upgarding notes
23
2023-01-22
jrmu
diff:1637932804:1637797470:=61,65d60%0a%3c %0a%3c %0a%3c !! Upgrading Notes%0a%3c %0a%3c If you are upgrading to php8.0 and you have got pmwiki, then make sure that you update your pmwiki, else it will spam your logs and it will be within a minute that you got no space left on /var %0a
24
2023-01-22
jrmu
host:1637932804=82.170.78.91
25
2023-01-22
jrmu
author:1637797470=bugzbunny
26
2023-01-22
jrmu
diff:1637797470:1627381487:=10,11d9%0a%3c %0a%3c '''Note''': SquirrleMail does not support PHP-8.x. The latest known supported PHP version is 7.x.%0a
27
2023-01-22
jrmu
host:1637797470=72.78.238.236
28
2023-01-22
jrmu
author:1627381487=jrmu
29
2023-01-22
jrmu
diff:1627381487:1627381296:=35,43c35%0a%3c To test your installation, create the file /var/www/htdocs/example.com/index.php:%0a%3c %0a%3c [@%0a%3c %3c?php phpinfo(); ?>%0a%3c @]%0a%3c %0a%3c Then, have your web browser visit http://example.com/ . If you set everything up correctly, you should see a screen full of PHP installation information.%0a%3c %0a%3c For SSL, you will want to follow the [[openhttpd/TLS|OpenHTTPD TLS]] or [[relayd/acceleration|relayd]] guides.%0a---%0a> To test your installation,%0a
30
2023-01-22
jrmu
host:1627381487=38.87.162.8
31
2023-01-22
jrmu
author:1627381296=jrmu
32
2023-01-22
jrmu
diff:1627381296:1627380982:=22d21%0a%3c root "/htdocs/example.com"%0a29,35c28%0a%3c Lines 8-11, the @@location "*.php"@@ block, tells the web server to use PHP for any file that ends with a @@.php@@ file extension.%0a%3c %0a%3c Line 10 says where the '''document root''' is located -- where web files should be placed. By default, openhttpd chroots into /var/www, so if your document root is /htdocs/example.com, then your actual web files need to be placed in /var/www/htdocs/example.com. %0a%3c %0a%3c '''NOTE''': Make sure to replace example.com with your real domain.%0a%3c %0a%3c To test your installation,%0a---%0a> Lines 8-10, the @@location "*.php"@@ block, tells the web server to use PHP for any file that ends with a @@.php@@ file extension.%0a
33
2023-01-22
jrmu
host:1627381296=38.87.162.8
34
2023-01-22
jrmu
author:1627380982=jrmu
35
2023-01-22
jrmu
diff:1627380982:1627380946:=42,43c42,43%0a%3c || /var/www/logs/access.log || Web access logs ||%0a%3c || /var/www/logs/error.log || Web error logs ||%0a---%0a> || /var/www/logs/ || Web logs ||%0a> || ||%0a
36
2023-01-22
jrmu
host:1627380982=38.87.162.8
37
2023-01-22
jrmu
author:1627380946=jrmu
38
2023-01-22
jrmu
diff:1627380946:1627380291:=6,8c6%0a%3c $ doas pkg_add php-8.0.8%0a%3c $ doas rcctl enable php80_fpm%0a%3c $ doas rcctl start php80_fpm%0a---%0a> $ doas pkg_add php%0a11,12d8%0a%3c Then, in /etc/httpd.conf, add the following block:%0a%3c %0a13a10,14%0a> $ doas rcctl enable php74_fpm%0a> $ doas rcctl start php74_fpm%0a> @]%0a> %0a> [@%0a15,19c16%0a%3c listen on * port 80%0a%3c location "/.well-known/acme-challenge/*" {%0a%3c root "/acme"%0a%3c request strip 2%0a%3c }%0a---%0a> listen on * port 8080%0a26,33c23,24%0a%3c Lines 3-7, the @@location "/.well-known/acme-challenge/*"@@ block, is for [[acme-client/configure|acme-client]], for requesting new SSL certs.%0a%3c %0a%3c Lines 8-10, the @@location "*.php"@@ block, tells the web server to use PHP for any file that ends with a @@.php@@ file extension.%0a%3c %0a%3c !! Troubleshooting %0a%3c %0a%3c If you run into any PHP configuration errors, check the logs folder in /var/www/logs:%0a%3c %0a---%0a> To check for PHP configuration errors:%0a> %0a35,36c26,27%0a%3c $ less /var/www/logs/access.log%0a%3c $ less /var/www/logs/error.log%0a---%0a> # less /var/www/logs/access.log%0a> # less /var/www/logs/error.log%0a38,43d28%0a%3c %0a%3c !! Files%0a%3c %0a%3c || File Path || Purpose ||%0a%3c || /var/www/logs/ || Web logs ||%0a%3c || ||%0a
39
2023-01-22
jrmu
host:1627380946=38.87.162.8
40
2023-01-22
jrmu
author:1627380291=jrmu
41
2023-01-22
jrmu
diff:1627380291:1627380291:=1,28d0%0a%3c (:title Install PHP for OpenHTTPd:)%0a%3c %0a%3c !! Install%0a%3c %0a%3c [@%0a%3c $ doas pkg_add php%0a%3c @]%0a%3c %0a%3c [@%0a%3c $ doas rcctl enable php74_fpm%0a%3c $ doas rcctl start php74_fpm%0a%3c @]%0a%3c %0a%3c [@%0a%3c server "example.com" {%0a%3c listen on * port 8080%0a%3c location "*.php" {%0a%3c fastcgi socket "/run/php-fpm.sock"%0a%3c }%0a%3c }%0a%3c @]%0a%3c %0a%3c To check for PHP configuration errors:%0a%3c %0a%3c [@%0a%3c # less /var/www/logs/access.log%0a%3c # less /var/www/logs/error.log%0a%3c @]%0a
42
2023-01-22
jrmu
host:1627380291=38.87.162.8
IRCNow