1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00

Use correct PHP_FPM socket paths for Debian

This commit is contained in:
J. King 2021-07-10 10:02:59 -04:00
parent c7dcc36ba1
commit 40a2856ae8
3 changed files with 6 additions and 3 deletions

View file

@ -11,8 +11,8 @@ arsse.php usr/share/arsse/
config.defaults.php etc/arsse/ config.defaults.php etc/arsse/
manual usr/share/doc/arsse/ manual usr/share/doc/arsse/
dist/man/* usr/share/man/ dist/man/* usr/share/man/
dist/nginx etc/arsse/
dist/apache etc/arsse/
dist/debian/config.php etc/arsse/ dist/debian/config.php etc/arsse/
dist/debian/dbconfig-common.php usr/share/arsse/ dist/debian/dbconfig-common.php usr/share/arsse/
debian/bin/arsse usr/bin/ debian/bin/arsse usr/bin/
debian/nginx etc/arsse/
debian/apache etc/arsse/

3
dist/debian/rules vendored
View file

@ -21,3 +21,6 @@ execute_before_dh_install:
mkdir -p debian/bin mkdir -p debian/bin
cp dist/arsse debian/bin/arsse cp dist/arsse debian/bin/arsse
sed -i -se 's/posix_getpwnam("arsse"/posix_getpwnam("www-data"/' debian/bin/arsse sed -i -se 's/posix_getpwnam("arsse"/posix_getpwnam("www-data"/' debian/bin/arsse
# Change PHP-FPM socket paths
cp -r dist/apache dist/nginx debian
sed -i -se 's/arsse\.sock/php-fpm.sock/' debian/apache/arsse.conf debian/nginx/arsse.conf

View file

@ -50,7 +50,7 @@ sudo dpkg-reconfigure arsse
# Web server configuration # Web server configuration
Sample configuration for both Nginx and Apache HTTP Server can be found in `/etc/arsse/nginx/` and `/etc/arsse/apache/`, respectively. The `example.conf` files are basic virtual host examples; the other files they include should normally be usable without modification, but may be modified if desired. Sample configuration for both Nginx and Apache HTTP Server can be found in `/etc/arsse/nginx/` and `/etc/arsse/apache/`, respectively. The `example.conf` files are basic virtual host examples; the other files they include should normally be usable without modification, but may be modified if needed or desired. In particularly users of older Debians may need to change the PHP-FPM socket path in Nginx or Apache's `arsse.conf`.
In order to use Apache HTTP Server the FastCGI proxy module must be enabled and the server restarted: In order to use Apache HTTP Server the FastCGI proxy module must be enabled and the server restarted: