- 浏览: 240755 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (118)
- Ruby/ROR (4)
- Mac (28)
- 我的见闻触发你我的灵感 (1)
- 创业 (1)
- JOSSO (2)
- XML (2)
- OpenRemote (1)
- 娱乐 (2)
- 版权/License (1)
- Java/Spring (4)
- 调试 (1)
- 路由器 (2)
- 技术博客 (21)
- 虚拟机 (1)
- Javascript (6)
- SVN (2)
- HA(Home Automation) (0)
- Android (2)
- iPhone/iPod (23)
- iPad (22)
- iOS公共 (28)
- Windows7 (1)
- 服务器技术 (2)
- 其它 (1)
- Shell (1)
- 数据库 (1)
- 问题总结 (1)
最新评论
-
zjjzmw1:
...
转载:IOS开发之——objectForKey与valueForKey在NSDictionary中的差异 -
hldfxh:
解决了我的问题
JSON Lib, XML转JSON字符串不要namespace,以及处理特殊xml属性"type" -
herry68:
可以给我提供以下你的这个NSData+Base64.h类吗
图片转base64串及反转回图片 -
herry68:
我用这个方法把图片转换成nsstring成功了,但是从nsst ...
图片转base64串及反转回图片 -
hibluse:
handy.wang 写道hibluse 写道我已经设置了WA ...
基于FMDB-SQLite的App数据库性能优化
NOTE: My MAC OS version is 10.6.4
首先可以参考的文档是Apple官方文档(https://developer.apple.com/library/mac/#featuredarticles/EnablingPHP/),但是里面没有描述一些关键的文件夹和文档的路径, 下面的文字则详细的说明了关键文件夹和文件的路径。
If you’re running Mac OS X it has some surprises for you. Seems, PHP and the Apache Web Server have been installed on your machine without your knowledge. Well, its no secret but running them both is somewhat of a mystery and the trick is to flush them out of their hiding spots.
Generally on a Mac there are Icons that represent programs and documents that you double-click to execute their existence. With PHP and Apache, they run in the background with no sign of an Icon in sight.
To start Apache Web Server, you must go into the “System Preferences Control panel located on the “Apple Menu”.
Click
on the Icon labeled "Sharing". Then locate the tab labeled "File &
Web". You will want to click the button labeled “Start” in the "Web
Sharing " section. This starts up Web sharing which starts the Apache
Web Server.
Apache Web Server is now running. Easy, huh? "How
can I tell?” you ask. Simple. Start up your web browser of choice. In
the web address or URL part of your browser, type: "localhost" (without
the double-quotes)
Ex.
http://localhost
If everything is Okay, your browser will display the following:
"If
you can see this, it means that the installation of the Apache Web
server software on this system was successful. You may now add content
to this directory and replace this page."
or
"It works!"
It worked! Hooray.
To access the
pages of this directory, double-click on your hard drive and locate the
"Library" directory. From there locate the "WebServer" directory and
then the "Documents" directory where these web pages reside.
Note:
If its not running, you either do not have web sharing enabled or
something is wrong with Apache's files. It should work right out of the
box.
Since Mac OS X is a
multi-user system, every person has their own account and with that
brings it’s own set of web pages. To access your personal web pages you
must type the following in the browser address:
Ex.
http://localhost/~yourname/
To access your personal web pages, locate your account name directory under "Users" And locate the directory labeled "Sites".
/Users/yourname/Sites/your web pages are here <---
Now
that you have Apache running, it would be great to write your own PHP
scripts and run them locally on your Mac. This is the most difficult
part and if you get past this, everything is downhill with ease.
By
default, PHP is disabled along with other features of the Apache Web
Server, but we are going to concentrate on enabling PHP.
There is a file
called "httpd.conf". The Official name for this file is: "Apache HTTP
Server Configuration file". This is our mission. You are going to
"uncomment" four lines of the "httpd.conf" file. This requires us to use
a text editor to do the job.
Using the Terminal.app, Start
the Terminal.app located in the "/Applications/Utilities/" directory,
then change the directory to the "httpd" directory using the following
command:
cd /etc/httpd
or
cd /etc/apache2/
Next step is to use "root" privileges, start up the text editor named vi and edit the "httpd.conf" file.
However, which options you should uncommented, I don't know. So, I suggest you using scripts metioned in apple offical document "Enabling PHP and SQLite on Mac OS X Leopard" to modify the options to enable PHP in apache.
以上内容参考:
http://www.devarticles.com/c/a/Apache/Using-Apache-and-PHP-on-Mac-OS-X/
http://www.anujgakhar.com/2009/01/19/how-to-edit-httpdconf-on-macos/
https://developer.apple.com/library/mac/#featuredarticles/EnablingPHP/
发表评论
-
Mac OS: bin/cp: Argument list too long
2013-02-27 14:31 2875#解决:Mac OS bin/cp: Argument lis ... -
XCODE4.3.2与真机联调时,console里输出中文乱码
2012-07-19 13:34 1318修改项目的scheme的info,把debugger由LLDB ... -
Mac OS X Lion 显示隐藏目录
2012-03-29 13:28 0在Termminal中输入如下命令。 chflag ... -
Mac OS X Lion 显示隐藏目录
2012-03-29 13:23 1142在Termminal中输入如下命令。 chflags noh ... -
How do I fix NSURLErrorDomain error -999 in iPhone 3.0 OS
2011-01-22 21:58 2347Comment1####################### ... -
iPhone系统常用文件夹位置
2010-11-01 19:49 13281、【/Applications】 91是装在这里 ... -
定制UISlider样式时注意
2010-10-31 15:21 1930只设球(ThumbImage)就会没有track; 不设球就没 ... -
Objective-C中的字符串格式化输出
2010-08-19 14:52 1924Objective-C中的字符串格式化输出 %@ ... -
Focus the "Plus+" for iPhone games' development
2010-08-12 12:58 1055location of website: http://plu ... -
ngmoco:) 关注iPhone游戏开发商ngmoco:)
2010-08-12 12:42 1134Website Location: http://www.ng ... -
Is there a better way to handle HTTP error statuses?
2010-05-20 19:04 1486if ([response respondsToSelecto ... -
Install MYSQL in MAC OS X 10.5.8
2010-03-30 16:09 17961)Download MYSQL named mysql-6. ... -
Vertical UISlider in iPhone dev
2010-01-06 20:49 1873Referenced from : http://www.ip ... -
Shell Script Programming
2009-12-19 01:58 988Refrenced from: http://user.it. ... -
Introduction to The Objective-C Programming Language
2009-12-19 01:56 1479Refenced from : http://develope ... -
Learning Objective-C: A Primer
2009-12-19 01:50 1045Referenced from: http://develop ... -
Introduction to Open Source Scripting on Mac OS X
2009-12-19 01:10 1811From : http://developer.apple.c ... -
Shell tutorial provided by Apple.
2009-12-13 01:33 1013Referenced from http://develope ... -
TextMate Bundle for Git
2009-12-13 01:18 1286The article I referenced from i ... -
Installing git (OSX)
2009-12-11 13:10 1287Installing git (OSX) http ...
相关推荐
《CFHipsterRef: Low-Level Programming on iOS & Mac OS X》是一本被广泛赞誉的书籍,专注于探讨iOS和Mac OS X平台的底层编程技术。它深入到操作系统的核心,揭示了苹果平台开发中的许多鲜为人知的细节。这本书的...
IT行业的历史充满了无数鲜为人知的秘密和有趣的故事。这些秘密揭示了技术发展的艰辛历程和一些著名公司的起源。让我们深入探讨一下这些IT市场的不为人知的事实。 首先,Windows操作系统,我们每天都在使用的图形...
通过上述介绍,我们可以看到U盘不仅仅是一个简单的存储工具,在深入了解其背后的技术原理和运用技巧后,我们能更好地发挥出它的潜力。希望这些鲜为人知的秘密与实用技能能够帮助大家在日常工作和生活中更加高效地...
Leopard操作系统是Mac OS X系列的一个重要版本,名为10.5。这个系统引入了许多改进和新功能,其中一些鲜为人知但非常实用的秘密包括: 1. **快速查看**:这是一个非常方便的功能,允许用户无需打开特定的应用程序...
手机里鲜为人知的秘密,你每天都在用手机,但是这些你都 不知道,要成为手机高手,需要继续学习!
ShellExView能够显示安装到系统中的外壳扩展的详细信息(包括右键菜单、工具条、CLSID、对应文件等),使你了解到系统中鲜为人知的外科扩展,挖掘潜力,而且能够使你轻易地禁用或启用每个外壳扩展项。ShellExView...
Excel提供了一个快捷键组合——Ctrl+Shift+*(星号键),可以迅速选中工作表中所有含有数据的单元格。具体操作步骤如下: 1. 首先,在任意一个含有数据的单元格内点击,确保当前活动单元格是有数据的。 2. 按下Ctrl...
- **Cheetah (10.0)**:这是Mac OS X的第一个正式版本,标志着苹果进入了一个新的操作系统时代。 - **Puma (10.1)**:在这个版本中,苹果进一步完善了系统的稳定性和性能,并增加了一些新的特性和改进。 - **...
在当代社会,地产大腕们往往以其商业成就和巨额财富为人们所熟知。然而,在这些名人成功背后的故事,却...这些鲜为人知的秘密,就如同一面镜子,映照出每个人内心深处的渴望与梦想,同时也映照出一个更加真实的世界。
### 鲜为人知的搜索引擎秘密指令 在日常生活中,我们常常依赖于搜索引擎来获取信息。然而,并非所有人都知道如何高效地利用搜索引擎的功能。本文将详细介绍一些鲜为人知但非常实用的搜索引擎指令,这些指令可以帮助...
**SERV-U FTP鲜为人知的技巧** 在IT行业中,FTP(File Transfer Protocol)服务器扮演着数据传输的重要角色,而SERV-U作为一款强大的FTP服务器软件,被广泛应用于企业级的文件管理和共享。本文将深入探讨一些SERV-U...
如果知道这个秘密,用户可以在启动时快速按下向下箭头键,赶在2秒内进入Windows 2000系统。 需要注意的是,这种方法并不提供真正的密码保护,因为任何人都可以通过知道这个技巧来访问被隐藏的系统。如果需要更高级...
- **兼容性**: 在Linux、Mac OS X、Unix、Windows 2000/XP/Win7等操作系统中均有内置支持。 - **可靠性**: 无机械结构,抗震性强;防水、防尘、耐高低温。 #### 使用方式 - **连接方式**: 通过USB接口直接连接到...
CreateSpace是亚马逊的一个自助出版平台,这意味着这本书可能是由一位或一组热爱Ubuntu的专家或爱好者编写,并通过这个平台分享给全球的读者。 综上所述,《Ubuntu的秘密:Ubuntu口袋书》是一本全面介绍Ubuntu操作...
Excel的“数据有效性”功能允许用户通过简单的设置,创建一个可以下拉选择的列表。这个列表可以是自定义的分类,比如不同类型的企事业单位。在“来源”框中,只需输入需要的选项,并用英文逗号分隔,便能实现这一点...
因此,一个高效运作的PDM系统能够帮助企业减少这些风险,提升整体运营效能。 总的来说,产品数据管理是现代企业提升核心竞争力的重要手段,它连接了产品创新、生产制造和市场响应的各个环节,推动企业向着更高效、...
当你点击一个链接或者通过Javascript定义的可点击元素的时候,它就会出现一个半透明的灰色背景。要重设这个表现,你可以设置-webkit-tap-highlight-color为任何颜色。想要禁用这个高亮,设置颜色的alpha值为0即可。 ...
### Windows XP 鲜为人知的70招:系统优化技巧 #### 一、系统启动项管理 在 Windows XP 中,可以通过多种方式来管理和优化系统的启动项,从而提高系统的启动速度和性能。例如,可以使用“运行”命令窗口输入 `...
在众多示波器参数中,标准差(Stdev)是一个经常被忽略,但至关重要的统计参数。本文将深入浅出地探讨标准差在示波器参数测量中的本质意义,并着重介绍ZDS2024 Plus示波器在此领域的创新和优势。 标准差是一个描述...