我可以在 iPhone 或 iPod 中编译 mysql、php (或者使用已经构建的)吗?
我有一个未使用的 iPod touch 2.5g(固件版本 4.2)。 我想让它成为一个可以为 WordPress 博客提供服务的 Web 服务器。 所以我需要Http服务器、PHP和MySQL服务器。
Lighttpd
我安装了lighttpd作为HTTP服务器(而不是Apache...这是我能找到的最简单的东西。
其他...
现在,我不得不寻找其他人。 Cydia 中没有可用的软件包...(我的 iPod touch 已越狱。) 没有指南来获取它们。
所以我正在考虑自己编译它们。 但我不知道我可以做到这一点或如何做到这一点......
你能让我知道如何做到这一点......我需要什么......有关它的任何信息吗? 或者如果有一个已经构建的包,那一定是最酷的东西。 :)
提前致谢..
I have an unused IPod touch 2.5g ( firmware version 4.2 ).
And I want to make it a web server that can serve Wordpress blog.
So I need Http server, PHP and MySQL server.
Lighttpd
I installed lighttpd as an HTTP server ( instead of Apache ... It was the easiest thing that I could find.
Others...
Now, I am stuck with finding others.
No package available in Cydia ... ( My IPod touch is jailbroken. )
No guide to get them.
So I am considering compile them by myself.
But I don't have any clue which I can do it or How to do it...
Could you let me know how to do it.. what I need .. anything about it ?
Or if there is a already built package, It must be the coolest thing. :)
Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请查看 http://ios-webstack.tk 。
iOS WebStack 拥有您所需的一切!
已经构建的 cydia 软件包如:
您还将获得编译您自己的 iDevice Web 服务器所需的所有信息在 http://code.google.com/p /cydia-ios-lighttpd-php-mysql-web-stack/wiki/Main
Please have a look at http://ios-webstack.tk .
iOS WebStack has all you need!
Already built cydia packages like:
You will also get all needed information to compile your own iDevice webserver at http://code.google.com/p/cydia-ios-lighttpd-php-mysql-web-stack/wiki/Main
确保您还安装了
ssh
和ftpd
,这样您就可以从计算机的命令行破解它。我不相信 iOS 具有任何类型的内置编译器,因此您需要尝试从 Cydia 获取gcc
或g++
。否则,您必须下载 Xcode SDK 并使用其中的库文件从计算机上为您的手机编译 php...祝您好运!如果您熟悉编程,您可以在 Objective-C 程序中编译 C/C++ 代码,这样您就可以编写一个封装手机将运行的 php 的应用程序。希望我能在这方面为您提供更多帮助。您有多少编程经验?
Make sure you install
ssh
and anftpd
on it, as well, just so you get cracking on it from your computer's command line. I don't believe iOS has any kind of compiler built-in, so you'll want to try to grabgcc
org++
from Cydia. Otherwise, you'll have to download the Xcode SDK and use the library files from there to compile php for your phone from your computer... good luck!If you're familiar with programming you can compile c/c++ code inside of an Objective-C program so you could write an app which encapsulates php that the phone would run. Wish I could help you more with this. How much programming experience have you got?