Skip to content

Commit

Permalink
fixing README file display
Browse files Browse the repository at this point in the history
  • Loading branch information
npatel2012 committed Dec 7, 2015
1 parent 8a0b42e commit 7690e85
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ If you want to have a local copy running for testing purposes, please, use the f
## Git clone the source to your DocumentRoot folder

Note: Web Server specific configuration outside of the scope for this document.
> cd $DOCUMENTROOT
> git clone https://github.com/npatel2012/myfaq-php-isa.git myphpfaq.dev

```
cd $DOCUMENTROOT
git clone https://github.com/npatel2012/myfaq-php-isa.git myphpfaq.dev
```

Note: You can use other destination directory. Change it if needed.

Expand All @@ -33,19 +35,23 @@ Note: You can use other destination directory. Change it if needed.
Note: Use the provided sample available on $DOCUMENTROOT/myphpfaq/dbsample/faq.sql

### Prepare the server:
>> yum install mysql-server
>> service mysqld on
>> mysql_secure_installation
```
yum install mysql-server
service mysqld on
mysql_secure_installation
```

### Create the dev database:

```
mysql> CREATE DATABASE devfaqdb;
mysql> GRANT USAGE ON *.* TO 'devfaquser'@'localhost' IDENTIFIED BY 'change-this-dev-password';
mysql> GRANT ALL PRIVILEGES ON `devfaqdb`.* TO 'devfaquser'@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> \q
>> mysql devfaqdb < $DOCUMENTROOT/myphpfaq/dbsample/faq.sql
(Optional) mysql devfaqdb < $DOCUMENTROOT/myphpfaq/dbsample/faq.sql
```

## Configure the system with Red Hat specifics

Expand Down Expand Up @@ -82,14 +88,15 @@ $PMF_LDAP['ldap_base'] = 'ou=users,dc=redhat,dc=com';


### Edit config/constants_ldap.php and do the following changes:
...
```
// Datamapping - in this example for an ADS
$PMF_LDAP['ldap_mapping'] = array (
'name' => 'cn',
'username' => 'uid',
'mail' => 'mail'
);
...
// Option to use anonymous LDAP connection (without username and password)
// Default: false
$PMF_LDAP['ldap_use_anonymous_login'] = true;
```

0 comments on commit 7690e85

Please sign in to comment.