User talk:Jbilyk: Difference between revisions
m (formatting) |
(Added php in Apache how-to) |
||
Line 30: | Line 30: | ||
-----<br /> | -----<br /> | ||
Restart apache and test<br /> | Restart apache and test<br /> | ||
---------------------------------------------<br /> | |||
PHP in Apache (temp until package made)<br /> | |||
Checkout aports git repo<br /> | |||
modify APKBUILD, adding --with-apxs2 to configure string<br /> | |||
run abuild -r<br /> | |||
Since package doesn't completely build like that, wait until build fails<br /> | |||
Copy /usr/src/aports/main/php/pkg/php/usr/lib/apache2/libphp5.so to /usr/lib/apache2/<br /> | |||
Add the following to /etc/apache2/httpd.conf:<br /> | |||
LoadModule php5_module lib/apache2/libphp5.so | |||
DirectoryIndex index.html index.php | |||
AddHandler php5-script php | |||
AddType text/html php | |||
Restart apache. |
Revision as of 10:20, 4 August 2010
This page is a work in progress ... This page is still being developed. |
NTLM single sign on under Apache
Prereqs:
From http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/:
mod_auth_ntlm_winbind.c
configure.in
Makefile.in
autoconf
alpine-sdk
apache-dev
apr-util-dev
apr-dev
samba (joined to a Windows Domain) with winbind running
Steps:
working dir is where the above 3 source files are
autoconf
./configure
make
add to httpd.conf (module section):
LoadModule auth_ntlm_winbind_module lib/apache2/mod_auth_ntlm_winbind.so
add to httpd.conf (virtual host):
AuthType NTLM
NTLMauth on
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
Require user jbilyk
Restart apache and test
PHP in Apache (temp until package made)
Checkout aports git repo
modify APKBUILD, adding --with-apxs2 to configure string
run abuild -r
Since package doesn't completely build like that, wait until build fails
Copy /usr/src/aports/main/php/pkg/php/usr/lib/apache2/libphp5.so to /usr/lib/apache2/
Add the following to /etc/apache2/httpd.conf:
LoadModule php5_module lib/apache2/libphp5.so DirectoryIndex index.html index.php AddHandler php5-script php AddType text/html php
Restart apache.