http://localhost:80 (as well as simply
http://localhost) shows the Zoneminder index page, but without stying, obviously css not loaded. (the styled page appears under localhost/zm)
Before the ZoneMinder install it was apache's "it works".
Code: Select all
# grep -r "\/srv\/www\/htdocs" /etc/apache2/
/etc/apache2/conf.d/phpMyAdmin.conf:<Directory /srv/www/htdocs/phpMyAdmin>
/etc/apache2/conf.d/phpMyAdmin.conf: php_admin_value open_basedir "/srv/www/htdocs/phpMyAdmin:/var/lib/php5:/tmp:/usr/share/doc/packages/phpMyAdmin:/etc/phpMyAdmin:/proc/meminfo:/proc/stat"
/etc/apache2/conf.d/phpMyAdmin.conf: php_admin_value open_basedir "/srv/www/htdocs/phpMyAdmin:/var/lib/php7:/tmp:/usr/share/doc/packages/phpMyAdmin:/etc/phpMyAdmin:/proc/meminfo:/proc/stat"
/etc/apache2/conf.d/phpMyAdmin.conf:<Directory /srv/www/htdocs/phpMyAdmin/libraries>
/etc/apache2/conf.d/phpMyAdmin.conf:<Directory /srv/www/htdocs/phpMyAdmin/templates>
/etc/apache2/conf.d/phpMyAdmin.conf:<Directory /srv/www/htdocs/phpMyAdmin/tmp>
/etc/apache2/default-server.conf:DocumentRoot "/srv/www/htdocs"
/etc/apache2/default-server.conf:<Directory "/srv/www/htdocs">
/etc/apache2/vhosts.d/vhost-ssl.template: DocumentRoot "/srv/www/htdocs"
/etc/apache2/vhosts.d/zm.conf: <Directory /srv/www/htdocs/zm/events/>
Code: Select all
# find / -name sites-enabled
find: ‘/run/user/1000/gvfs’: Permission denied
I've come across a file "sites-enabled" during my google search, but on my computer it doesn't exist. This is an OpenSuse 15.2 Linux and maybe apache standard install is slightly different?
"a2ensite" and it's counterpart are not installed here.
I've seen that there exists a file "zm.conf" in /etc/apache2/vhosts.d that cotains the following:
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/usr/share/zoneminder/www"
# Order matters. This alias must come first.
Alias /zm/cache "/var/cache/zoneminder/"
# IF you aren't using /zm in the url to access ZM then uncomment the following line as well
# Alias /cache "/var/cache/zoneminder/cache"
<Directory "/var/cache/zoneminder/">
Options -Indexes +FollowSymLinks
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
ScriptAlias /zm/cgi-bin/ "/usr/lib/zoneminder/cgi-bin"
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
Options -Indexes +FollowSymLinks
AllowOverride All
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Allow from all
</IfModule>
</Directory>
# For better visibility, the following directives have been migrated from the
# default .htaccess files included with the CakePHP project.
# Parameters not set here are inherited from the parent directive above.
<Directory "/usr/share/zoneminder/www/api">
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
RewriteBase /zm/api
</Directory>
<Directory "/usr/share/zoneminder/www/api/app">
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
RewriteBase /zm/api
</Directory>
<Directory "/usr/share/zoneminder/www/api/app/webroot">
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteBase /zm/api
</Directory>
# Use the first option to have Apache logs written to the general log
# directory, or the second to have them written to the regular Apache
# directory (you may have to change the path to that used on your system)
ErrorLog /var/log/zm/apache-error.log
#ErrorLog /var/log/httpd/zm-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
# Use the first option to have Apache logs written to the general log
# directory.
#CustomLog /var/log/zm/apache-access.log combined
# for old install disable direct image access
<Directory /srv/www/htdocs/zm/events/>
Require all denied
</Directory>
</VirtualHost>
I have never dealt with Virtual Hosts and don't kow if I just have to add another virtual host (and how) that would re-enable my /srv/www/htdocs document root without disturbing zm install... Also I don't know, if there were other files added or changed during ZoneMinder install...