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