DirectAdmin sign in problem

Status
Not open for further replies.

spacresx

Community Advocate
Community Support
Messages
2,203
Reaction score
196
Points
63
@Anna
first, glad to see i was finally migrated after the long wait.
i was able to sign in to directadmin just fine the first time,
but i was logged out after a while and could not sign back in.
now i just get this page ...

Sign in Successful
Please standby while transfer you to your web hosting account.


An error has occurred forwarding your sign in. Retry

Second, i was able to parse php code inside .html files before,
like using php code to display the time etc...
but now my browser just tries to download it instead.
but still runs it properly if its a php file,
How to get the html to parse php code ?
 

Anna

I am just me
Staff member
Messages
11,772
Reaction score
591
Points
113
For the first issue, your IP was blocked due to too many failed login attempts, I have now unblocked your IP so you should be able to get to DirectAdmin again.

For the second, it is possible that you would need to add a directive to tell the server to parse html as containing php (ie let them run through php interpertator), this may work although I didn't test it:

Edit/create .htaccess to contain the following line, without qoutes: "AddHandler cgi-script .html .htm"
 

spacresx

Community Advocate
Community Support
Messages
2,203
Reaction score
196
Points
63
@Anna
thanks for unblocking me, although i dont see how i did to many logins.
i was logged out for some reason automatically,and then just tried to log
back in but couldnt.

i tried adding
"AddHandler cgi-script .html .htm"
(without quotes) but my test page would not load at all.
i got a page redirect error instead.
in case it makes a difference the test page is in a sub-folder.
the test page is simply an html page with
<?php phpinfo(); ?>
in it and it shows nothing technically it should display php information.
it works if renamed to test.php but not work as test.html

i need the option to use php codes in html files for some things i do.
 

Anna

I am just me
Staff member
Messages
11,772
Reaction score
591
Points
113
I can see that you in the .htaccess have some code for that, although most of it marked of as a comment (the # at start of line), would be a matter of finding which option works for the setup on the new server I guess

Another suggestion I found when poking around is: AddHandler fcgid-script .html .htm
 

spacresx

Community Advocate
Community Support
Messages
2,203
Reaction score
196
Points
63
@Anna,
Thanks, but that didnt work either.
the commented (#) lines were ones ive tried so far that did not work.
(just as a reminder so i dont keep trying the same ones over again)
at least until i get one that will work.

it might help if i knew the exact path to the php version used.
i set php 5.6 in the DA options.
(outdated i know but it usually worked for me)

unless there is something Admins overlooked during migration?
because i was able to use php in html files before the migration.
 

spacresx

Community Advocate
Community Support
Messages
2,203
Reaction score
196
Points
63
Thanks Anna, i got it to work ok now.
changed to php 7.2 then added this to htaccess...
AddHandler application/x-httpd-php72 .html .htm
lets me use php code in html files again.
 

Anna

I am just me
Staff member
Messages
11,772
Reaction score
591
Points
113
Great that you found the option that does work for you.
 
Status
Not open for further replies.
Top