Support

Admin Tools

#20699 404, when both .htaccess (sef-urls and admin-folder) are activated

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Friday, 26 September 2014 17:20 CDT

victorwooten
 I've got an 404 and cant access the backend anymore (joomla3), when .htaccess (sef-urls) is activated together with .htaccess from the akeeba Admin Tools (backend Admin-folder Safety).

Do you have an idea how to solve this?

Thanks
Frank

dlb
Frank,

Where are you getting the 404 error, in the back end, front end?

The Admin Tools .htaccess file in the /administrator folder is supposed to prompt you for a password whenever the contents of the /administrator folder or sub-folders are accessed. If you have a badly written program that calls back end assets from the front end, that will cause the prompt for a password when you don't expect it. If you cancel that prompt, you could get a 403 or 404.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

victorwooten
hello,
the error is only in the backend, when surfing to admin area. frontend is working. the backend-htaccess prompt doesnt appear. the 404 is immediately and not after a htaccess prompt.

thanks.

dlb
Please rename or delete the .htaccess file in the /administrator folder. This should allow you back in to the back end. I'm thinking the 404 error is on the .htpasswd file, witch is used for the back end password along with the .htaccess file.

If you get in, then you can regenerate the back end password and both files will be recreated.

If you still can't get in with the password disabled, then you need to check the server error log to find out what file is causing the 404 error. That will tell us where to go next.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

victorwooten
thanks.
i deleted htaccess and password-file, logged-in again, created a new one, but immediately received a 404 after creating.

dlb
You need to check the server error log. The 404 error there will tell you the name of the file that can't be found.

If you don't know where the error log is located, you will need to check with your host. Most hosts do make this available, but where and how vary greatly from one host to another. They will be able to help you with accessing the log.

Once we know what file is missing, that should tell us more about what to do next.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

victorwooten
thanks! i will do and reply then.

victorwooten
hello,
here is my server-log:

[Fri Aug 15 09:22:56 2014] [error] [client xxx] File does not exist: /xxx/public_html/brokervergleich/500.shtml, referer: http://xxx.info/administrator/index.php?option=com_admintools
[Fri Aug 15 09:22:56 2014] [error] [client xxx] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /xxx/public_html/brokervergleich/administrator/index.php, referer: http://xxx.info/administrator/index.php?option=com_admintools
[Fri Aug 15 09:22:42 2014] [error] [client xxx] File does not exist: /xxx/public_html/brokervergleich/404.shtml, referer: http://xxx.info/


thanks a lot.

dlb
Ah! There it is. Your system threw a 500 error. When your site couldn't find the "pretty" error page for the 500 error, it threw a 404 on the error page. The 404 error is a result, not the cause.

On to the 500 error, it looks like an out of memory error. It has something to do with your host's installation of suphp (part of the Apache server). You need to contact your host with that middle line in the error log and ask them if they can increase your memory allocation or suggest some other way around the error.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

victorwooten
hello!
the out of memory is another problem.
my support solved the issue:

the admin htaccess has to be changed from:

AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/xxx/.htpasswd"
require valid-user

RewriteEngine On
RewriteRule \.htpasswd$ - [F,L]


to

AuthName "Authorisation Required"
AuthUserFile "/home/xxx/.htpasswd"
AuthType Basic
require valid-user
ErrorDocument 401 "Authorisation Required"


now it is working.
just for your information.

thanks!

dlb
I'm glad you got it working!


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!