Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Migrating from HTTPD on CentOS to Apache2 on Ubuntu |
|
| Author |
|
gw1500se
Joined: 03 Dec 2014 Posts: 5
|
Posted: Mon 16 Feb '26 18:47 Post subject: Migrating from HTTPD on CentOS to Apache2 on Ubuntu |
|
|
I have apache2 working on Ubuntu with the exception of mysql. I tried simply copying the HTTPD config into sites-available but get a syntax error on the loadmodule directives. There is no modules directory so obviously the migration is not as straight forward as I hoped. How do I load the mysql modules? TIA.
Here is the relevant code from the HTTPD configuration (the second directory does not use mysql but I left it in case that will cause an error as well).
| Code: | .
.
.
</VirtualHost>
LoadModule dbd_module modules/mod_dbd.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
<IfModule mod_dbd.c>
DBDriver mysql
DBDParams "dbname=mydb user=apache pass=passwd"
DBDMin 1
DBDKeep 8
DBDMax 20
</IfModule>
<Directory "/var/www/html/cufs/cufsauth/">
AuthName "blah blah"
AuthType Basic
require valid-user
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT pwd FROM tablename WHERE username=%s"
</Directory>
<Directory "/var/www/html/backupmgr/">
AuthType Basic
AuthName "Backup Manager Administration"
AuthUserFile "/var/www/passwords"
Require valid-user
</Directory>
|
|
|
| Back to top |
|
|
|
|
|
|