cyberorg / openvpn-web-gui

Fork from https://www.gitorious.org/openvpn-web-gui to get it working on openSUSE
11 stars 5 forks source link

blank page #4

Open Rob78 opened 7 years ago

Rob78 commented 7 years ago

The http://localhost/openvpn-web-gui/index.php shows a blank page. http://localhost/openvpn-web-gui/info.php works fine. Any ideas?

cyberorg commented 7 years ago

Check webserver error_log.

Rob78 commented 7 years ago

ohhh I see.

PHP Warning: file(/etc/openvpn/openvpn-status.log): failed to open stream: Permission denied in /var/www/html/openvpn-web-gui/include/openvpn-functions.inc

Ill get working on that today.

Thank you very much I am a complete noob at this

Rob78 commented 7 years ago

I was able to allow access to /etc/openvpn/openvpn-status.log however I am still getting a blank page. I am looking into turning on php error reporting

Rob78 commented 7 years ago

after much research I have been able to turn on error reporting. =D I get the following error

Fatal error: Cannot redeclare ErrorHandler() (previously declared in /var/www/html/openvpn-web-gui/index.php:31) in /var/www/html/openvpn-web-gui/config.inc on line 31 E_ERROR Error in file �config.inc� at line 31: Cannot redeclare ErrorHandler() (previously declared in /var/www/html/openvpn-web-gui/index.php:31)

=( false alarm that error code is because I used some lines to display error code. I added those lines at the beginning of index.php config.inc and include/functions.inc. I have now deleted those lines from config.inc and functions.inc. Problem persists white page =(