[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:hardware:arm:nginx [2020/03/05 08:29 (UTC)] – [Building the nginx package] updated notes exagahowtos:hardware:arm:nginx [2020/03/05 10:56 (UTC)] – [Adding additional sites to nginx] updated .conf code exaga
Line 91: Line 91:
 After a few short minutes, you should see the resulting package in your '/tmp' directory. [NB: if you didn't modify the '${PKGTYPE:-tgz}' variable then the file extension will be '*.tgz' instead of '*.txz'.] Check it like this: After a few short minutes, you should see the resulting package in your '/tmp' directory. [NB: if you didn't modify the '${PKGTYPE:-tgz}' variable then the file extension will be '*.tgz' instead of '*.txz'.] Check it like this:
  
-<note>Q. Why do we use 'time' in combination with running the build script? We like to know how long the process takes. That's all. You don't have to include it in order to be successful.</note>+<note>Q. Why do we use 'time' in combination with running the build script? \\ 
 +A. We like to know how long the process takes. That's all. You don't have to include it in order to be successful.</note>
  
 <code> <code>
Line 272: Line 273:
 </code> </code>
  
-By default 'php-fpm' does not log anything other than startup and shutdown [see: '/var/log/php-fpm.log']. In order to log any relevant error messages we need to make one more change to the file. Find the 'catch_workers_output" section below and uncomment the setting, like this:+By default 'php-fpm' does not log anything other than startup and shutdown [see: '/var/log/php-fpm.log' after the daemon has been (re)started]. In order to log any relevant error messages we need to make one more change to the file. Find the 'catch_workers_output" section below and uncomment the setting, like this:
  
 <code> <code>
Line 449: Line 450:
 </code> </code>
  
-In this file we need to instruct 'nginx' which server requests it should listen for on a specific port. We also specify the path/to/the web directory files where this site will be located. So we'll enter the following text into this file:+In this file we need to instruct 'nginx' which server requests it should listen for on a specific port. We need to specify the path/to/the web directory files where this site will be located and we'll also configure the FastCGI server. So we'll enter the following text into this file:
  
 <code> <code>
Line 458: Line 459:
     # this root path is to the webdir     # this root path is to the webdir
     root /var/www/test.local;     root /var/www/test.local;
 +    
 +    # index pages to load in this order
 +    index index.php index.html index.htm;
  
     #This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf     #This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf
     access_log /var/log/nginx/access.log vcombined;     access_log /var/log/nginx/access.log vcombined;
 +
 +    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
 +    #
 +    location ~ \.php$ {
 +       root           /var/www/test.local;
 +       fastcgi_pass   127.0.0.1:9000;
 +       fastcgi_index  index.php;
 +       fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 +       include        fastcgi_params;
 +    }
  
 } }
Line 476: Line 490:
     # this root path is to the webdir     # this root path is to the webdir
     root /var/www/extra.local;     root /var/www/extra.local;
 +
 +    # index pages to load in this order
 +    index index.php index.html index.htm;
  
     #This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf     #This will be needed for GoAccess ** make sure vcombined map is defined in nginx.conf
     access_log /var/log/nginx/access.log vcombined;     access_log /var/log/nginx/access.log vcombined;
 +
 +    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
 +    #
 +    location ~ \.php$ {
 +       root           /var/www/extra.local;
 +       fastcgi_pass   127.0.0.1:9000;
 +       fastcgi_index  index.php;
 +       fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
 +       include        fastcgi_params;
 +    }
  
 } }
 howtos:hardware:arm:nginx ()