####################1. terus install################################################
pkg install phpldapadmin
####################2. terus dapat message##########################################
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 5 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
phpldapadmin: 1.2.3_7,1
php56-iconv: 5.6.24
libiconv: 1.14_9
php56-ldap: 5.6.24
php56-gettext: 5.6.24
Number of packages to be installed: 5
The process will require 5 MiB more space.
1 MiB to be downloaded.
Proceed with this action? [y/N]: y
Fetching phpldapadmin-1.2.3_7,1.txz: 76% 630 KiB 81.9kB/s 00:01 ETA
####################3. sekejab je dah siap##########################################
Message from phpldapadmin-1.2.3_7,1:
phpldapadmin-1.2.3_7,1 has been installed into:
/usr/local/www/phpldapadmin
Please edit config.php to suit your needs.
To make phpLDAPadmin available through your web site, I suggest that
you add something like the following to httpd.conf:
Alias /phpldapadmin/ "/usr/local/www/phpldapadmin/htdocs/"
<Directory "/usr/local/www/phpldapadmin/htdocs">
Options none
AllowOverride none
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>
####################4.follow je nasihat atas tu#####################################
ee /usr/local/etc/apache24/httpd.conf
####################5. tambah line kat mana2 yang sesuai, tak confident letak kat hujung sekali####################
Alias /phpldapadmin/ "/usr/local/www/phpldapadmin/htdocs/"
<Directory "/usr/local/www/phpldapadmin/htdocs">
Options none
AllowOverride none
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>
####################6. save file dan restart apache#################################
apachectl restart
####################7. tunggu punya tunggu banyak plak warning######################
Performing sanity check on apache24 configuration:
AH00557: httpd: apr_sockaddr_info_get() failed for FWG103nad_iHACK16
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
Stopping apache24.
Waiting for PIDS: 756.
Performing sanity check on apache24 configuration:
AH00557: httpd: apr_sockaddr_info_get() failed for FWG103nad_iHACK16
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
Starting apache24.
AH00557: httpd: apr_sockaddr_info_get() failed for FWG103nad_iHACK16
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
####################8. test dulu kat browser########################################
http://192.168.184.132/phpldapadmin/
####################9. tak boleh masuk plak#########################################
Forbidden
You don't have permission to access /phpldapadmin/ on this server.
####################10. apalagi tukar sahaja kat /usr/local/etc/apache24/httpd.conf alamat 127.0.0.1 kepada 192.168.184.1. save dan restart apache.####################
congratulation!!!
No comments:
Post a Comment