Page 1 of 1

lighttpd 1.4.31 and php 5.4.7

PostPosted: Sat Oct 06, 2012 11:46 pm
by blurp21
Hi,

First things a really big thank you for the really nice work that you have done with your firmware.

I have installed everything on my Internet Space 1 and everything seems working smoothly.

Disappointed by the PHP version which was too old for some custom installation like caldav and carddav server to sync with my phone.
I have finally decided to create an arm toolchain with crosstool-ng to make compile a new version of php on my computer.
It was harder than expected. I had some problem with apache modules.

I finally compile lighttpd 1.4.31 and php 5.4.7
Both are working on my device. But there is problem with the web-interface. XML files seems to be note loaded. I have problem with xml files launched in html one's.
Do you know how I could fix it ?
Are all php modules used ? or is it possible to optimize ?

Let me know if you want to try binaries and if you think that it worth to fix everything.

Blurp

Re: lighttpd 1.4.31 and php 5.4.7

PostPosted: Sun Oct 07, 2012 3:31 pm
by fvdw
Hi Blurp21

thanks for your inputs, upgrading php to 5.4.7 was already on my to do list. I can compile it on my nwsp2. But we prefer for the moment to stay with apache as web server. We will let you know the results.
And indeed the interaction between web server and php can make upgrading tricky.

Re: lighttpd 1.4.31 and php 5.4.7

PostPosted: Wed Oct 10, 2012 9:11 am
by Jocko
blurp21 wrote:I finally compile lighttpd 1.4.31 and php 5.4.7
Both are working on my device. But there is problem with the web-interface. XML files seems to be note loaded. I have problem with xml files launched in html one's.
Hi blurp21

I confirm you can not use php 5.4.7 with the current firmware version (and also with the oldest versions).
We identified what it's wrong (several small changes must be done at different levels in the firmware)

So you can't now use php 5.4.7 (and I think also with php 5.3)

Re: lighttpd 1.4.31 and php 5.4.7

PostPosted: Wed Oct 10, 2012 12:39 pm
by blurp21
Hi,

Thank you for feedback.
I'm waiting update if you make it. For the moment if I need to change something I restart Apache or make it by CLI.

Re: lighttpd 1.4.31 and php 5.4.7

PostPosted: Wed Oct 10, 2012 3:57 pm
by fvdw
we will succeed with the update to php 5.4.7 but we will stick to the apache server as webserver

Most of the problems are identified and can be solved. Seems php 5.4.7 is more strict in applying rules then previous version as such syntax used in 5.2.6 not always works in 5.4.7

Re: lighttpd 1.4.31 and php 5.4.7

PostPosted: Fri Oct 19, 2012 2:59 pm
by fvdw
in the meantime we were able to get php-5.4.7 running together with latest apache server version 2.4.3 :mrgreen:

Especially php upgrade requires several adaptations in the firmware scripts due to changes the made in the syntax that can be used.
The intention is to include the upgrade in next firmware release.

Still some debugging and testing to be done

php547-4.JPG

apache243-2.JPG

Re: lighttpd 1.4.31 and php 5.4.7

PostPosted: Wed Oct 24, 2012 10:28 am
by blurp21
Nice work ;)

I will wait the update