<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Bugs &#187; Php</title>
	<atom:link href="http://www.randombugs.com/category/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Thu, 05 Jan 2012 11:44:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Apache Dynamic Virtual Hosting and PHP security</title>
		<link>http://www.randombugs.com/php/apache-dynamic-virtual-hosting-php-security.html</link>
		<comments>http://www.randombugs.com/php/apache-dynamic-virtual-hosting-php-security.html#comments</comments>
		<pubDate>Mon, 06 Jun 2011 10:35:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Virtual Hosting]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=739</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>
It&#8217;s been a while since I configured the latest Dynamic Mass Virtual Hosting Server. Last time I used mod_vhost_alias to create a dynamic virtual hosting and it worked without any problem for what we need in that time. Then we didn&#8217;t care about the ftp and virtual users, the sites was updated from web pages and security was pretty much handled by upload application who managed the virtual hosting. Now, the problem is a little bit changed: We need a secure sever which should support ftp virtual users with quota ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/php/apache-dynamic-virtual-hosting-php-security.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating and Installing a Certificate on Apache 2</title>
		<link>http://www.randombugs.com/linux/creating-and-installing-a-certificate-on-apache-2.html</link>
		<comments>http://www.randombugs.com/linux/creating-and-installing-a-certificate-on-apache-2.html#comments</comments>
		<pubDate>Wed, 12 Nov 2008 13:33:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=58</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gpg.png" width="24" height="24" alt="" title="Cryptography" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Generating  and installing a certificate Is not such a big deal as other may consider  but it requires some understanding of how apache and certificates are working.

This post will be structured in 3 parts:

Generating a private key for the apache server
Generating a Certificate Signing Request (CSR)
Configuring Apache 2 SSL

Generating a private key for the server
To generate a private key for our server we need OpenSSL utilities. To install it just run:
apt-get install openssl
To generate a private key run in console:
openssl genrsa –des3 –out www.mydomain.com.key 1024
If you are not ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/creating-and-installing-a-certificate-on-apache-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Webservice Client in PHP</title>
		<link>http://www.randombugs.com/php/simple-webservice-client-in-php.html</link>
		<comments>http://www.randombugs.com/php/simple-webservice-client-in-php.html#comments</comments>
		<pubDate>Tue, 12 Jun 2007 12:29:00 +0000</pubDate>
		<dc:creator>sacx</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Webservice]]></category>

		<guid isPermaLink="false">http://randombugs.wordpress.com/2007/06/12/simple-webservice-client-in-php/</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/php.png" width="24" height="24" alt="" title="Php" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gnome-fs-web.png" width="24" height="24" alt="" title="Webservice" /><br/>To test our early webservice code  from here  just use this simple php program.
require_once(&#8216;lib/nusoap.php&#8217;);
$wsdl=&#8221;http://your.server.domain/ws.php?wsdl&#8221;;
$client=new soapclient($wsdl, &#8216;wsdl&#8217;);
$param=array(&#8216;x&#8217;=&#62;&#8217;1&#8242;,&#8217;y'=&#62;&#8217;2&#8242;);
echo $client-&#62;call(&#8216;TestFunction&#8217;, $param).&#8221;\n&#8221;;
Related Posts:Creating a php webservice for C#HTTP transport error: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failedUsing VMware Webservice with C++ and gSOAPshell_sink: my new shell historyLinux ISC DHCP Server and Dynamic DNS updates under Debian and Ubuntu
]]></description>
		<wfw:commentRss>http://www.randombugs.com/php/simple-webservice-client-in-php.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a php webservice for C#</title>
		<link>http://www.randombugs.com/php/creating-a-php-webservice-for-c.html</link>
		<comments>http://www.randombugs.com/php/creating-a-php-webservice-for-c.html#comments</comments>
		<pubDate>Tue, 12 Jun 2007 06:23:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[Webservice]]></category>
		<category><![CDATA[c#]]></category>

		<guid isPermaLink="false">http://randombugs.wordpress.com/2007/06/12/creating-a-php-webservice-for-c/</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/php.png" width="24" height="24" alt="" title="Php" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gnome-fs-web.png" width="24" height="24" alt="" title="Webservice" /><br/>Probably a lot of you are wonder if is possible to access a php webservice from C#, so I made a simple test to show you is possible  .
In this test I used nusoap and php4. In the future I will do the test with PHP5 and it&#8217;s SOAP library.
//ws.php
require_once(&#8220;lib/nusoap.php&#8221;);
$ns=&#8221;http://your.server.address/&#8221;;
$param = array(&#8216;x&#8217; =&#62; &#8216;xsd:string&#8217;,'y&#8217; =&#62; &#8216;xsd:string&#8217;);
$return = array(&#8216;return&#8217;=&#62;&#8217;xsd:string&#8217;);
$server = new soap_server();
$server-&#62;configureWSDL(&#8216;WS Test&#8217;,$ns);
$server-&#62;wsdl-&#62;schemaTargetNamespace=$ns;
$server-&#62;register(&#8216;TestFunction&#8217;,$param,$return,$ns);
function TestFunction($x,$y){
$ret=$x+$y;
return new soapval(&#8216;return&#8217;,'xsd:string&#8217;,$ret);
}
$server-&#62;service($HTTP_RAW_POST_DATA);
To access this webservice just go to: http://your.server.address/ws.php?wsdl
Related Posts:Simple Webservice Client in PHPUsing VMware Webservice with C++ and gSOAPChanging default logging system in Glassfish 2.1 ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/php/creating-a-php-webservice-for-c.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

