OpenVPN-Admin icon indicating copy to clipboard operation
OpenVPN-Admin copied to clipboard

zip file damaged

Open d4op opened this issue 6 years ago • 9 comments

all works fine. when i download the certs via zip. the zip is damaged why ? permission is right and files works when i download manaually from webroot folder via sftp.

d4op avatar Jul 29 '18 18:07 d4op

php zip module installed

d4op avatar Jul 29 '18 18:07 d4op

????????????????

d4op avatar Jul 29 '18 23:07 d4op

sudo service apache2 restart

faglo avatar Aug 03 '18 15:08 faglo

Didnt work

Von meinem iPad gesendet

Am 03.08.2018 um 17:24 schrieb faglo <[email protected]mailto:[email protected]>:

sudo service apache2 restart

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Chocobozzz/OpenVPN-Admin/issues/117#issuecomment-410288066, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALLcyttjD05YC1RCkZc4egb6iZpx-oWxks5uNGs4gaJpZM4Vlg8u.

d4op avatar Aug 03 '18 15:08 d4op

Yes I have the same issue the zip is corrupted once downloaded. I'm running on windows, winrar and the explorer can't open it

SilverSnake83 avatar Oct 16 '18 07:10 SilverSnake83

Can you check if its zip file, and not a text file with .zip extension. I had this issue on CentOS 7 due to selinux not allowing to run the zip command on client directory. check the logs, enable more verbose logs on your webserver, check selinux logs also. and also the permission of openvpn-admin directory and sub-directories.

lagman avatar Oct 20 '18 13:10 lagman

Indeed the zip file is in fact a txt file but it looks more like a .html file. openvpn-windows.txt

SilverSnake83 avatar Oct 22 '18 06:10 SilverSnake83

Take a look at the webserver log, you either don't have permission to write to "client-conf/" directory, or selinux is disallowing access, if you have it installed. Its on by default on Centos7. selinux wont allow the zip scripts and the sql connect script to run by default. The logs should show you where the scripts are failling.

lagman avatar Oct 22 '18 07:10 lagman

just change owner and permission chown www-data:www-data -R /var/www/ chmod 755 -R /var/www/

hmidani-abdelilah avatar Oct 16 '20 10:10 hmidani-abdelilah