wok rev 1314
php*admin: add apache support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 27 18:41:39 2008 +0000 (2008-08-27) |
parents | c74cae4e8a62 |
children | 41897da4a1db |
files | phpldapadmin/receipt phpmyadmin/receipt phppgadmin/receipt |
line diff
1.1 --- a/phpldapadmin/receipt Wed Aug 27 18:36:44 2008 +0000 1.2 +++ b/phpldapadmin/receipt Wed Aug 27 18:41:39 2008 +0000 1.3 @@ -31,6 +31,7 @@ 1.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 1.5 etc/phpldapadmin/config.php 1.6 EOT 1.7 + # Configure lighttpd server 1.8 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.9 if ! grep -q /usr/share/phpldapadmin/ $1/etc/lighttpd/lighttpd.conf; then 1.10 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 1.11 @@ -41,6 +42,28 @@ 1.12 fi 1.13 fi 1.14 fi 1.15 + # Configure apache server 1.16 + if [ -f $1/etc/apache/httpd.conf ]; then 1.17 + if [ ! -f $1/etc/apache/conf.d/phpldapadmin ]; then 1.18 + cat > $1/etc/apache/conf.d/phpldapadmin <<EOT 1.19 +<IfModule mod_alias.c> 1.20 + Alias /phpldapadmin /usr/share/phpldapadmin 1.21 +</IfModule> 1.22 +<DirectoryMatch /usr/share/phpldapadmin/> 1.23 + DirectoryIndex index.php 1.24 + Options +FollowSymLinks 1.25 + AllowOverride None 1.26 + Order allow,deny 1.27 + Allow from all 1.28 +</DirectoryMatch> 1.29 +EOT 1.30 + if [ -z "$1" ]; then 1.31 + # Start Web server. 1.32 + /etc/init.d/apache stop 1.33 + /etc/init.d/apache start 1.34 + fi 1.35 + fi 1.36 + fi 1.37 cat <<EOT 1.38 ------ 1.39 Login DN and password are found in /etc/openldap/slapd.conf with rootdn and rootpw keywords:
2.1 --- a/phpmyadmin/receipt Wed Aug 27 18:36:44 2008 +0000 2.2 +++ b/phpmyadmin/receipt Wed Aug 27 18:41:39 2008 +0000 2.3 @@ -38,6 +38,7 @@ 2.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 2.5 etc/phpmyadmin/config.inc.php 2.6 EOT 2.7 + # Configure lighttpd server 2.8 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 2.9 if ! grep -q /usr/share/phpmyadmin/ $1/etc/lighttpd/lighttpd.conf; then 2.10 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 2.11 @@ -48,6 +49,28 @@ 2.12 fi 2.13 fi 2.14 fi 2.15 + # Configure apache server 2.16 + if [ -f $1/etc/apache/httpd.conf ]; then 2.17 + if [ ! -f $1/etc/apache/conf.d/phpmyadmin ]; then 2.18 + cat > $1/etc/apache/conf.d/phpmyadmin <<EOT 2.19 +<IfModule mod_alias.c> 2.20 + Alias /phpmyadmin /usr/share/phpmyadmin 2.21 +</IfModule> 2.22 +<DirectoryMatch /usr/share/phpmyadmin/> 2.23 + DirectoryIndex index.php 2.24 + Options +FollowSymLinks 2.25 + AllowOverride None 2.26 + Order allow,deny 2.27 + Allow from all 2.28 +</DirectoryMatch> 2.29 +EOT 2.30 + if [ -z "$1" ]; then 2.31 + # Start Web server. 2.32 + /etc/init.d/apache stop 2.33 + /etc/init.d/apache start 2.34 + fi 2.35 + fi 2.36 + fi 2.37 } 2.38 2.39 repack_cleanup()
3.1 --- a/phppgadmin/receipt Wed Aug 27 18:36:44 2008 +0000 3.2 +++ b/phppgadmin/receipt Wed Aug 27 18:41:39 2008 +0000 3.3 @@ -32,6 +32,7 @@ 3.4 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT 3.5 etc/phppgadmin/config.inc.php 3.6 EOT 3.7 + # Configure lighttpd server 3.8 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 3.9 if ! grep -q /usr/share/phppgadmin/ $1/etc/lighttpd/lighttpd.conf; then 3.10 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf 3.11 @@ -42,6 +43,28 @@ 3.12 fi 3.13 fi 3.14 fi 3.15 + # Configure apache server 3.16 + if [ -f $1/etc/apache/httpd.conf ]; then 3.17 + if [ ! -f $1/etc/apache/conf.d/phppgadmin ]; then 3.18 + cat > $1/etc/apache/conf.d/phppgadmin <<EOT 3.19 +<IfModule mod_alias.c> 3.20 + Alias /phppgadmin /usr/share/phppgadmin 3.21 +</IfModule> 3.22 +<DirectoryMatch /usr/share/phppgadmin/> 3.23 + DirectoryIndex index.php 3.24 + Options +FollowSymLinks 3.25 + AllowOverride None 3.26 + Order allow,deny 3.27 + Allow from all 3.28 +</DirectoryMatch> 3.29 +EOT 3.30 + if [ -z "$1" ]; then 3.31 + # Start Web server. 3.32 + /etc/init.d/apache stop 3.33 + /etc/init.d/apache start 3.34 + fi 3.35 + fi 3.36 + fi 3.37 cat << EOT 3.38 ------ 3.39 User 'postgres' can login on localhost without passwd after: