WebFaction
Community site: login faq

I need to set up HTTP authentication. I'm lost, I've researched and found the technique and code to validate $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'], and I think I understand that. However I don't understand how to set PHP_AUTH_USER and PHP_AUTH_PW ? I used print-r on $_SERVER and didn't see either? Do I somehow set these in a file somewhere on the server, or do I set using code?

asked 29 Mar '13, 11:16

elong
111
accept rate: 0%


You need to set those variables in your code. There is an example of how to set them based on HTTP authentication headers here: Fixing Authentication of ownCloud for webfaction

Hope that helps!

permanent link

answered 29 Mar '13, 12:29

seanf
12.2k42136
accept rate: 37%

thanks - I'll try that, it's a little over my head..But just to confirm, HTTP authentication will not work on Webfaction, without a work around? Thanks very much for your help

(29 Mar '13, 13:01) elong

PHP HTTP authentication works on WebFaction, provided you implement it the correct way, so if you want to call that a work-around, feel free :)

Theres an explanation of why it is necessary here: is possible HTTP authentication with PHP?

(29 Mar '13, 13:06) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262

question asked: 29 Mar '13, 11:16

question was seen: 3,536 times

last updated: 29 Mar '13, 13:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM