Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

client.conf dones not get generated on install #140

Open
ekaftan opened this issue Apr 7, 2019 · 3 comments
Open

client.conf dones not get generated on install #140

ekaftan opened this issue Apr 7, 2019 · 3 comments

Comments

@ekaftan
Copy link

ekaftan commented Apr 7, 2019

  • PHP version: 5.5.21
  • MySQL version: 5.6.60
  • Webserver (Nginx, Apache...): apache
  • What is the expected behaviour? no error during install
  • What do you see instead? error 'cant open client.conf'
  • PHP logs on pastebin:

I am trying to install on centos 7. I upgraded php to 5.5 to get rid of an error with a function that was missing, I deinstalled and tried again. I am getting this errors on install (one for each client-conf directory)... selinux is disabled.

PHP Warning: file_get_contents(client-conf/gnu-linux/client.conf): failed to open stream: No such file or directory in /var/www/html/openvpn-admin/include/html/grids.php on line 131, referer: https://vpnserver.kdi.cl/openvpn-admin/index.php?installation

Any ideas what I did wrong? thanks!

@GiannisRallis
Copy link

GiannisRallis commented Oct 18, 2019

Same issue on Centos 7 any help? Any update? I have changed permissions and the file downloading as corrupted .zip file

PHP Warning: file_get_contents(client-conf/gnu-linux/client.conf): failed to open stream: No such file or directory in /var/www/html/openvpn-admin/include/html/grids.php on line 131, referer: http://192.168.1.209/openvpn-admin/index.php?admin

PHP Warning: file_get_contents(client-conf/osx-viscosity/client.conf): failed to open stream: No such file or directory in /var/www/html/openvpn-admin/include/html/grids.php on line 143, referer: http://192.168.1.209/openvpn-admin/index.php?admin

@GiannisRallis
Copy link

GiannisRallis commented Oct 18, 2019

Same issue on Centos 7 any help? Any update? I have changed permissions and the file downloading as corrupted .zip file

PHP Warning: file_get_contents(client-conf/gnu-linux/client.conf): failed to open stream: No such file or directory in /var/www/html/openvpn-admin/include/html/grids.php on line 131, referer: http://192.168.1.209/openvpn-admin/index.php?admin

PHP Warning: file_get_contents(client-conf/osx-viscosity/client.conf): failed to open stream: No such file or directory in /var/www/html/openvpn-admin/include/html/grids.php on line 143, referer: http://192.168.1.209/openvpn-admin/index.php?admin

I disabled SELinux and worked fine!! Centos 7

Open the /etc/selinux/config file and set the SELINUX mod to disabled

Reboot your system

@vicn1222
Copy link

Don't disable SELinux. Apache need to be able to write to the directory.

Do below:

  1. sudo setenforce 1
  2. sudo chown apache:apache -R openvpn-admin
  3. sudo chcon -Rt httpd_sys_rw_content_t openvpn-admin

If the above three lines still doesn't work, then do
sudo chmod 777 -R openvpn-admin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants