philbertphotos / osticket-multildap-auth-plugin

Plugin for OS Ticket that allows for authentication with multiple domains.
GNU General Public License v3.0
28 stars 17 forks source link

First run configuration error. Unable to copy files #13

Closed Reggaewaldo closed 6 years ago

Reggaewaldo commented 6 years ago

Hi,

I have an issue where during the first run I get the following error message while browsing OSTicket:

First run configuration error. Unable to copy files

From what I understand the function can not copy the file sync_mldap.php to my scp directory.

Checking my apache webserver error.log gives the following:

[Tue Feb 20 11:21:18.412836 2018] [:error] [pid 63208] [client 192.168.20.207:60195] PHP Warning:  copy(/var/www/support/public_html/include/..//scp/sync_mldap.php): failed to open stream: Permission denied in /var/www/support/public_html/include/plugins/multi-ldap/auth.php on line 270, referer: http://support/scp/index.php
[Tue Feb 20 11:21:26.169369 2018] [:error] [pid 63213] [client 192.168.20.207:60201] PHP Warning:  copy(/var/www/support/public_html/include/..//scp/sync_mldap.php): failed to open stream: Permission denied in /var/www/support/public_html/include/plugins/multi-ldap/auth.php on line 270, referer: http://support/scp/index.php
[Tue Feb 20 11:21:26.221915 2018] [:error] [pid 63213] [client 192.168.20.207:60201] PHP Warning:  copy(/var/www/support/public_html/include/..//scp/sync_mldap.php): failed to open stream: Permission denied in /var/www/support/public_html/include/plugins/multi-ldap/auth.php on line 270, referer: http://support/scp/index.php

Which lead me to believe that there was something wrong with permissions on the machine. Therefore I checked what user was running the apache and changed the osticket folder to match that. That did not help. So I tried by giving full rights to all folders & files in my OSticket.

I also tried a workaround by copying sync_mldap.php to my scp directory by myself but that did not function either. The same error message is returned.

I'm running:

osTicket Version v1.10.1 (9ae093d) — Up to date
Web Server Software Apache/2.4.18 (Ubuntu)
MySQL Version 5.7.20
PHP Version 7.0.22-0ubuntu0.16.04.1

I'm unsure if it is an issue with the code or if it is an issue with my setup as of now.

Reggaewaldo commented 6 years ago

I managed to get it working after reinstalling the plugin completely and copying the sync_mldap.php before activating the plugin. I can authenticate without any issues, the sync however does not work as of now. I will proceed with closure of this as the reported issue is now fixed.