Forum Moderators: coopster
Since then I have made zero changes to those 2 scripts, but now the password parts will not allow access. The same server lists the current php mod as PHP-CGI/0.1b, so at some point (unbeknowst to me) there was a changeover.
I have read at various forum postings that some php password scripts cannot be run with the PHP-CGI mod because of the way the http authentication works (?).
If that is true, does anyone have any recommendations as to how we can make the password portion of a once perfectly good script work correctly again (when PHP-CGI/0.1b is on the server)? I'd love to find that there is some sort of "quick fix" available, though things rarely work that way.
For example, does server technology allow both PHP/4.3.3 and PHP-CGI to be run simultaneously (I'm guessing they cannot)? If I'm wrong and they can be run together, then I'll ask the server tech support to do that.
Given how many password scripts are available, this may be a fairly common problem, so any suggestions as to how to handle this apparent conflict are appreciated...
..........................
I did manage to fix the problem bij adding directory security using a .htaccess file in the root of de directory.
use "htpasswd -bc ./_private/service.pwd <username> <password>" to create a password file.
create a .htaccess file and add the following lines:
AuthType Basic
require valid-user
AuthName "Website Authentication System"
AuthUserFile ./_private/service.pwd
that's all.
If you are not able to do this, you might be able to use cPanel at your isp's (internet service provider) website. Use the option "Directory security".
If not, send a mail to your ISP telling him to downgrade or offer you an option to fix it.
If not, switch provider.
Good luck.
Peter