Hi, I read that someone has Apache installed on the iPhone. I am dying to do this. It will be so cool to have a web server in my pocket. I have a iPhone 3G. It's jailbroken and have Cydia installed. I downloaded Apache, sshed into the iPhone trying to install it, then I ran into this problem, here is what I got in the terminal: llocalhost:/ root# cd /Applications/httpd-2.2.9 localhost:/Applications/httpd-2.2.9 root# ./configure checking for chosen layout... Apache checking for working mkdir -p... yes checking build system type... arm-apple-darwin9.3.1 checking host system type... arm-apple-darwin9.3.1 checking target system type... arm-apple-darwin9.3.1 Configuring Apache Portable Runtime library ... checking for APR... yes setting CC to "arm-apple-darwin9-gcc" setting CPP to "arm-apple-darwin9-gcc -E" setting CFLAGS to " -O2" setting CPPFLAGS to " -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp" setting LDFLAGS to " " Configuring Apache Portable Runtime Utility library... checking for APR-util... yes adding "-L/apl/sys/ad9/lib" to LDFLAGS checking for gcc... arm-apple-darwin9-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. localhost:/Applications/httpd-2.2.9 root# It seems that the libc is missing or something. Can anyone tell me what is wrong? Perhaps this is not even the right way to install Apache on iPhone, is there a better way? Any helps and suggestions would be greatly appreciated.
iphone gcc I have install the toolchain app (that contains c compiler, etc....), from the develoment section from the cydia instaler. And It done the "./configure" ok http://images.macrumors.com/vb/images/smilies/smile.gif , but when i type "make" and there was some errors.http://images.macrumors.com/vb/images/smilies/confused.gif
Can't even find a way to install Apache... Hi all, I have a Iphone 1 with 2.1 up and running, but I can't find a way to install Apache anymore. It seems like it has vaporised or something. Can't find it in Cydia or Installer. Anyone who can help me? I'd like to run Apache webserver + php (as I had before) and if possible MySQL. But I need to find the sources first before I can install any of them. Any help would be appreciated.
I don't have anything useful to offer, but I am wondering - why do you want to do this? What's so great about running a web server on a device which isn't even online most of the time?
I installed Lighttp instead. As I had not luck compiling the Apache. But might be a good thing anyway since Apache takes up more resources. Lighttp is available on Cydia, all that needs is some configurations, pretty easy. My next endeavor is to try to compile php, does anyone have advice on it? dsegel: Just because it can be done!!! It's fun to do anyway. Seriously, I am a web developer and I really like to make the iPhone as close to a server as possible so that I can write my codes without lugging around my MBP. I can write html and css on it now, the only thing is missing is a php parser. After that perhaps I will install MySQL
What repo is LightHTTPD in on cydia? I can't find it at all on mine. I think this is an amazing idea, depending on the speed of the web server when its running this could serve as a descrete web server for a location where space is a major issue but connectivity is not. Awesome.
Weird, now that you mention it, I don't see it in Cydia anymore either. It just had an up date a few weeks ago.
Damn! Where did it go I hope someone can get it back so I can test it out, I was so excited when I saw this thread.