{"id":179,"date":"2010-07-21T19:48:38","date_gmt":"2010-07-22T00:48:38","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=179"},"modified":"2010-08-09T14:44:25","modified_gmt":"2010-08-09T19:44:25","slug":"updated-roadsend-php-compiler-packages","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2010\/07\/21\/updated-roadsend-php-compiler-packages\/","title":{"rendered":"Updated Roadsend PHP Compiler 2.9.8 packages"},"content":{"rendered":"<p>Due to the vast interest in our previous <a href=\"\/labs\/2008\/07\/24\/install-roadsend-php-compiler-on-ubuntu-without-compiling-anything\/\">binary package of Roadsend PHP<\/a>, we have decided to compile a newer, updated version of the Roadsend PHP compiler (v2.9.8). However, due to previous flaws in the way that we compiled the previous PHP compile, many of our readers struggled or were entirely unable to get the compiler installed. As a result, Compdigitec is compiling new, fresh packages to target Ubuntu 9.10 and will make it easier to run Roadsend PHP on your Ubuntu Linux computer.<\/p>\n<p><strong>Prerequisites<\/strong><\/p>\n<ul>\n<li>Uninstall any old versions of Roadsend PHP and bigloo on your computer.<\/li>\n<li>Install the packages libgtk2.0-0, libpcre3, libfcgi, libmysqlclient15off and libsqlite3-0 like such:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo apt-get install libgtk2.0-0 libpcre3 libfcgi libmysqlclient15off libsqlite3-0\r\n<\/pre>\n<\/li>\n<li>Install <a href=\"\/labs\/files\/bigloo-compdigitec-unoffical.deb\">unofficial bigloo<\/a> and set up the bigloo symlink like such:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">sudo ln -s \/ \/z<\/pre>\n<\/li>\n<\/ul>\n<p><strong>Procedure<\/strong><\/p>\n<ol>\n<li>Download and install the Roadsend PHP binary package:\n<ul>\n<li><a title=\"roadsend-php-unofficial.deb\" href=\"\/labs\/files\/roadsend-php-unofficial.deb\">roadsend-php-unofficial.deb<\/a> (4.8 MB)<\/li>\n<\/ul>\n<p>Note that the Roadsend PHP debugger (pdb) has been renamed to (roadsend-pdb) due to naming conflict with python.<\/li>\n<li>Create a test PHP file with the following content, and save it as <strong>hello.php<\/strong>:\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\n\r\n\/\/ Roadsend PHP testing program\r\n$words = Array(&quot;Hello&quot;, &quot;World&quot;, &quot;from&quot;, &quot;Roadsend PHP!&quot;);\r\n$sentence = implode(&quot; &quot;,$words);\r\necho $sentence . &quot;\\n&quot;;\r\nexit(0);\r\n\r\n?&gt;<\/pre>\n<\/li>\n<li>Run:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">pcc hello.php<\/pre>\n<p>to generate a <em>hello<\/em> executable. Test this executable by running:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">.\/hello<\/pre>\n<p>The output of the program should read:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">Hello World from Roadsend PHP!<\/pre>\n<\/li>\n<li>Now we will test the MicroServer backend, which is a small embedded webserver that allows you to turn your PHP application into a stand-alone webserver:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">pcc -s hello-server --port 44444 hello.php<\/pre>\n<p>to generate the <em>hello-server<\/em> webserver. Now, we will try to visit the MicroServer:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">.\/hello-server<\/pre>\n<p>The server should be up and running by this point. Now point your browser at <a href=\"http:\/\/127.0.0.1:44444\/hello.php\">http:\/\/127.0.0.1:44444\/hello.php<\/a> and watch your PHP turn itself into a webserver without Apache.<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>Due to the vast interest in our previous binary package of Roadsend PHP, we have decided to compile a newer, updated version of the Roadsend PHP compiler (v2.9.8). However, due to previous flaws in the way that we compiled the previous PHP compile, many of our readers struggled or were entirely unable to get the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,5],"tags":[37,397,43,862,515,864,26,28],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/179"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}