nginx_php
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nginx_php [2022/11/07 18:21] – [Details] admin | nginx_php [2023/01/28 21:10] (current) – [Finish] admin | ||
|---|---|---|---|
| Line 50: | Line 50: | ||
| Here's where we start to use the DOMAIN and PHP_VER variables we set earlier. | Here's where we start to use the DOMAIN and PHP_VER variables we set earlier. | ||
| < | < | ||
| - | cp / | + | cp / | 
| </ | </ | ||
| - | So you could edit that file and make some changes, or you could use this one. WARNING if you are tempted | + | So you could edit the ${DOMAIN}.conf | 
| + | |||
| + | WARNING if you are tempted | ||
| Otherwise you'll have problems you don't want to have to fix. Same goes for the nginx config file. | Otherwise you'll have problems you don't want to have to fix. Same goes for the nginx config file. | ||
| + | |||
| + | If you don' | ||
| + | |||
| + | Highlight and copy this block and paste it directly into your shell. | ||
| < | < | ||
| - | cat >/ | + | cat >/ | 
| ; pool name (' | ; pool name (' | ||
| [${DOMAIN}] | [${DOMAIN}] | ||
| Line 92: | Line 98: | ||
| Here's my nginx config. | Here's my nginx config. | ||
| + | Highlight and copy this block and paste it directly into your shell. | ||
| < | < | ||
| cat >/ | cat >/ | ||
| Line 147: | Line 154: | ||
| Now create the subdirectories. | Now create the subdirectories. | ||
| < | < | ||
| + | mkdir / | ||
| cd / | cd / | ||
| mkdir logs sessions tmp www | mkdir logs sessions tmp www | ||
| chown -R user001.group001 * | chown -R user001.group001 * | ||
| + | chown user001.group001 / | ||
| </ | </ | ||
| Line 156: | Line 165: | ||
| service nginx restart && service php${PHP_VER}-fpm restart | service nginx restart && service php${PHP_VER}-fpm restart | ||
| </ | </ | ||
| - | This is somewhat tested. | + | |
| + | Test with these commands: | ||
| + | < | ||
| + | cd / | ||
| + | cat > | ||
| + | <?php | ||
| + | phpinfo( ); | ||
| + | ?> | ||
| + | EOF | ||
| + | </ | ||
| + | Now bring up a browser and go to http:// | ||
| + | |||
| + | Where YOUR_DOMAIN is the value you set into ${DOMAIN} earlier. | ||
| + | |||
| + | This is somewhat tested. | ||
| + | |||
| + | This was used to install nginx/php on a 32 bit Bullseye Pi4 on 28 January 2023, when I found a couple of bugs and fixed them. | ||
nginx_php.1667841696.txt.gz · Last modified: 2022/11/07 18:21 by admin
                
                