lighttpd 1.4.31 and php 5.4.7

lighttpd 1.4.31 and php 5.4.7

Postby blurp21 » Sat Oct 06, 2012 11:46 pm

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
blurp21
 

Re: lighttpd 1.4.31 and php 5.4.7

Postby fvdw » Sun Oct 07, 2012 3:31 pm

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.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lighttpd 1.4.31 and php 5.4.7

Postby Jocko » Wed Oct 10, 2012 9:11 am

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)
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: lighttpd 1.4.31 and php 5.4.7

Postby blurp21 » Wed Oct 10, 2012 12:39 pm

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.
blurp21
 

Re: lighttpd 1.4.31 and php 5.4.7

Postby fvdw » Wed Oct 10, 2012 3:57 pm

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lighttpd 1.4.31 and php 5.4.7

Postby fvdw » Fri Oct 19, 2012 2:59 pm

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
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: lighttpd 1.4.31 and php 5.4.7

Postby blurp21 » Wed Oct 24, 2012 10:28 am

Nice work ;)

I will wait the update
blurp21
 


Return to Development

Who is online

Users browsing this forum: Bing Bot and 5 guests