LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2019, 10:37 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Rep: Reputation: 271Reputation: 271Reputation: 271
buildapache & building Apache with MySQL


https://documentation.cpanel.net/dis...ariaDB+Upgrade sez:
Quote:
If the buildapache application uses the MySQL libraries and headers on the server itself, and you change the MySQL version, Apache cannot function correctly.
What is the buildapache application? By 'MySQL libraries and headers on the server itself' do they mean building Apache so that it uses MySQL internally? Would httpd be linked to libmysql.so if this were the case?
 
Old 03-23-2019, 10:53 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
https://duckduckgo.com/?q=%22buildap...153-1__&ia=web
 
Old 03-23-2019, 03:34 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by scasey View Post
Those are dead and/or ancient (1 from 2004). I already searched. I was hoping for some first-hand information.
 
Old 03-23-2019, 03:49 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Quote:
Originally Posted by RandomTroll View Post
Those are dead and/or ancient (1 from 2004). I already searched. I was hoping for some first-hand information.
Doesn't look like there's anything newer than 2012...and even that's pretty sketchy. I don't see anything that explains what buildapache is.
I'd give it a pass. Just my opinion.

Have you tried a cPanel or WHM forum?
 
Old 03-24-2019, 10:45 AM   #5
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by scasey View Post
Have you tried a cPanel or WHM forum?
I hoped I wouldn't have to, but just did. If I get an answer I'll let the teeming masses know. I downloaded the latest Apache httpd source, configured it for sql support, and the built httpd links to libmariadb, which I take to be a sign that, since our production version doesn't, it doesn't use sql.
 
Old 03-24-2019, 12:13 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I downloaded the latest Apache httpd source, configured it for sql support, and the built httpd links to libmariadb, which I take to be a sign that, since our production version doesn't, it doesn't use sql.
May I ask, how did you configured apache sources for sql support?
Running ./configure --help and looking for sql, gives only:
Code:
./configure --help|grep -i sql
 --enable-authn-dbd      SQL-based authentication control
 --enable-authz-dbd      SQL based authorization and Login/Session support
The mysql/mariadb support is achieved by using apache with php.


Regards
 
Old 03-24-2019, 04:26 PM   #7
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by bathory View Post
May I ask, how did you configured apache sources for sql support?
Running ./configure --help and looking for sql, gives only:
Code:
./configure --help|grep -i sql
 --enable-authn-dbd      SQL-based authentication control
 --enable-authz-dbd      SQL based authorization and Login/Session support
I used both those switches.

Quote:
Originally Posted by bathory View Post
The mysql/mariadb support is achieved by using apache with php.
In the sense that dynamic hosting can use PHP (or some other scripting language) to use a database, you are right. In the sense that I think the page to which I referred means, it's about httpd using sql for its own internal purposes, why upgrading to a version of sql that uses different headers and libraries would make httpd not-work. I asked to be sure. I built httpd (which I don't use, either at home or in production anymore) to see if there was a way to build httpd so that it did rely on sql headers & libraries.
 
Old 03-25-2019, 04:15 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
./configure --help|grep -i sql
--enable-authn-dbd SQL-based authentication control
--enable-authz-dbd SQL based authorization and Login/Session support

I used both those switches.
Yes, but those options are used when you want to do authentication based on (a generic) sql, like sqlite3.


Quote:
I built httpd (which I don't use, either at home or in production anymore) to see if there was a way to build httpd so that it did rely on sql headers & libraries.
If you want to use mysql/mariadb specifically, you need to compile apr-util for this and then compile apache against that apr-util.
That's why I don't understand how httpd is linked libmariadb using the 2 options above.
 
Old 03-25-2019, 09:11 AM   #9
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,972

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by bathory View Post
If you want to use mysql/mariadb specifically, you need to compile apr-util for this and then compile apache against that apr-util.
That's why I don't understand how httpd is linked libmariadb using the 2 options above.
I built httpd disabling these and it didn't make a difference: both link to libmariadb, so that's not it. The httpd on the target platform doesn't, which seems to be the key consideration. Unfortunately nobody at the cPanel forum has responded.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Gotta love those ٱٱٱٱٱٱٱ&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration