Jump to content
  • 0

Create a websever petalinux xilinx


tahoe250

Question

Hello all,

I am going to apologize in advance for this question.  I have been trying to figure out how to even get started with respect to creating a web server in Linux.

I found this example which is great, however, it's for bare-metal application:

https://reference.digilentinc.com/reference/add-ons/dmm-shield/webserverdemouserguide?_ga=2.161769276.1628826370.1603404428-96488038.1600272185

I found links that relate to using busybox/http but I could not find how my c application would interact with the webpage.  I also need to transfer large data sets. 

I would like to use javascript HTML and CCS possibly PHP for creating my webpage.  I need some help getting started with this.  

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

You can configure petalinux rootfs to include apache2 server and PHP interpretor.

For apach2 use petalinux-config -c rootfs command

As for PHP you need to add the yocto recipe to petalinux image using project-spec/meta-user/conf/user-rootfsconfig or project-spec/meta-user/recipes-core/images/petalinux-image-full.bbappend (for petalinux earlier than 2019.2) then you can include it in rootfs via petalinux-config -c rootfs command.

HTML, CSS, JavaScript are processed on client machine not on server. Except in case you use server side javascript like in case of nodejs.

Also note that http(s) is REQUEST RESPONSE so no data is delivered unless requested by client.

As for integrating your C app in webserver there is CGI and FastCGI. Doing some reasarch may prove useful depending on what you try to accomplish. https://stackoverflow.com/questions/37562197/how-to-use-a-c-application-in-web-server

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...