• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk 12.5 Debian 8

UweP

Regular Pleskian
Hi. I'm currently having two problems with apache2.4 on deb8 and plesk 12.5. I have the following:

#Alias /owncloud "/var/www/owncloud/"

<Directory "/var/www/owncloud">
Options +FollowSymLinks
AllowOverride All

<IfModule mod_dav.c>
Dav off
</IfModule>

Require all granted

SetEnv HOME /var/www/owncloud
SetEnv HTTP_HOME /var/www/owncloud
</Directory>

<Directory "/var/www/owncloud/data/">
# just in case if .htaccess gets disabled
Require all denied
</Directory>

and

<VirtualHost 176.9.83.139:80>
ServerName cloud.freakyonline.de
DocumentRoot /var/www/owncloud
Redirect permanent / https://cloud.freakyonline.de/

<Directory /var/www/owncloud/>
Require all granted
</Directory>

</VirtualHost>

<VirtualHost 176.9.83.139:443>
ServerName cloud.freakyonline.de
DocumentRoot /var/www/owncloud/
Header always add Strict-Transport-Security "max-age=15768000"

<Directory /var/www/owncloud/>
Require all granted
</Directory>

</VirtualHost>

Now when I try to go to http://cloud.freakyonline.de it redirects me to the plesk default domain. when i go to https://cloud.freakyonline.de it works but .. still my desktop owncloud client cant sync because it says status.php not found ... but if i go to http://cloud.freakyonline.de/status.php it gives me output?
i want the https redirect to work and the client.

-------------------------------------

second problem:
I have:

# phpMyAdmin default Apache configuration

Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php

Require ip 127.0.0.1 10.0.0.0/24

<IfModule mod_php5.c>
<IfModule mod_mime.c>
AddType application/x-httpd-php .php
</IfModule>
<FilesMatch ".+\.php$">
SetHandler application/x-httpd-php
</FilesMatch>

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/
</IfModule>

Require all granted

</Directory>

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authz_core.c>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</IfModule>
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Require all denied
</Directory>


But if I go to https/http://freakyonline.de/phpmyadmin it just tells me: File not found.
I want to reach the phpmyadmin installation (apt-get install phpmyadmin). the /usr/share/phpmyadmin/ directory is there and a index.php also.


thank you very much.

freaky.
 
Back
Top