# Apache users from MySQL database

**URL:** <https://community.unix.com/t/apache-users-from-mysql-database/334625>\
**Category:** Web Development\
**Created:** [September 24, 2013, 2:02am UTC](https://community.unix.com/t/apache-users-from-mysql-database/334625 "2013-09-24T02:02:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo\_ultra\_leo](https://community.unix.com/letter_avatar/leo_ultra_leo/32/5_5575768a8748004e209b776fc1b2916d.png) [@leo\_ultra\_leo](https://community.unix.com/u/leo_ultra_leo)\
**Post date:** [September 24, 2013, 2:02am UTC](https://community.unix.com/t/apache-users-from-mysql-database/334625/1 "2013-09-24T02:02:36Z")

</div>

Hi team,

How can I implement a users in MySQL database for Apache users, assuming that I'm using RHEL6. That is to say, how can I design this database and how let's Apache server know those user in this database.

Thanks in advance..

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [September 24, 2013, 3:16am UTC](https://community.unix.com/t/apache-users-from-mysql-database/334625/2 "2013-09-24T03:16:23Z")

</div>

You mean for a login page? ... or for HTTPD level access control?

---

<div class="post-metadata">

**Author:** ![leo\_ultra\_leo](https://community.unix.com/letter_avatar/leo_ultra_leo/32/5_5575768a8748004e209b776fc1b2916d.png) [@leo\_ultra\_leo](https://community.unix.com/u/leo_ultra_leo)\
**Post date:** [September 24, 2013, 3:25am UTC](https://community.unix.com/t/apache-users-from-mysql-database/334625/3 "2013-09-24T03:25:49Z")

</div>

For the login page only..

---

<div class="post-metadata">

**Author:** ![Scott](https://community.unix.com/letter_avatar/scott/32/5_5575768a8748004e209b776fc1b2916d.png) [@Scott](https://community.unix.com/u/Scott)\
**Post date:** [September 25, 2013, 9:50pm UTC](https://community.unix.com/t/apache-users-from-mysql-database/334625/4 "2013-09-25T21:50:40Z")

</div>

The simplest way to do that it to put the configuration items (username, password, database name or connection string, etc.) into a configuration file and use the include, or requireonce directive to load the file in each of your PHP files that require it.
