LinuxQuestions.org
Help answer threads with 0 replies.
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 10-15-2003, 04:13 PM   #16
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64

php doesn't need a link to phpMyAdmin but the config file will need permissions so that the server can read the file and perhaps write to it (can't remember if it needs too)
 
Old 10-15-2003, 04:55 PM   #17
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Original Poster
Rep: Reputation: 15
Please don't think I'm totally helpless, but... do I do that in php.ini or do I do that in phpMyAdmin config.inc.php? I looked in both and did some searching, but the only way I saw to change permissions is with chmod, or chown or one of the other ch commands. I'd like it so phpMyAdmin is usable as my user name, and of course as root.
Here's how config.inc.php is set now... From what I gather this is okay? (passwords deleted, of course)

// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = 'root'; // MySQL control
user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = 'xxxxxx'; // access to
the
"mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'myusername'; // MySQL user
$cfg['Servers'][$i]['password'] = 'xxxxxx'; // MySQL
password (only needed
// with 'config' auth_type)
*snip snip snip in interest of bandwith*

If it's php itself I'm screwing with, can I do it from the command line, or do I alter php.ini-recommended? Like I said, I checked stuff out and didn't see it mentioned, so I don't want to mess with it...

Thanks (and sorry)

shoe
 
Old 10-15-2003, 06:11 PM   #18
hindenbergbaby
Member
 
Registered: Sep 2003
Location: Boston
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134

Original Poster
Rep: Reputation: 15
Talking FIGURED IT OUT! (you won't believe this)

I found an error log, finally, after much weeping, wailing, and gnashing of teeth. Here's what it was: It looks like, somewhere in the translation, the comments in the code in config.inc.php that basically tell the user what to do, got somehow read as commands. Once I had the line numbers with the problems in it in front of me it was fairly easy to figure out.

I DID notice, afterwards, that my log ins were wrong, so it wouldn't let me in mySQL. So I did a search and managed to fix that... Yeeeha.

Thanks, David, for all your help. One final question: I don't plan on using this box as a server... ever... but of course, now I have apache. Is it safe to leave apache running all the time if I'm not using it as a server? Does it compromise security at all?

shoe
 
Old 10-16-2003, 02:20 PM   #19
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Leaving any service open is likely to degrade security slightly but if you are only accessing the server from the machine itself then you could set apache up to only listen to the loopback address 127.0.0.1
Just change the listen line to:
Listen 127.0.0.1:80
 
Old 10-16-2003, 03:37 PM   #20
Gill Bates
Member
 
Registered: Aug 2003
Location: the far side
Distribution: OpenSuSe 10.2, Mac OS X Tiger
Posts: 380

Rep: Reputation: 30
look in the main php file too, there is some variable values that u need to fill in manually (just paths and stuff)
 
Old 06-28-2006, 12:27 AM   #21
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi all,

Thanks guys I think it will work for me too.

Thanks David, hindenbergbaby
 
  


Reply


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
Konqueror opens multiple times sploit Linux - Newbie 18 07-14-2007 09:11 AM
Question about Konqueror and KWrite... darkarcon2015 Linux - Software 1 03-07-2005 06:02 AM
Gaining su rights in Konqueror and KWrite logo Linux - Software 3 10-02-2004 08:06 AM
Konqueror ALWAYS opens Juk rather than intended folder hooded Linux - Software 3 09-30-2004 06:25 PM
konqueror opens in different desktop jcwalnut Linux - Software 2 05-06-2004 07:32 PM


All times are GMT -5. The time now is 12:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration