I'm placing this here mostly for the beginners, like myself, who have been having a heck of a time with the password issues and getting everything to run properly. This is mostly a how to, so just follow along.
Here is the answer that everyone seems to have been looking for as far as passwords are concerned - follow these steps and you should have no problems:
~~ for version 1.7.2a ~~
After you install, you will want to set passwords. Security is always a big deal no matter what directory your in.
Start xampp. If you go to http://localhost/ a landing page will come up. Select your language link and you will be directed to your copy of XAMPP. If you check your security settings now, nothing is secure. This is normal.
[[[ since this came up in another thread - I'll repeat it here -- setting blowfish secret
before you set the security settings - go to:
/Applications/XAMPP/xamppfiles/phpmyadmin/config.inc.php
Look for the following phrase:
$cfg['blowfish_secret'] = ' '; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
replace with:
$cfg['blowfish_secret'] = 'put secret code/word here'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
(this does not have to be memorized) save the document and close it. ]]]
Go to the terminal. It is located under applications/utilities/terminal;
it will open at your user name: type in, sudo su, then hit enter. It will then ask for your user password, the same one you use for your Mac -- this will be 'root'. (Those of you who are new to the Terminal, as you type in passwords, the curser will not move; don't think your not typing, you are.) Type it in, hit enter. Then it will print a small string of stuff, after the string, type in
/Applications/XAMPP/xamppfiles/xampp security
note: when it asks if you want to set passwords, it asks with (ja) or (nein) ... thats 'yes' or 'no'. You want to type 'yes' - less the quote marks and put passwords in everything it asks.
(If it asks to stop mysql - you want to say yes to 'normal' - it will stop then restart it.)
! WRITE THE PASSWORD/S DOWN !
After you go through all the security settings, type 'exit' at the command line and close the terminal. Restart XAMPP with apache, mysql and, ftp
now, when you try to access localhost you will be prompted for a name and password - the name will be "xampp" and the password will be what ever you set it to--
when you go to phpmyadmin you will also be prompted for a name and password - the name will be "root" and the password will be what you set it to
note: you really need to operate in phpmyadmin under any user other than root
if you view the security page you see ftp is still not secure - you need to do one more thing"
Go to:
Applications/XAMPP/xamppfiles/etc/ proftpd.conf
---- change line 45 ----
from: UserPassword nobody xxxxxxxxxxxxxxxx
to: UserPassword nobody newly_set_password
also, to get the CD Demo working, you will need to set your password there:
xampp/htdocs/xampp/cds.php
change line 4 to: mysql_connect("localhost","root","enter password here");
change line 64 to: if(!mysql_connect("localhost","root","enter password here"))
now restart apache, mysql, and ftp -- all is fine and secure
hope this was helpful
links of interest: http://www.apachefriends.org/en/xampp-macosx.html
~~ for version 0.7.4 ~~
After you install, you will want to set passwords. Security is always a big deal no matter what directory your in. Start xampp.
Go to the terminal. It is located under applications/utilities/terminal ,
it will open at your user name: type in, sudo su ,then hit enter. It will then ask for your user password, the same one you use for your Mac. (Those of you who are new to the Terminal, as you type in passwords, the curser will not move; don't think your not typing, you are.) Type it in, hit enter. Then it will print a small string of stuff, after the string, type in
/Applications/xampp/xamppfiles/mampp security
that will take you through some security settings and ask for passwords - for the sake of not having to remember different passwords, I used the same for each. I did not use my Mac user password, but that's your call. !WRITE THE PASSWORD DOWN!
(At one point it will ask about stopping mysql - you want to say yes here also - it will stop then restart it.)
After you go through all the security settings and add passwords, type exit at the command line and close the terminal.
Now the fun begins. Go to each of the following documents (open in simple text editor like TextEdit) and type in the same password you typed in at the terminal. If you used the same password for each - it will be a breeze. Pay strict attention to the quotation marks - do not remove them - type exactly like listed below, --some are single quotes, some are doouble quotes--.
1. xampp/htdocs/xampp/cds.php
change line 4 to: mysql_connect("localhost","root","enter password here");
change line 64 to: if(!mysql_connect("localhost","root","enter password here"))
2. xampp/xamppfiles/phpmyadmin/config.inc.php
on line 34: $cfg['Servers'][$i]['password'] = 'enter password here';
you may have to save this file to desktop after you make your changes. Then drag into folder - you will get a box asking you to authenticate, click Authenticate, then a box opens asking you if you want to replace file, click replace
3. xampp/xamppfiles/htdocs/xamp/mysql.php
on line 2: ("localhost", "root", "enter password here"))
save the document.
Well your all set, everything after re-starting Xampp should be activated and secure.
hope this was helpful
Now that you got your feet wet, follow this link for more security ideas (I recommend it):
http://www.devshed.com/c/a/PHP/Doing-Mo ... -Part-1/2/