[Unit] Description=Apache with PHP 7.2 After=network.target remote-fs.target nss-lookup.target [Service] Type=forking RootDirectory=/chroot/httpd72 RootDirectoryStartOnly=no Environment=APACHE_STARTED_BY_SYSTEMD=true ExecStart=/usr/sbin/apache2ctl-72 start ExecStop=/usr/sbin/apache2ctl-72 stop ExecReload=/usr/sbin/apache2ctl-72 graceful Restart=on-abort #ReadOnlyPaths=/chroot/httpd72/bin /chroot/httpd72/sbin /chroot/httpd72/lib /chroot/httpd72/lib64 /chroot/httpd72/usr /chroot/httpd72/boot /chroot/httpd72/etc /chroot/httpd72/opt #PrivateDevices=true #PrivateTmp=true #ProtectHome=true UMask=002 [Install] WantedBy=multi-user.target