linux:stuff
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:stuff [2015/09/21 19:10] – [Show the whole HID descriptors on GNU/Linux] redox | linux:stuff [2023/11/24 22:19] (current) – redox | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | < | ||
| # Stuff | # Stuff | ||
| Line 37: | Line 38: | ||
| echo -n interface-filename > | echo -n interface-filename > | ||
| + | ## Install NGinx + PHP + FuelPHP | ||
| + | < | ||
| + | sudo aptitude update | ||
| + | sudo aptitude install nginx php5-fpm php5-cli | ||
| + | |||
| + | Edit / | ||
| + | |||
| + | location ~* ^/ | ||
| + | fastcgi_split_path_info ^(.+\.php)(/ | ||
| + | fastcgi_index index.php; | ||
| + | fastcgi_pass unix:/ | ||
| + | include fastcgi_params; | ||
| + | fastcgi_param | ||
| + | fastcgi_param | ||
| + | } | ||
| + | |||
| + | # Security stuff | ||
| + | location ~ /\.ht { | ||
| + | deny all; | ||
| + | } | ||
| + | |||
| + | Edit / | ||
| + | |||
| + | # wildcard subdomains | ||
| + | server { | ||
| + | listen 80; | ||
| + | |||
| + | server_name | ||
| + | if (!-d / | ||
| + | rewrite . http:// | ||
| + | } | ||
| + | root / | ||
| + | |||
| + | index index.php index.html index.htm; | ||
| + | include php-handler; | ||
| + | } | ||
| + | |||
| + | Link it as enabled | ||
| + | |||
| + | sudo ln -s / | ||
| + | |||
| + | Restart the services | ||
| + | |||
| + | sudo service php5-fpm restart | ||
| + | sudo service nginx restart | ||
| + | |||
| + | wget -O fuelphp-1.7.2.zip http:// | ||
| + | unzip fuelphp-1.7.2.zip | ||
| + | mv fuelphp-1.7.2 / | ||
| + | |||
| + | Edit / | ||
| + | |||
| + | <?php | ||
| + | header(' | ||
| + | ?> | ||
| + | |||
| + | Chmod it correctly: | ||
| + | |||
| + | sudo chown www-data: | ||
| + | </ | ||
/home/share/www/redox.ws/wiki/data/attic/linux/stuff.1442862648.txt.gz · Last modified: 2023/11/24 21:55 (external edit)