Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-02-2004, 11:43 AM   #1
Registered: Sep 2003
Location: Netherlands
Distribution: Debian 3.0
Posts: 78

Rep: Reputation: 15
Apache MySQL PHP configuration

I'm setting up a website using MySQL. After adding MySQL to my server I am running a full Linux-Apache-MySQL-PHP server. Although there is a lot of information on configuring user access for databases, I keep running into a number of problems at FAQ-level. However no answers where satisfactory yet.

All question deal with the web of permissions in MySQL. The separate manuals of Apache, PHP and MySQL refer to each other in these issues.

About user Identity?
At my website mysql_connect() is successive. Which value for Host, User and Password am I passing then? Is this user Apache (the user who runs apache-daemons) or SiteOwner (like in: http://MyHost/~SiteOwner/)?

This mysql_connect doesn't give access to any database (mysql_select_db() always fails). In the main mysql database, the user table only has users named root and MyHost and no apache or SiteOwner. Why do I get in at the first place? How can there be blanks in these tables, what do they mean? Logging in without user name seems impossible to me, am I right?

Also strange: I've created a database as rootuser, which I can use from command line. However, this database isn't mentioned in the db table of the main mysql database. What's that supposed to mean?

Is there anyone with good documentation on the configuration of users and permissions in an Apache, PHP and MySQL platform. Somehow the separate manuals, the forums and the FAQ's don't point out how this is working.

BTW, what about the safety issues coming up in this context?

I'll appreciate any good information on this one.
Old 02-02-2004, 11:58 AM   #2
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
Well, afaik, MySQL has it's own users seperate users which are completely different than the system users, and you can create users with the "createuser" script iirc. I could be completely screwed up and thinking of Postgre instead. Anyhow, if you really want to make a complex site using PHP and an SQL backend I'd suggest using something like phpNuke or ezPublish. They are "content management" systems that use PHP and MySQL to create a completely interactive site that you can even administer through php front-ends. Basically they setup a site for you like slashdot or newsforge with forums, news with reply capability, polls, and all kinds of crap. Probably would save you a lot of time. Just an idea.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 4.1 and PHP configuration? sikandar Linux - Software 2 05-30-2005 11:08 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 09:59 PM
apache php-mysql configuration problems ugol Linux - Software 1 11-08-2003 10:13 PM
PHP/MYSQL Configuration drweb Linux - Newbie 3 06-29-2003 03:11 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 07:23 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 PM.

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