MAC Environment Setting Up(2)PHP environment
1. Check and Install Apache2
>sudo apachectl -v
Server version: Apache/2.2.22 (Unix)
Server built: Jun 20 2012 13:57:09
My apache with version 2.2.22 is already there.
>sudo apachectl start
Visit the home page http://localhost. I can see the testing page.
The default web pages will be under this directory /Library/WebServer/Documents.
2. Check and Install PHP
In /etc/apache2/httpd.conf, uncomment this line:
LoadModule php5_module libexec/apache2/libphp5.so
Copy and prepare the PHP configuration files.
>sudo cp /etc/php.ini.default /etc/php.ini
We can change this configuration file as we like.
Prepare the testing page of PHP.
>sudo cp /Library/WebServer/Documents/index.html.en /Library/WebServer/Documents/info.php
Then we can visit the page http://localhost/info.php now.
3. KeePassX
http://www.keepassx.org/
4. Install MySQL
Download these installation files from here http://dev.mysql.com/downloads/mysql/5.1.html.
mysql-5.1.65-osx10.6-x86_64.dmg
After install this software, I got the mysql in this folder mysql-5.1.65-osx10.6-x86_64.
If we install MySQLStartupItem.pkg, then MySQL will start automatically when the PC start.
MySQL.prefPane is for the icon in system configuration.
>chmod 777 /etc/bashrc
>sudo vi /etc/bashrc
Add 3 lines at the bottom
#mysql
alias mysql='/usr/local/mysql/bin/mysql'
alias mysqladmin='/usr/local/mysql/bin/mysqladmin'
>. /etc/bashrc
>mysqladmin -u root password 'kaishi'
Set the root password of MySQL.
5. Install Coda
http://soft.macx.cn/2647.htm
references:
http://sillycat.iteye.com/blog/1543227
http://sillycat.iteye.com/blog/1286175
http://sillycat.iteye.com/blog/1073598
http://sillycat.iteye.com/blog/1040371
http://sillycat.iteye.com/blog/768664
http://sillycat.iteye.com/blog/769110
http://sillycat.iteye.com/blog/770369
http://maestric.com/doc/mac/apache_php_mysql_snow_leopard
http://dancewithnet.com/2010/05/09/run-apache-php-mysql-in-mac-os-x/
分享到:
相关推荐
This book is aimed at the absolute beginner who wants to start learning PHP, but aims to set you up with a thorough understanding of what makes for a good, modern, adaptable PHP environment before ...
1. Setting Up Environment Setting up Hadoop for Elasticsearch Setting up Java Setting up a dedicated user Installing SSH and setting up the certificate Downloading Hadoop Setting up environment ...
### Visual Environment 教程知识点概览 #### 一、Visual Environment 概述 - **定义与功能**:Visual Environment 是一款先进的仿真软件平台,主要用于力学、声学等多个领域的虚拟原型设计与模拟分析。 - **应用...
小旅馆Horror Environment Pack 2 unity室内外场景范例。旅馆内物品资源满多的
### ENVIRONMENT INTERNATIONAL 投稿指南相关知识点 #### 一、期刊概述 - **期刊名称**:Environment International - **开放获取状态**:自2019年起,该期刊成为开放获取期刊。 - **研究领域**:环境科学领域的多...
Advanced_Programming_In_The_UNIX_Environment(2005)2Ed.pdfAdvanced_Programming_In_The_UNIX_Environment(2005)2Ed.pdfAdvanced_Programming_In_The_UNIX_Environment(2005)2Ed.pdfAdvanced_Programming_In_The_...
Fantasy Environment 1.0.unitypackage Fantasy Environment 1.0.unitypackage Fantasy Environment 1.0.unitypackage 资源来源网络,如有侵权请通知删除。
Java Runtime Environment-6.0.26.exe
G:\agent>go env ...go: unknown environment setting GO111MODULE=ON 在错误设置GO111MODULE值之后,go用不了了,需要删除go env配置文件目录 用来找到自己的go env环境配置文件。在你的GO语言不能用的情况下
在VB6.0中,数据环境(DataEnvironment)是一个强大的工具,它允许开发者方便地管理和操作数据库中的数据。数据环境提供了对数据源的抽象,使得应用程序可以更容易地连接到数据库,执行SQL查询,并且管理数据对象如...
android_environment2android_environment2
Setting Up the Simulation Environment.............. 2-8 Setting Up the Default Plot Output.. 2-10 Setting Up the PSS Simulation ........ 2-11 Verifying the Fundamental (Beat) Frequency ... 2-12 ...
《Dreamworld Environment——虚拟现实与游戏开发的梦幻之地》 在当今数字娱乐产业中,环境设计扮演着至关重要的角色,特别是在虚拟世界和游戏开发中。"Dreamworld Environment"这一概念,不仅代表了一个压缩包文件...
Energy and The Environment: Scientific and Technological Principles (Mit-Pappalardo Series in Mechanical Engineering) by James A. Fay 第二版
此版本非官方版本,是基于 esp32_win32_msys2_environment_and_esp2020r2_toolchain-20200601 版本修改,替换工具链为 xtensa-esp32-elf-gcc8_4_0-esp-2020r3 ,以支持 esp-idf V4.2 版本的开发。
Java Runtime Environment (JRE) 1.4.2 是Java应用程序执行所需的关键组件,它为开发者和用户提供了在各种操作系统上运行Java应用的基础。这个版本是Sun Microsystems在2004年发布的一个重要里程碑,它在Java技术的...
在本文中,我们将深入探讨如何解决“Cannot create oci environment”这一错误,并了解如何正确配置Oracle Instant Client,特别是针对版本11.2。 "Cannot create oci environment"错误通常表示系统无法初始化...
1. **客户端配置**:在Puppet Agent客户端,可以在`/etc/puppetlabs/puppet/puppet.conf`的`[agent]`部分设置`environment`参数,以指定要连接的Puppet环境。 ```ini [agent] environment = development ``` 2....