Opened 15 years ago
Closed 7 years ago
#21437 closed defect (wontfix)
The MAMP howto doesn't match the sample phpMyAdmin config file
Reported by: | steve404@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | wiki | Version: | 1.8.0 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | phpmyadmin |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Hello,
I'm following instructions at the below link to setup Apache, MySQL and PHP. wiki:howto/MAMP
At the end of the page it describes how to setup phpMyAdmin:
Finally, you need to set up the phpMyAdmin configuration to access mySQL. First, set up the config file: cd /opt/local/www/phpmyadmin/ cp config.sample.inc.php config.inc.php This will create a file config.inc.php in the phpMyAdmin folder. Edit that file, and locate the lines: $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = 'root'; // MySQL user $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed // with 'config' auth_type) Where ' ' is an empty password; fill it with your MySQL root password. You can either change the 'auth_type' from 'config' to 'cookie' or 'httpd', or alternatively provide the password you selected for the root user in the 'password' option.
I'm able to create file config.inc.php, however when I search for the section to define the password, I don't have that section of code.
How do I set the password? Do I just add those 3 or 4 lines of code?
-Steve
Change History (7)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Component: | ports → wiki |
---|---|
Keywords: | phpmyadmin php apache2 mysql removed |
Owner: | changed from macports-tickets@… to alakazam@… |
Port: | phpmyadmin added |
Type: | request → defect |
comment:2 Changed 15 years ago by alakazam@…
Status: | new → assigned |
---|
comment:3 Changed 15 years ago by alakazam@…
Cc: | ryandesign@… added |
---|---|
Summary: | unable to setup phpMyAdmin → The MAMP howto doesn't match the sample phpMyAdmin config file |
comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
I've worked on the ports that comprise the MAMP stack, but the MAMP guide in the wiki was created by someone else. I read through it recently and made a lot of adjustments for clarity and changes that had occurred in the MAMP ports, but that's about it. I haven't used phpMyAdmin in years so I don't know how it's changed lately.
One thought I had was that the MAMP guide tells the user to create the file httpd-phpmyadmin.conf with a certain contents. I would suggest that it should instead be the phpMyAdmin port's responsibility to do that.
comment:5 Changed 14 years ago by alakazam@…
Owner: | alakazam@… deleted |
---|---|
Status: | assigned → new |
comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | set to macports-tickets@… |
comment:7 Changed 7 years ago by raimue (Rainer Müller)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The wiki page does not mention phpmyadmin anymore, closing.
r57854 updates the phpMyAdmin port so that it correctly creates the configuration file. You now need to edit
${prefix}/etc/phpmyadmin.inc.php
to configure phpMyAdmin.The sample configuration file however does not seem to match the expectations of the MAMP with macports howto page, which should be updated accordingly.
I'm cc-ing ryandesign as he's done most of the recent work on this guide, so I'd like his opinion on these changes and the modifications to bring to the howto page.