# HG changeset patch # User Pascal Bellard # Date 1219862499 0 # Node ID 32fa0b9984a6056b96a8600fe81eefcea27015b0 # Parent c74cae4e8a62c3bb26dbf45e45e8a8b53ba7967a php*admin: add apache support diff -r c74cae4e8a62 -r 32fa0b9984a6 phpldapadmin/receipt --- a/phpldapadmin/receipt Wed Aug 27 18:36:44 2008 +0000 +++ b/phpldapadmin/receipt Wed Aug 27 18:41:39 2008 +0000 @@ -31,6 +31,7 @@ $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpldapadmin/" => "/usr/share/phpldapadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf @@ -41,6 +42,28 @@ fi fi fi + # Configure apache server + if [ -f $1/etc/apache/httpd.conf ]; then + if [ ! -f $1/etc/apache/conf.d/phpldapadmin ]; then + cat > $1/etc/apache/conf.d/phpldapadmin < + Alias /phpldapadmin /usr/share/phpldapadmin + + + DirectoryIndex index.php + Options +FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + +EOT + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/apache stop + /etc/init.d/apache start + fi + fi + fi cat < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phpmyadmin/" => "/usr/share/phpmyadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf @@ -48,6 +49,28 @@ fi fi fi + # Configure apache server + if [ -f $1/etc/apache/httpd.conf ]; then + if [ ! -f $1/etc/apache/conf.d/phpmyadmin ]; then + cat > $1/etc/apache/conf.d/phpmyadmin < + Alias /phpmyadmin /usr/share/phpmyadmin + + + DirectoryIndex index.php + Options +FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + +EOT + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/apache stop + /etc/init.d/apache start + fi + fi + fi } repack_cleanup() diff -r c74cae4e8a62 -r 32fa0b9984a6 phppgadmin/receipt --- a/phppgadmin/receipt Wed Aug 27 18:36:44 2008 +0000 +++ b/phppgadmin/receipt Wed Aug 27 18:41:39 2008 +0000 @@ -32,6 +32,7 @@ $1/$INSTALLED/$PACKAGE/volatile.cpio.gz < "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/phppgadmin/" => "/usr/share/phppgadmin/",|g' -i $1/etc/lighttpd/lighttpd.conf @@ -42,6 +43,28 @@ fi fi fi + # Configure apache server + if [ -f $1/etc/apache/httpd.conf ]; then + if [ ! -f $1/etc/apache/conf.d/phppgadmin ]; then + cat > $1/etc/apache/conf.d/phppgadmin < + Alias /phppgadmin /usr/share/phppgadmin + + + DirectoryIndex index.php + Options +FollowSymLinks + AllowOverride None + Order allow,deny + Allow from all + +EOT + if [ -z "$1" ]; then + # Start Web server. + /etc/init.d/apache stop + /etc/init.d/apache start + fi + fi + fi cat << EOT ------ User 'postgres' can login on localhost without passwd after: