![]() ![]() You should now be able to log into phpMyAdmin. '127.0.0.1' instead of localhost (explanation of why network socket works but not Unix socket). $cfg = 'cookie' then you must have a $cfg. Options Indexes FollowSymLinks MultiViewsĮdit the phpMyAdmin config file in /usr/local/Cellar/phpmyadmin/3.4.10.1/share/phpmyadmin byĬreating a copy of as. Use Homebrew to tap this PHP formulae repo: $ brew tap josegonzalez/phpĬreate the file /private/etc/apache2/extra/nf and add this: Alias /phpmyadmin /usr/local/share/phpmyadmin If you run into problems logging in as root or setting up other user accounts, try this.Ĭheck MySQL is running with $ ps aux | grep mysqlĮdit php.ini to have: error_reporting = E_ALL | E_STRICTĮxtension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20090626"Ĭhange all instances of /var/mysql/mysql.sock to /tmp/mysql.sock.Ĭheck PHP is setup correctly by having info.php in Apache’s default document root /Library/WebServer/Documents and having this inside it: Install phpMyAdmin and Enable with All Functionality That You May Not Even Need Just for Kicks If MySQL started successfully, follow the instructions given by running this command: $ /usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation $ mysql_install_db -verbose -user=`whoami` -basedir="$(brew -prefix mysql)" -datadir=/usr/local/var/mysql -tmpdir=/tmp Have MySQL run as your system user: $ unset TMPDIR So use it to install MySQL: $ brew install mysql Restart Apache 1: $ sudo apachectl restartĬheck Apache is running with $ ps aux | grep httpd Save and quit the file and restore original file permissions: sudo chmod u-w /etc/apache2/nf ![]() htaccess files, you can specify AllowOverride All for individual directory blocks within ![]() Notice that Directory "/Library/WebServer/Documents" has AllowOverride None. To enable virtual hosts, uncomment #Include /private/etc/apache2/extra/nf. Uncomment #LoadModule php5_module libexec/apache2/libphp5.so. Setup Apache2 $ sudo chmod u w /etc/apache2/nf PrerequisitesĮnsure these directories exist: $ sudo mkdir /usr/local/include But I wanted to find out how to use the pre-installed Apache and PHP in Lion. Lots of developers use MAMP for local PHP development. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |