Skip to content

Commit

Permalink
fixing githut display using markdown cheatsheets
Browse files Browse the repository at this point in the history
  • Loading branch information
npatel2012 committed Dec 7, 2015
1 parent dd4c479 commit 8a0b42e
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# myfaq-php-isa
## myfaq-php-isa
phpMyFAQ code goes here and maintained by the ISA team

## What to do to collaborate?

If you want to have a local copy running for testing purposes, please, use the following steps as a guideline:

. Install a server with RHEL7 (or other compatible LAMP server)
. Git clone the source to your DocumentRoot folder
. Create a copy of the phpMyFAQ database
. Configure the system with Red Hat specifics
. Make your changes, test them, send us your Pull request
* Install a server with RHEL7 (or other compatible LAMP server)
* Git clone the source to your DocumentRoot folder
* Create a copy of the phpMyFAQ database
* Configure the system with Red Hat specifics
* Make your changes, test them, send us your Pull request


## Install a server with RHEL7 (or other compatible LAMP server)

. Install a RHEL7 Server choosing the "Basic Web Server" environment
. Follow the instructions from the upstram project http://www.phpmyfaq.de/docs/2.8#2.1
* Install a RHEL7 Server choosing the "Basic Web Server" environment
* Follow the instructions from the upstram project http://www.phpmyfaq.de/docs/2.8#2.1


## 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 @@ -32,29 +32,31 @@ 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
### Prepare the server:
>> yum install mysql-server
>> service mysqld on
>> mysql_secure_installation
### Create the dev database:

# 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
>> mysql devfaqdb < $DOCUMENTROOT/myphpfaq/dbsample/faq.sql

## Configure the system with Red Hat specifics

# Optional:
### Optional:
Edit .htaccess and change:
RewriteBase /


### Database configuration: Edit config/database.php to set the DB access:

```
<?php
$DB['server'] = 'localhost';
$DB['user'] = 'devfaquser';
Expand All @@ -63,10 +65,11 @@ $DB['db'] = 'devfaqdb';
$DB['prefix'] = '';
$DB['type'] = 'mysqli';
?>

```

### LDAP config integration: Edit config/ldap.php to look like:

```
<?php
// Main LDAP server
$PMF_LDAP['ldap_server'] = 'ldaps://ldap.corp.redhat.com';
Expand All @@ -75,9 +78,10 @@ $PMF_LDAP['ldap_user'] = '';
$PMF_LDAP['ldap_password'] = '';
$PMF_LDAP['ldap_base'] = 'ou=users,dc=redhat,dc=com';
?>
```


# Edit config/constants_ldap.php and do the following changes:
### Edit config/constants_ldap.php and do the following changes:
...
// Datamapping - in this example for an ADS
$PMF_LDAP['ldap_mapping'] = array (
Expand Down

0 comments on commit 8a0b42e

Please sign in to comment.