sudo apachetcl start
sudo apachetcl -v 查看版本
sudo vi /etc/apache2/httpd.conf
find LoadModule php5_module libexec/apache2/libphp5.so replace #
:wq
sudo cp /ect/php.ini.defalut /etc/php.ini
cd /Library/WebServer/Documents/
sudo apachetcl restart
vi info.php
install mysql
sudo vi /etc/bashrc
#mysql
alias mysql=‘/usr/local/mysql/bin/mysql‘
alias mysqladmin=‘/usr/local/mysql/bin/mysqladmin‘
down phpmyadmin or brew install phpmyadmin
sudo vi /etc/apache2/httpd.conf
<Directory "/Library/WebServer/Documents/phpMyAdmin-4.4.1">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
cd phpmyadmin
cp config.sample.inc.php config.inc.php
sudo vi config.inc.php
editor :localhost - 127.0.0.1
chmod -R 777 jishigou 设置权限
时间: 2024-10-13 23:40:30