<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ift.wiki.uib.no/index.php?action=history&amp;feed=atom&amp;title=Webserver</id>
	<title>Webserver - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ift.wiki.uib.no/index.php?action=history&amp;feed=atom&amp;title=Webserver"/>
	<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=Webserver&amp;action=history"/>
	<updated>2026-06-14T19:16:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>http://ift.wiki.uib.no/index.php?title=Webserver&amp;diff=1601&amp;oldid=prev</id>
		<title>Nfyku: Created page with &#039;== CGI scripts ==  $ cd /opt/petalinux-v1.3-final-full/software/petalinux-dist  $ petalinux-config-apps Scroll to PetaLogix Demo Applications and enter. Uncheck uWeb and exit. Sc…&#039;</title>
		<link rel="alternate" type="text/html" href="http://ift.wiki.uib.no/index.php?title=Webserver&amp;diff=1601&amp;oldid=prev"/>
		<updated>2011-06-22T12:58:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;== CGI scripts ==  $ cd /opt/petalinux-v1.3-final-full/software/petalinux-dist  $ petalinux-config-apps Scroll to PetaLogix Demo Applications and enter. Uncheck uWeb and exit. Sc…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== CGI scripts ==&lt;br /&gt;
 $ cd /opt/petalinux-v1.3-final-full/software/petalinux-dist&lt;br /&gt;
 $ petalinux-config-apps&lt;br /&gt;
Scroll to PetaLogix Demo Applications and enter.&lt;br /&gt;
Uncheck uWeb and exit.&lt;br /&gt;
Scroll to BusyBox-&amp;gt;Networking Utilities and make sure httpd is checked.&lt;br /&gt;
Exit and make the Petalinux image.&lt;br /&gt;
The server files is now located in &amp;#039;/home/httpd&amp;#039;. CGI scripts should go in cgi-bin directory and chmoded to +x.&lt;br /&gt;
&lt;br /&gt;
[http://www.tidsreise.com/filer/simple-webinterface.zip Here] is a simple script used to read and write to memory using &amp;#039;devmem&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Interface ==&lt;br /&gt;
[http://cssbeauty.com/skillshare/discussion/3304/styled-checkbox-cross-browser-solution/]&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
First I tried to modify the default page source files (i.e. petalinux.page) but found out that the whole page is some binary, so the [http://www.workware.net.au/Workware/uWeb.html uWeb] API is needed. &lt;br /&gt;
&lt;br /&gt;
Then I set out to install php.&lt;br /&gt;
&lt;br /&gt;
* Attempt 1&lt;br /&gt;
Follow [http://www.menie.org/georges/uClinux/boa-php.html the guide] by Georges Ménie (excluding boa).&lt;br /&gt;
I downloaded [http://museum.php.net/php4/php-4.3.10.tar.gz php-4.3.10] and applied Georges&amp;#039; patch. Did not compile, so I did some desperate fiddling and came to short.&lt;br /&gt;
&lt;br /&gt;
* Attempt 2&lt;br /&gt;
**Downloaded the latest [http://www.php.net/get/php-5.3.6.tar.gz/from/a/mirror php-5.3.6].&lt;br /&gt;
**Extracted to &amp;#039;/opt/petalinux-v1.3-final-full/software/petalinux-dist/user&amp;#039; to a folder &amp;#039;php&amp;#039;.&lt;br /&gt;
**Edit /opt/petalinux-v1.3-final-full/software/petalinux-dist/user/Makefile:&lt;br /&gt;
 dir_$(CONFIG_USER_PHP_PHP)                  += php&lt;br /&gt;
**Edit /opt/petalinux-v1.3-final-full/software/petalinux-dist/config/Kconfig&lt;br /&gt;
 config USER_PHP_PHP&lt;br /&gt;
        bool &amp;quot;php&amp;quot;&lt;br /&gt;
        help&lt;br /&gt;
          Testing php support&lt;br /&gt;
This adds the php application to the petalinux-config-apps ui where we can select it to be compiled  to the petalinux image.&lt;br /&gt;
**Enter php directory in user catalog&lt;br /&gt;
 ./configure --disable-all&lt;br /&gt;
**Edit /opt/petalinux-v1.3-final-full/software/petalinux-dist/user/php/Makefile&lt;br /&gt;
 CC = /opt/petalinux-v1.3-final-full/tools/linux-i386/microblaze-unknown-linux-gnu/microblaze-unknown-linux-gnu/bin/gcc&lt;br /&gt;
When compiling the petalinux image, I get no errors in the compile step of php, but get a romfs error during the install step. I believe it has something to do with the large filesize of the php binary or some problem with the Makefile.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
#[https://docs.blackfin.uclinux.org/doku.php?id=adding_user_applications uClinux - Adding user applications]&lt;br /&gt;
#[http://www.menie.org/georges/uClinux/boa-php.html BOA + PHP for uClinux]&lt;br /&gt;
#[http://oldwiki.openwrt.org/OpenWrtDocs(2f)httpd_CGI_scripts.html CGI html form example 1]&lt;br /&gt;
#[http://www.jmarshall.com/easy/cgi/cgi_footnotes.html#security CGI security, to be read]&lt;br /&gt;
#[http://www.ooblick.com/text/sh/ Bourne shell reference]&lt;br /&gt;
&lt;br /&gt;
#[http://foxlx.acmesystems.it/?id=165 Les]&lt;br /&gt;
&lt;br /&gt;
[[Category:Embedded]]&lt;/div&gt;</summary>
		<author><name>Nfyku</name></author>
	</entry>
</feed>