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