Arch Linux
I started with a pre-fab VM image of Arch Linux

I used the grocy package in AUR

I installed yay-bin

I used Apache
yay -S apache php-apache

[arch@grocy-archlinux ~]$ systemctl status httpd.service 
○ httpd.service - Apache Web Server
     Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
     Active: inactive (dead)

sudo mkdir /etc/httpd/conf/vhosts

In /etc/httpd/conf/httpd.conf
Set these options to be uncommented or commented-out if they start with #
Include conf/vhosts/grocy.dom
LoadModule mpm_prefork_module modules/
#LoadModule mpm_event_module modules/
LoadModule rewrite_module modules/
Place this at the end of the LoadModule list:
LoadModule php_module modules/
AddHandler php-script .php
Place this at the end of the Include list:
Include conf/extra/php_module.conf

Change the hostname to be you hostname.
Create /etc/httpd/conf/vhosts/grocy.dom 
<VirtualHost *:80>

	DocumentRoot /usr/share/webapps/grocy/public
	AcceptPathInfo on

	<Directory /usr/share/webapps/grocy/public>
  	        Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Require all granted

	## Logging
	ErrorLog "/var/log/httpd/grocy_error.log"
	ServerSignature Off
	CustomLog "/var/log/httpd/grocy_access.log" combined 

By admin

Leave a Reply

Your email address will not be published.