Error saving profile

I have modified my installation to allow logging in from the web using a password protected admin.php. Since then I have not been able to save a beer profile. I tried the fix permissions script but still no good.

Apache error logged this.
[Sun Feb 21 18:50:45.356061 2016] [access_compat:error] [pid 7214] [client 192.168.10.111:61295] AH01797: client denied by server configuration: /var/www/save_beer_profile.php, referer: http://192.168.10.123/admin.php

I had a typo in the .htaccess file. corrected that and it works now.

Hi Ron,

Can you tell me what your typo in the .htaccess file was? I am having the exact same problem as you. I deleted the space in the “save_beer_profile.php” But I am still unable to save from the admin page.

Thank you

Nick

Yes, in my case in the “Allow from” line I had dropped the 1 from the IP address. Instead of writing Allow from 192.168, I had written Allow from 192.68.

the .htaccess file should read

<FilesMatch "admin.php>
Allow from all
authuserFile /var/www/private/.htpasswd
Authname "**"
Authtype Basic

require valid-user


<FilesMatch "admin.php>
Allow from all
authuserFile /var/www/private/.htpasswd
Authname "Brewski"
Authtype Basic

require valid-user


<FilesMatch “beer-panel.php|config.php|configuration.php|control-panel.php|maintenance-panel.php|previous_beers.php|program_arduino.php|s ave_beer_profile.php|start_script.php”>
order deny,allow
Deny from All
Allow from 192.168.