Old Blogs

Old blogs

Hot news: PHP and MySQL coming to S60!

Announcements - November 16th, 2007 - Written by Jukka Eklund

php-med-trans-light.gif

Johan Wikman (father of the original Apache port for S60) writes:

I can now reveal that we at the CCNC conference in Las Vegas in January, 2008 will demonstrate and release what we call the PAMP stack.

PAMP stands for Personal Apache, MySQL, PHP, so yes, the full LAMP stack will be made available for S60 smart phones. In addition, there will be PHP extension modules that provide access to the core functionality of the phone. And on top of PAMP you can basically install any LAMP based content management system. For instance, Drupal can be installed off the shelf.

Yes, a fair amount of memory is needed and it’s still pretty experimental stuff, but it runs quite nicely on E90.

Source: Mobile Web Server Discussion Board (post #5)

How cool is this?

-Jukka

About the author Jukka Eklund

I have been working in the Finnish IT industry for over 10 years, and spend most of that time working with a some form of Internet service. [..]

Comments(18)

  1. Oscar B wrote

    I think this could be great for a lot of people.
    You can’t have a LAMP installed in any portable device (except N800/N810), and there are millions of programmers using this platform to build the web.

    PAMP could be evolution for the mobile web, allowing mobile web apps not seen before. You are not just connected, you are reachable, dynamic and with a database (who can stop you?).

    After PAMP, I just need wireless virtual-screen glasses connected to my S60, to feel we are already living in the 21st century.

  2. Abhishta Paranjpe wrote

    Very cool!
    But I guess it depends on what S60 and nokia want to do with it. Will I be able to create widgets (widsets) using php that are not confined to the browser?

  3. sztime from phpchina.com wrote

    If the Mobile Web Server is used of wide scope, lots of new viruses will be made, then the mobile network will become a dangerous world, just like the internet at the present time.

  4. Symbiatch wrote

    I don’t see this as a cool thing and the main point was already mentioned: memory. Since the current devices don’t have enough memory to run even a couple of applications simultaenously, this will hinder the usability even further.

    Another thing is why anyone would want to run MySQL on their phone, e.g. SQLite would be a lot better. But people do the strangest things and I’m too stupid to understand them :P

  5. Jukka Eklund wrote

    @sztime: I don’t see how Mobile Web Server makes mobile network any more dangerous. Mobile devices are becoming part of the internet, and it can be a dangerous world but the same security principles apply ie. use common sense.

  6. Jukka Eklund wrote

    @Symbiatch, rest assured if and when these new things are put on end-users hands (it’s very early days still) memory issues will be solved. If you have memory problems with current implementations (Raccoon and MWS), let us know the details.

    Should we stop researching new things just because we today might not have enough of memory in mainstream devices, I don’t think so.

  7. Andreas Blixt wrote

    Will there be a public beta this year or will it appear after the conference?

    I love to play with new things and I love my N95 8GB, Apache, PHP and MySQL, so a beta would be pretty awesome.

  8. Johan wrote

    @Andreas Blixt: You’ll have to wait until after the conference. But hey, it’s not that far away:)

  9. pizzro wrote

    it is a good idea,but it is a toy

  10. TommiK wrote

    This is definately a good news that I have been waiting for some time already. Of course it is not a mature technology yet, but it will provide some interesting possibilities for the future.

    I had a couple of ideas how to utilize web server + PHP + MySQL about a year ago. The implementation was not possible at that time, but now all the tools are available.

  11. Tobi wrote

    Hej,

    a bit offtopic: Is there actually a web-proxy for S60? Or can the comping s60-lamp be used like this somehow?
    My goal is to connect a Ipod-Touch via WLAN to my e61 running a proxy and thus using the UMTS-connection to surf the web with the Ipod-touch. (which only has WLAN and no Bluetooth).

    Thanks,
    Tobi.

  12. Johan wrote

    @Tobi: Not in MWS, but the latest version of Raccoon has all of Apache’s proxy modules installed (but not loaded) by default. That is, your scenario - the phone acting as a forward proxy (over 3G) for a device accessing it over WLAN - should be possible in principle. It’s not something that has been tried, but the functionality is basically there.

    If you give it a shot, please take the discussion over to the board at Forum Nokia.

    Johan

  13. Johan wrote

    @Tobi: I just tried that configuration and the server crashed:) So, there’s no point giving it a shot just yet. I’ll see if it’s something that easily can be fixed.

    Johan

  14. PHPDevel wrote

    Woooohooo!! My PHP skills need not be confined to a single server anymore!! We will need to get access to phone functions as well via some sort of COM like API.

  15. Steven Martin wrote

    hi. does anyone know will phpmyadmin work or will they need to make changes? does anyone know if this is being done yet? i presume if mysql works and php then it should work automatically?

  16. Johan wrote

    @Steven: Yes, phpmyadmin does work. But there was some minor configuration file editing thing I had to do, in order to make it work.

    I don’t recall if this was the case, but a common problem with many PHP packages is that they (correctly) assume that localhost is the same thing as 127.0.0.1, which currently, unfortunately, is not the case on Symbian. As far as I know, this has been fixed and thus is an issue that will go away by itself.

    I haven’t really used phpmyadmin that much, so I don’t know for sure, but I suppose you should also be able to use phpmyadmin on, e.g., your PC and then only access MySQL on your phone over WLAN.

    Johan

  17. PHP wrote

    Technically this will brig more aspects to AMP. Grate.

  18. kjmerlinz wrote

    Has anyone actually managed to connect to a MySQL database via PHP with this.

    I have everything working (i think :/), PHP code works, and I can connect to the MySQL server via MySQL administrator on my pc but it just wont work from my PHP code.

    Any sugguestions?

Visit new S60 Blogs

You are browsing old S60 blogs. Please note that these sections are not updated any more. Go to the new S60 Blogs to find out the latest news!

New blog categories:

Categories

What is S60?