OpenWrt Forum Archive

Topic: Webserver with php + sql?

The content of this topic has been archived on 30 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, it's possible to install a webserver with php + sql (mysql, sqlite, etc)? I have a webserver with php, but now i want a database sql with my webserver...what i need?

Sorry for my poor english.

Thanks.

if sqlite is enough for you you can install lighttpd + php + php-sqlite module

however, be careful that an embedded database with lots of writes could kill your flash memory.

Anael

Thanks for your reply, where can i find php-sqlite module? And how it works? Thanks, i'm novice....

Fenix-TX wrote:

Thanks for your reply, where can i find php-sqlite module? And how it works? Thanks, i'm novice....

you have to get the HEAD version of openwrt (and not whiterussian). When you choose your compilation options (make menuconfig), just pick php4 or php5 and check the boxes for the sqlite modules.
Then build everything.

alternatively you have already build HEAD packages here : http://downloads.openwrt.org/people/wbx/head/

The discussion might have continued from here.