<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Linux-Noob Forums - LAMP]]></title>
		<link>https://www.linux-noob.com/forums/</link>
		<description><![CDATA[Linux-Noob Forums - https://www.linux-noob.com/forums]]></description>
		<pubDate>Fri, 01 May 2026 07:30:07 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[apache/mod_ssl problem]]></title>
			<link>https://www.linux-noob.com/forums/thread-221.html</link>
			<pubDate>Wed, 18 Jan 2012 11:16:58 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-221.html</guid>
			<description><![CDATA[<br />
I removed my ssl options in apache for one of my websites and I changed the port for virtualhost back to 80. I also remove the certificates for feedmebits.nl. I restarted apache but now my website one seem to come online anymore. My other website wors fine, when I try to go to feedmebits.nl via a proxy, I get the following error: Couldn't connect to feedmebits.nl:443: No route to host . Seems like somewhere it's still trying to connect to the ssl port. I've been search and looking over my apache config file. Can't find anything there and I there's nothing installed anymore that has to do with ssl. Any advice to help me in the right direction. My website access.log shows that I did try to connect via a proxy:<br />
<br />
 <br />
<br />
69.175.115.50 - - [18/Jan/2012:10:55:51 +0100] "GET / HTTP/1.0" 303 - "http://www.mywebtunnel.com/" "Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"<br />
<br />
but it won't display my site.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I removed my ssl options in apache for one of my websites and I changed the port for virtualhost back to 80. I also remove the certificates for feedmebits.nl. I restarted apache but now my website one seem to come online anymore. My other website wors fine, when I try to go to feedmebits.nl via a proxy, I get the following error: Couldn't connect to feedmebits.nl:443: No route to host . Seems like somewhere it's still trying to connect to the ssl port. I've been search and looking over my apache config file. Can't find anything there and I there's nothing installed anymore that has to do with ssl. Any advice to help me in the right direction. My website access.log shows that I did try to connect via a proxy:<br />
<br />
 <br />
<br />
69.175.115.50 - - [18/Jan/2012:10:55:51 +0100] "GET / HTTP/1.0" 303 - "http://www.mywebtunnel.com/" "Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"<br />
<br />
but it won't display my site.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[.htpasswd]]></title>
			<link>https://www.linux-noob.com/forums/thread-232.html</link>
			<pubDate>Sat, 07 Jan 2012 21:50:10 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2">anyweb</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-232.html</guid>
			<description><![CDATA[is it possible to add another user/password to my already configured .htpasswd file ?<br />
]]></description>
			<content:encoded><![CDATA[is it possible to add another user/password to my already configured .htpasswd file ?<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Working on Fail2ban]]></title>
			<link>https://www.linux-noob.com/forums/thread-274.html</link>
			<pubDate>Sun, 06 Nov 2011 19:06:41 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-274.html</guid>
			<description><![CDATA[<br />
I got logwatch installed and working. I've also installed fail to ban and started the service. Still working on configuring it. I found out that I should be able to configure fail2ban to filter and ban per log. I found this in the fail2ban <a href="http://www.fail2ban.org/wiki/index.php/Apache" target="_blank" rel="noopener" class="mycode_url">documention</a> : at the bottom<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: 2pt;" class="mycode_size">Centos</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">	</span><span style="font-weight: bold;" class="mycode_b">&lt;strong&gt;<span style="font-size: 2pt;" class="mycode_size">Under CentOS / RedHat Enterprise Linux, httpd (Apache) is </span></span>&lt;/strong&gt;<a href="http://books.google.com/books?id=sWwh1_yR2Y0C&amp;lpg=PA219&amp;ots=zLAfm0WQYw&amp;dq=centos%20httpd%20libwrap&amp;pg=PA219#v=onepage&amp;q=centos%20httpd%20libwrap&amp;f=false%7C" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">&lt;strong&gt;<span style="font-size: 2pt;" class="mycode_size">not compiled with tcpwrappers support</span></span>&lt;/strong&gt;</a><span style="font-weight: bold;" class="mycode_b">&lt;strong&gt;<span style="font-size: 2pt;" class="mycode_size">. As a result the example in jail.conf called "apache-tcpwrapper" does not work since /etc/hosts.deny does not affe</span></span>&lt;/strong&gt;<span style="font-weight: bold;" class="mycode_b"><span style="font-size: 2pt;" class="mycode_size">ct apache.</span></span><br />
<br />
 <br />
<br />
Mean that the filter [apache-tcpwrapper] won't work for me. So I did a bit of search and come across <a href="http://centoshelp.org/security/fail2ban/" target="_blank" rel="noopener" class="mycode_url">centos-fail2ban</a>  and seem they are using it there. So I'll just try to use it and configure it and see what the results are. But just strange two documentations saying two different things.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I got logwatch installed and working. I've also installed fail to ban and started the service. Still working on configuring it. I found out that I should be able to configure fail2ban to filter and ban per log. I found this in the fail2ban <a href="http://www.fail2ban.org/wiki/index.php/Apache" target="_blank" rel="noopener" class="mycode_url">documention</a> : at the bottom<br />
<br />
<span style="font-weight: bold;" class="mycode_b"><span style="font-size: 2pt;" class="mycode_size">Centos</span></span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">	</span><span style="font-weight: bold;" class="mycode_b">&lt;strong&gt;<span style="font-size: 2pt;" class="mycode_size">Under CentOS / RedHat Enterprise Linux, httpd (Apache) is </span></span>&lt;/strong&gt;<a href="http://books.google.com/books?id=sWwh1_yR2Y0C&amp;lpg=PA219&amp;ots=zLAfm0WQYw&amp;dq=centos%20httpd%20libwrap&amp;pg=PA219#v=onepage&amp;q=centos%20httpd%20libwrap&amp;f=false%7C" target="_blank" rel="noopener" class="mycode_url"><span style="font-weight: bold;" class="mycode_b">&lt;strong&gt;<span style="font-size: 2pt;" class="mycode_size">not compiled with tcpwrappers support</span></span>&lt;/strong&gt;</a><span style="font-weight: bold;" class="mycode_b">&lt;strong&gt;<span style="font-size: 2pt;" class="mycode_size">. As a result the example in jail.conf called "apache-tcpwrapper" does not work since /etc/hosts.deny does not affe</span></span>&lt;/strong&gt;<span style="font-weight: bold;" class="mycode_b"><span style="font-size: 2pt;" class="mycode_size">ct apache.</span></span><br />
<br />
 <br />
<br />
Mean that the filter [apache-tcpwrapper] won't work for me. So I did a bit of search and come across <a href="http://centoshelp.org/security/fail2ban/" target="_blank" rel="noopener" class="mycode_url">centos-fail2ban</a>  and seem they are using it there. So I'll just try to use it and configure it and see what the results are. But just strange two documentations saying two different things.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[more apache/php]]></title>
			<link>https://www.linux-noob.com/forums/thread-322.html</link>
			<pubDate>Tue, 06 Sep 2011 08:25:07 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-322.html</guid>
			<description><![CDATA[Been kind of busy this past week, and this week too. Going to continue with my webserver project en wil post and document here so others can use it and I'll post my questions here when I'm stuck on something and can't figure it out. I'm going to try install/configure suphp, mod_ssl, and maybe mod_security. And maybe others but just starting with these.<br />
]]></description>
			<content:encoded><![CDATA[Been kind of busy this past week, and this week too. Going to continue with my webserver project en wil post and document here so others can use it and I'll post my questions here when I'm stuck on something and can't figure it out. I'm going to try install/configure suphp, mod_ssl, and maybe mod_security. And maybe others but just starting with these.<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Apache/websites]]></title>
			<link>https://www.linux-noob.com/forums/thread-348.html</link>
			<pubDate>Fri, 12 Aug 2011 07:48:16 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-348.html</guid>
			<description><![CDATA[<br />
I have LAMP server running and I've been using root account download files into <br />
<br />
/var/www/html/websites/example.com. Right now all the folders/files are owned by root.<br />
<br />
Is it better to make a normal user account and give that account r/w/x access to /var/www/html/websites <br />
<br />
or /var/www/html/websites/example.com .So that I'm not doing everything with root user cuz I think that's <br />
<br />
probably an unsafe practice?<br />
<br />
 <br />
<br />
And I have Joomla installed and my folders rights are set to 755 which but when I try to install a joomla<br />
<br />
component or template I get the following error: Warning: Failed to move file! I know this has to do with <br />
<br />
rights not being set right cuz I <a href="http://www.templatemonster.com/help/joomla-1-6-warning-failed-to-move-file.html" target="_blank" rel="noopener" class="mycode_url">googled</a> it. <br />
<br />
But I don't quite get it cause as far as I can see all my folder permissions are set right, but when I check joomla system information-&gt;<br />
<br />
Directory permissions they all say unwritable. Maybe it has to do with my first question? According to <a href="http://docs.joomla.org/What_are_the_recommended_file_and_directory_permissions%3F" target="_blank" rel="noopener" class="mycode_url">joomla-documentation</a> <br />
<br />
files should be set to 644 and folders to 755. And I'm not comfortable  setting the folder permissions to 777.<br />
<br />
&lt;a class="ipsAttachLink ipsAttachLink_image" href="&lt;fileStore.core_Attachment&gt;/monthly_08_2011/post-6026-0-25442600-1313128336.jpg" data-fileid="1306"&gt;[img]&lt;fileStore.core_Attachment&gt;/monthly_08_2011/post-6026-0-25442600-1313128336.jpg[/img]&lt;/a&gt;<br />
<br />
<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.linux-noob.com/forums/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=974" target="_blank" title="">Unwritable-Folders.JPG</a> (Size: 171.4 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<br />
I have LAMP server running and I've been using root account download files into <br />
<br />
/var/www/html/websites/example.com. Right now all the folders/files are owned by root.<br />
<br />
Is it better to make a normal user account and give that account r/w/x access to /var/www/html/websites <br />
<br />
or /var/www/html/websites/example.com .So that I'm not doing everything with root user cuz I think that's <br />
<br />
probably an unsafe practice?<br />
<br />
 <br />
<br />
And I have Joomla installed and my folders rights are set to 755 which but when I try to install a joomla<br />
<br />
component or template I get the following error: Warning: Failed to move file! I know this has to do with <br />
<br />
rights not being set right cuz I <a href="http://www.templatemonster.com/help/joomla-1-6-warning-failed-to-move-file.html" target="_blank" rel="noopener" class="mycode_url">googled</a> it. <br />
<br />
But I don't quite get it cause as far as I can see all my folder permissions are set right, but when I check joomla system information-&gt;<br />
<br />
Directory permissions they all say unwritable. Maybe it has to do with my first question? According to <a href="http://docs.joomla.org/What_are_the_recommended_file_and_directory_permissions%3F" target="_blank" rel="noopener" class="mycode_url">joomla-documentation</a> <br />
<br />
files should be set to 644 and folders to 755. And I'm not comfortable  setting the folder permissions to 777.<br />
<br />
&lt;a class="ipsAttachLink ipsAttachLink_image" href="&lt;fileStore.core_Attachment&gt;/monthly_08_2011/post-6026-0-25442600-1313128336.jpg" data-fileid="1306"&gt;[img]&lt;fileStore.core_Attachment&gt;/monthly_08_2011/post-6026-0-25442600-1313128336.jpg[/img]&lt;/a&gt;<br />
<br />
<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.linux-noob.com/forums/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=974" target="_blank" title="">Unwritable-Folders.JPG</a> (Size: 171.4 KB / Downloads: 0)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[apache/virtualhosts/phpmyadmin]]></title>
			<link>https://www.linux-noob.com/forums/thread-349.html</link>
			<pubDate>Tue, 09 Aug 2011 19:48:02 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-349.html</guid>
			<description><![CDATA[<br />
I have my apache and virtualhost setup same as in this <a href="http://&lt;___base_url___&gt;/index.php?/topic/4119-dont-understand-something-about-virtualhosts/" target="_blank" rel="noopener" class="mycode_url">post</a><br />
<br />
After this I installed phpmyadmin, by downloaded it and untaring it and renaming the folder to phpmyadmin. And I restarted apache and testet it: <a href="http://myip/phpmyadmin." target="_blank" rel="noopener" class="mycode_url">http://myip/phpmyadmin.</a> <br />
<br />
phpmyadmin wasn't working. I then tried commented out my virtual host and I restarted apache and again I tested <a href="http://myip/phpmyadmin" target="_blank" rel="noopener" class="mycode_url">http://myip/phpmyadmin</a> and it worked. So how come<br />
<br />
phpmyadmin works when I'm not using my virtual domain and when I do it doesn't work?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I have my apache and virtualhost setup same as in this <a href="http://&lt;___base_url___&gt;/index.php?/topic/4119-dont-understand-something-about-virtualhosts/" target="_blank" rel="noopener" class="mycode_url">post</a><br />
<br />
After this I installed phpmyadmin, by downloaded it and untaring it and renaming the folder to phpmyadmin. And I restarted apache and testet it: <a href="http://myip/phpmyadmin." target="_blank" rel="noopener" class="mycode_url">http://myip/phpmyadmin.</a> <br />
<br />
phpmyadmin wasn't working. I then tried commented out my virtual host and I restarted apache and again I tested <a href="http://myip/phpmyadmin" target="_blank" rel="noopener" class="mycode_url">http://myip/phpmyadmin</a> and it worked. So how come<br />
<br />
phpmyadmin works when I'm not using my virtual domain and when I do it doesn't work?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Don't understand something about virtualhosts]]></title>
			<link>https://www.linux-noob.com/forums/thread-351.html</link>
			<pubDate>Sun, 07 Aug 2011 18:12:40 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3499">inittux</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-351.html</guid>
			<description><![CDATA[<br />
I'm trying to get virtual hosts working on Apache.<br />
<br />
 <br />
<br />
In /etc/httpd/conf/http.conf it says that: DocumentRoot "/var/www/html". So I think that's the place where Apache will be looking for your website files.<br />
<br />
 <br />
<br />
I made a virtualhost:<br />
<br />
 <br />
<br />
NameVirtualHost ipadress:80<br />
<br />
 <br />
<br />
# Custom virtualhosts<br />
<br />
 <br />
<br />
&lt;virtualhost ipadress:80&gt;&lt;/virtualhost&gt;<br />
<br />
ServerAlias <a href="http://www.feedmebits.nl" target="_blank" rel="noopener" class="mycode_url">www.feedmebits.nl</a><br />
<br />
ServerAdmin maarten@feedmebits.nl<br />
<br />
DocumentRoot feedmebits.nl<br />
<br />
ServerName  feedmebits.nl<br />
<br />
ErrorLog logs/feedmebits.nl-error_log<br />
<br />
#CustomLog logs/host.some_domain.com-access_log common<br />
<br />
<br />
<br />
 <br />
<br />
in /var/www/html/ I made two directories so it looks like this:<br />
<br />
/var/www/html/websites/feedmebits.nl<br />
<br />
 <br />
<br />
 <br />
<br />
When I restart Apached it restarts but gives me an error:<br />
<br />
Starting httpd: Warning: DocumentRoot [/etc/httpd/feedmebits.nl] does not exist<br />
<br />
 <br />
<br />
When I try and make a directory in /etc/httpd/feedmebits.nl and restart apache I don't get the error message.<br />
<br />
And when I try making putting feedmebits.nl in a sub directory: /etc/httpd/websites/feedmebits.nl I also get<br />
<br />
an the same error message.<br />
<br />
I don't quite understand this because isn't it supposed to go to DocumentRoot which is /var/www/html and if I added <br />
<br />
directories in there and mentioned it in my virtual host, isn't it supposed to see it? Why am I getting an error?<br />
<br />
Don't quite understand?<br />
<br />
 <br />
<br />
Another thing I noticed, is that when I have my virtualhost enabled, and try to go to my test.php which is in /var/www/html/test.php<br />
<br />
It doesn't work anymore either. When I add it to /etc/httpd/feedmebits.nl, it works again.<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I'm trying to get virtual hosts working on Apache.<br />
<br />
 <br />
<br />
In /etc/httpd/conf/http.conf it says that: DocumentRoot "/var/www/html". So I think that's the place where Apache will be looking for your website files.<br />
<br />
 <br />
<br />
I made a virtualhost:<br />
<br />
 <br />
<br />
NameVirtualHost ipadress:80<br />
<br />
 <br />
<br />
# Custom virtualhosts<br />
<br />
 <br />
<br />
&lt;virtualhost ipadress:80&gt;&lt;/virtualhost&gt;<br />
<br />
ServerAlias <a href="http://www.feedmebits.nl" target="_blank" rel="noopener" class="mycode_url">www.feedmebits.nl</a><br />
<br />
ServerAdmin maarten@feedmebits.nl<br />
<br />
DocumentRoot feedmebits.nl<br />
<br />
ServerName  feedmebits.nl<br />
<br />
ErrorLog logs/feedmebits.nl-error_log<br />
<br />
#CustomLog logs/host.some_domain.com-access_log common<br />
<br />
<br />
<br />
 <br />
<br />
in /var/www/html/ I made two directories so it looks like this:<br />
<br />
/var/www/html/websites/feedmebits.nl<br />
<br />
 <br />
<br />
 <br />
<br />
When I restart Apached it restarts but gives me an error:<br />
<br />
Starting httpd: Warning: DocumentRoot [/etc/httpd/feedmebits.nl] does not exist<br />
<br />
 <br />
<br />
When I try and make a directory in /etc/httpd/feedmebits.nl and restart apache I don't get the error message.<br />
<br />
And when I try making putting feedmebits.nl in a sub directory: /etc/httpd/websites/feedmebits.nl I also get<br />
<br />
an the same error message.<br />
<br />
I don't quite understand this because isn't it supposed to go to DocumentRoot which is /var/www/html and if I added <br />
<br />
directories in there and mentioned it in my virtual host, isn't it supposed to see it? Why am I getting an error?<br />
<br />
Don't quite understand?<br />
<br />
 <br />
<br />
Another thing I noticed, is that when I have my virtualhost enabled, and try to go to my test.php which is in /var/www/html/test.php<br />
<br />
It doesn't work anymore either. When I add it to /etc/httpd/feedmebits.nl, it works again.<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Download of "pecl/json" succeeded, but it is not a valid package archive]]></title>
			<link>https://www.linux-noob.com/forums/thread-397.html</link>
			<pubDate>Tue, 04 Jan 2011 08:47:22 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2">anyweb</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-397.html</guid>
			<description><![CDATA[<br />
I'm in the process of upgrading the webserver backup server (making it as up to date as the server in amsterdam) and got an error installng the json component,<br />
<br />
 <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[root@www ~]# pear install pecl/jsondownloading json-1.2.1.tgz ...<br />
<br />
Starting to download json-1.2.1.tgz (-1 bytes)<br />
<br />
....done: 3,585 bytes<br />
<br />
Could not get contents of package "/tmp/tmp6dS4fR/json-1.2.1.tgz". Invalid tgz file.<br />
<br />
Download of "pecl/json" succeeded, but it is not a valid package archive<br />
<br />
Error: cannot download "pear/json"</blockquote>
 <br />
<br />
 <br />
<br />
reason why ?<br />
<br />
 <br />
<br />
because the <a href="http://pecl.php.net/" target="_blank" rel="noopener" class="mycode_url">http://pecl.php.net/</a> site is down...<br />
<br />
 <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>ERROR: <br />
<br />
    * DB Error: connect failed</blockquote>
 <br />
<br />
any workaround ? or must I wait until it's back up again ?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
I'm in the process of upgrading the webserver backup server (making it as up to date as the server in amsterdam) and got an error installng the json component,<br />
<br />
 <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>[root@www ~]# pear install pecl/jsondownloading json-1.2.1.tgz ...<br />
<br />
Starting to download json-1.2.1.tgz (-1 bytes)<br />
<br />
....done: 3,585 bytes<br />
<br />
Could not get contents of package "/tmp/tmp6dS4fR/json-1.2.1.tgz". Invalid tgz file.<br />
<br />
Download of "pecl/json" succeeded, but it is not a valid package archive<br />
<br />
Error: cannot download "pear/json"</blockquote>
 <br />
<br />
 <br />
<br />
reason why ?<br />
<br />
 <br />
<br />
because the <a href="http://pecl.php.net/" target="_blank" rel="noopener" class="mycode_url">http://pecl.php.net/</a> site is down...<br />
<br />
 <br />
<br />
<blockquote class="mycode_quote"><cite>Quote:</cite>ERROR: <br />
<br />
    * DB Error: connect failed</blockquote>
 <br />
<br />
any workaround ? or must I wait until it's back up again ?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[mirroring a webserver]]></title>
			<link>https://www.linux-noob.com/forums/thread-421.html</link>
			<pubDate>Wed, 13 Oct 2010 19:36:04 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2">anyweb</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-421.html</guid>
			<description><![CDATA[<br />
hi guys, i'd like to (if possible) mirror my webserver setup (centos 5.5) so that it's running simultaneously on one server in Europe and one in the U.S. and any changes that happen on one will be mirrored on the other<br />
<br />
 <br />
<br />
the setup is all via rpm, and it's apache, mysql, php, there are two websites with databases to consider (this and another) and that's about it,<br />
<br />
is it doable but more importantly is it hard to do ??? any tips/ideas/guides ?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
hi guys, i'd like to (if possible) mirror my webserver setup (centos 5.5) so that it's running simultaneously on one server in Europe and one in the U.S. and any changes that happen on one will be mirrored on the other<br />
<br />
 <br />
<br />
the setup is all via rpm, and it's apache, mysql, php, there are two websites with databases to consider (this and another) and that's about it,<br />
<br />
is it doable but more importantly is it hard to do ??? any tips/ideas/guides ?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Apache vhosts inGentoo]]></title>
			<link>https://www.linux-noob.com/forums/thread-463.html</link>
			<pubDate>Thu, 13 May 2010 19:19:18 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2079">EzMe</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-463.html</guid>
			<description><![CDATA[<br />
Im trying to set up 2 vhosts on gentoo. I got vhost1.nl and vhost2.nl. For some reason i when i visit vhost2.nl it redirects me to vhosts1.nl and i cannot figuere out why.<br />
<br />
 <br />
<br />
This is my setup:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># apache2 -V<br />
Server version: Apache/2.2.15 (Unix)<br />
Server built:&nbsp;&nbsp; Mar 31 2010 09:16:29<br />
Server's Module Magic Number: 20051115:24<br />
Server loaded:&nbsp;&nbsp;APR 1.3.9, APR-Util 1.3.9<br />
Compiled using: APR 1.3.9, APR-Util 1.3.9<br />
Architecture:&nbsp;&nbsp; 32-bit<br />
Server MPM:&nbsp;&nbsp;&nbsp;&nbsp; Prefork<br />
 threaded:&nbsp;&nbsp;&nbsp;&nbsp; no<br />
&nbsp;&nbsp; forked:&nbsp;&nbsp;&nbsp;&nbsp; yes (variable process count)<br />
Server compiled with....<br />
-D APACHE_MPM_DIR="server/mpm/prefork"<br />
-D APR_HAS_SENDFILE<br />
-D APR_HAS_MMAP<br />
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)<br />
-D APR_USE_SYSVSEM_SERIALIZE<br />
-D APR_USE_PTHREAD_SERIALIZE<br />
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT<br />
-D APR_HAS_OTHER_CHILD<br />
-D AP_HAVE_RELIABLE_PIPED_LOGS<br />
-D DYNAMIC_MODULE_LIMIT=128<br />
-D HTTPD_ROOT="/usr"<br />
-D SUEXEC_BIN="/usr/sbin/suexec"<br />
-D DEFAULT_PIDLOG="/var/run/httpd.pid"<br />
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"<br />
-D DEFAULT_LOCKFILE="/var/run/accept.lock"<br />
-D DEFAULT_ERRORLOG="logs/error_log"<br />
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"<br />
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
File: /etc/conf.d/apache2<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># /etc/conf.d/apache2: config file for /etc/init.d/apache2<br />
<br />
# When you install a module it is easy to activate or deactivate the modules<br />
# and other features of apache using the APACHE2_OPTS line. Every module should<br />
# install a configuration in /etc/apache2/modules.d. In that file will have an<br />
# &lt;IfDefine NNN&gt; directive where NNN is the option to enable that module.<br />
#<br />
# Here are the options available in the default configuration:<br />
#<br />
#&nbsp;&nbsp;AUTH_DIGEST&nbsp;&nbsp;Enables mod_auth_digest<br />
#&nbsp;&nbsp;AUTHNZ_LDAP&nbsp;&nbsp;Enables authentication through mod_ldap (available if USE=ldap)<br />
#&nbsp;&nbsp;CACHE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables mod_cache<br />
#&nbsp;&nbsp;DAV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables mod_dav<br />
#&nbsp;&nbsp;ERRORDOCS&nbsp;&nbsp;&nbsp;&nbsp;Enables default error documents for many languages.<br />
#&nbsp;&nbsp;INFO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables mod_info, a useful module for debugging<br />
#&nbsp;&nbsp;LANGUAGE&nbsp;&nbsp;&nbsp;&nbsp; Enables content-negotiation based on language and charset.<br />
#&nbsp;&nbsp;LDAP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables mod_ldap (available if USE=ldap)<br />
#&nbsp;&nbsp;MANUAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables /manual/ to be the apache manual (available if USE=docs)<br />
#&nbsp;&nbsp;MEM_CACHE&nbsp;&nbsp;&nbsp;&nbsp;Enables default configuration mod_mem_cache<br />
#&nbsp;&nbsp;PROXY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables mod_proxy<br />
#&nbsp;&nbsp;SSL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables SSL (available if USE=ssl)<br />
#&nbsp;&nbsp;SUEXEC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables running CGI scripts (in USERDIR) through suexec.<br />
#&nbsp;&nbsp;USERDIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables /~username mapping to /home/username/public_html<br />
#<br />
#<br />
# The following two options provide the default virtual host for the HTTP and<br />
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache<br />
# will not listen for incomming connections on the approriate port.<br />
#<br />
#&nbsp;&nbsp;DEFAULT_VHOST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables name-based virtual hosts, with the default<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; virtual host being in /var/www/localhost/htdocs<br />
#&nbsp;&nbsp;SSL_DEFAULT_VHOST&nbsp;&nbsp;Enables default vhost for SSL (you should enable this<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when you enable SSL)<br />
#<br />
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D PHP5 -D PROXY -D PROXY_HTML"<br />
<br />
# Extended options for advanced uses of Apache ONLY<br />
# You don't need to edit these unless you are doing crazy Apache stuff<br />
# As not having them set correctly, or feeding in an incorrect configuration<br />
# via them will result in Apache failing to start<br />
# YOU HAVE BEEN WARNED.<br />
<br />
# ServerRoot setting<br />
#SERVERROOT=/usr/lib/apache2<br />
<br />
# Configuration file location<br />
# - If this does NOT start with a '/', then it is treated relative to<br />
# &#36;SERVERROOT by Apache<br />
#CONFIGFILE=/etc/apache2/httpd.conf<br />
<br />
# Location to log startup errors to<br />
# They are normally dumped to your terminal.<br />
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"<br />
<br />
# A command that outputs a formatted text version of the HTML at the URL<br />
# of the command line. Designed for lynx, however other programs may work.<br />
#LYNX="lynx -dump"<br />
<br />
# The URL to your server's mod_status status page.<br />
# Required for status and fullstatus<br />
#STATUSURL="http://localhost/server-status"<br />
<br />
# Method to use when reloading the server<br />
# Valid options are 'restart' and 'graceful'<br />
# See http://httpd.apache.org/docs/2.2/stopping.html for information on<br />
# what they do and how they differ.<br />
#RELOAD_TYPE="graceful"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
http.conf:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># cat httpd.conf<br />
# This is a modification of the default Apache 2.2 configuration file<br />
# for Gentoo Linux.<br />
#<br />
# Support:<br />
#&nbsp;&nbsp; http://www.gentoo.org/main/en/lists.xml&nbsp;&nbsp; [mailing lists]<br />
#&nbsp;&nbsp; http://forums.gentoo.org/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [web forums]<br />
#&nbsp;&nbsp; irc://irc.freenode.net#gentoo-apache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[irc chat]<br />
#<br />
# Bug Reports:<br />
#&nbsp;&nbsp; http://bugs.gentoo.org&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[gentoo related bugs]<br />
#&nbsp;&nbsp; http://httpd.apache.org/bug_report.html&nbsp;&nbsp; [apache httpd related bugs]<br />
#<br />
#<br />
# This is the main Apache HTTP server configuration file.&nbsp;&nbsp;It contains the<br />
# configuration directives that give the server its instructions.<br />
# See &lt;URL:http://httpd.apache.org/docs/2.2&gt; for detailed information.<br />
# In particular, see<br />
# &lt;URL:http://httpd.apache.org/docs/2.2/mod/directives.html&gt;<br />
# for a discussion of each configuration directive.<br />
#<br />
# Do NOT simply read the instructions in here without understanding<br />
# what they do.&nbsp;&nbsp;They're here only as hints or reminders.&nbsp;&nbsp;If you are unsure<br />
# consult the online docs. You have been warned.<br />
#<br />
# Configuration and logfile names: If the filenames you specify for many<br />
# of the server's control files begin with "/" (or "drive:/" for Win32), the<br />
# server will use that explicit path.&nbsp;&nbsp;If the filenames do *not* begin<br />
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"<br />
# with ServerRoot set to "/usr" will be interpreted by the<br />
# server as "/usr/var/log/apache2/foo.log".<br />
<br />
# ServerRoot: The top of the directory tree under which the server's<br />
# configuration, error, and log files are kept.<br />
#<br />
# Do not add a slash at the end of the directory path.&nbsp;&nbsp;If you point<br />
# ServerRoot at a non-local disk, be sure to point the LockFile directive<br />
# at a local disk.&nbsp;&nbsp;If you wish to share the same ServerRoot for multiple<br />
# httpd daemons, you will need to change at least LockFile and PidFile.<br />
ServerRoot "/usr/lib/apache2"<br />
<br />
# Dynamic Shared Object (DSO) Support<br />
#<br />
# To be able to use the functionality of a module which was built as a DSO you<br />
# have to place corresponding `LoadModule' lines at this location so the<br />
# directives contained in it are actually available _before_ they are used.<br />
# Statically compiled modules (those listed by `httpd -l') do not need<br />
# to be loaded here.<br />
#<br />
# Example:<br />
# LoadModule foo_module modules/mod_foo.so<br />
#<br />
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do not change manually, it will be overwritten on upgrade.<br />
#<br />
# The following modules are considered as the default configuration.<br />
# If you wish to disable one of them, you may have to alter other<br />
# configuration directives.<br />
#<br />
# Change these at your own risk!<br />
<br />
LoadModule actions_module modules/mod_actions.so<br />
LoadModule alias_module modules/mod_alias.so<br />
LoadModule auth_basic_module modules/mod_auth_basic.so<br />
LoadModule authn_alias_module modules/mod_authn_alias.so<br />
LoadModule authn_anon_module modules/mod_authn_anon.so<br />
LoadModule authn_dbm_module modules/mod_authn_dbm.so<br />
LoadModule authn_default_module modules/mod_authn_default.so<br />
LoadModule authn_file_module modules/mod_authn_file.so<br />
LoadModule authz_dbm_module modules/mod_authz_dbm.so<br />
LoadModule authz_default_module modules/mod_authz_default.so<br />
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br />
LoadModule authz_host_module modules/mod_authz_host.so<br />
LoadModule authz_owner_module modules/mod_authz_owner.so<br />
LoadModule authz_user_module modules/mod_authz_user.so<br />
LoadModule autoindex_module modules/mod_autoindex.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule cache_module modules/mod_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule cgi_module modules/mod_cgi.so<br />
<br />
&lt;IfDefine DAV&gt;<br />
LoadModule dav_module modules/mod_dav.so<br />
&lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine DAV&gt;<br />
LoadModule dav_fs_module modules/mod_dav_fs.so<br />
&lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine DAV&gt;<br />
LoadModule dav_lock_module modules/mod_dav_lock.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule deflate_module modules/mod_deflate.so<br />
LoadModule dir_module modules/mod_dir.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule disk_cache_module modules/mod_disk_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule env_module modules/mod_env.so<br />
LoadModule expires_module modules/mod_expires.so<br />
LoadModule ext_filter_module modules/mod_ext_filter.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule file_cache_module modules/mod_file_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule filter_module modules/mod_filter.so<br />
LoadModule headers_module modules/mod_headers.so<br />
LoadModule include_module modules/mod_include.so<br />
<br />
&lt;IfDefine INFO&gt;<br />
LoadModule info_module modules/mod_info.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule log_config_module modules/mod_log_config.so<br />
LoadModule logio_module modules/mod_logio.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule mem_cache_module modules/mod_mem_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule mime_module modules/mod_mime.so<br />
LoadModule mime_magic_module modules/mod_mime_magic.so<br />
LoadModule negotiation_module modules/mod_negotiation.so<br />
<br />
&lt;IfDefine PROXY&gt;<br />
LoadModule proxy_module modules/mod_proxy.so<br />
&lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine PROXY&gt;<br />
LoadModule proxy_http_module modules/mod_proxy_http.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule rewrite_module modules/mod_rewrite.so<br />
LoadModule setenvif_module modules/mod_setenvif.so<br />
LoadModule speling_module modules/mod_speling.so<br />
<br />
# &lt;IfDefine SSL&gt;<br />
# LoadModule ssl_module modules/mod_ssl.so<br />
# &lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine STATUS&gt;<br />
LoadModule status_module modules/mod_status.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule unique_id_module modules/mod_unique_id.so<br />
<br />
&lt;IfDefine USERDIR&gt;<br />
LoadModule userdir_module modules/mod_userdir.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule usertrack_module modules/mod_usertrack.so<br />
LoadModule vhost_alias_module modules/mod_vhost_alias.so<br />
<br />
# If you wish httpd to run as a different user or group, you must run<br />
# httpd as root initially and it will switch.<br />
#<br />
# User/Group: The name (or #number) of the user/group to run httpd as.<br />
# It is usually good practice to create a dedicated user and group for<br />
# running httpd, as with most system services.<br />
User apache<br />
Group apache<br />
<br />
# Supplemental configuration<br />
#<br />
# Most of the configuration files in the /etc/apache2/modules.d/ directory can<br />
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features<br />
# or to modify the default configuration of the server.<br />
#<br />
# To know which flag to add to APACHE2_OPTS, look at the first line of the<br />
# the file, which will usually be an &lt;IfDefine OPTION&gt; where OPTION is the<br />
# flag to use.<br />
Include /etc/apache2/modules.d/*.conf<br />
<br />
# Virtual-host support<br />
#<br />
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we<br />
# include a default vhost (enabled by adding -D DEFAULT_VHOST to<br />
# APACHE2_OPTS in /etc/conf.d/apache2).<br />
Include /etc/apache2/vhosts.d/*.conf<br />
<br />
# vim: ts=4 filetype=apache</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Then my conf in /etc/apache2/vhosts.d/*.conf<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># Virtual Hosts<br />
#<br />
# If you want to maintain multiple domains/hostnames on your<br />
# machine you can setup VirtualHost containers for them. Most configurations<br />
# use only name-based virtual hosts so the server doesn't need to worry about<br />
# IP addresses. This is indicated by the asterisks in the directives below.<br />
#<br />
# Please see the documentation at<br />
# &lt;URL:http://httpd.apache.org/docs/2.2/vhosts/&gt;<br />
# for further details before you try to setup virtual hosts.<br />
#<br />
# You may use the command line option '-S' to verify your virtual host<br />
# configuration.<br />
<br />
&lt;IfDefine DEFAULT_VHOST&gt;<br />
# see bug #178966 why this is in here<br />
<br />
# Listen: Allows you to bind Apache to specific IP addresses and/or<br />
# ports, instead of the default. See also the &lt;VirtualHost&gt;<br />
# directive.<br />
#<br />
# Change this to Listen on specific IP addresses as shown below to<br />
# prevent Apache from glomming onto all bound IP addresses.<br />
#<br />
#Listen 12.34.56.78:80<br />
Listen 80<br />
<br />
# Use name-based virtual hosting.<br />
NameVirtualHost *:80<br />
<br />
# When virtual hosts are enabled, the main host defined in the default<br />
# httpd.conf configuration will go away. We redefine it here so that it is<br />
# still available.<br />
#<br />
# If you disable this vhost by removing -D DEFAULT_VHOST from<br />
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be<br />
# the default.<br />
<br />
&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerName vhost1.nl<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerAdmin root@vhost1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot "/var/www/vhost1.nl/htdocs"<br />
<br />
&lt;Directory "/var/www/vhost1/htdocs"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br />
&lt;/Directory&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IfModule mpm_peruser_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerEnvironment apache apache<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/IfModule&gt;<br />
&lt;/VirtualHost&gt;<br />
<br />
&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerName vhost2.nl<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerAdmin root@vhost2.nl<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot "/var/www/vhost2.nl/htdocs"<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory "/var/www/vhost2.nl/htdocs"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IfModule mpm_peruser_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerEnvironment apache apache<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/IfModule&gt;<br />
&lt;/VirtualHost&gt;<br />
&lt;/IfDefine&gt;<br />
<br />
# vim: ts=4 filetype=apache</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Also, what might be something to worth mentioning, is that on vhost1.nl runs a opensource CMS called drupal. I want vhost1.nl redirected to <a href="http://WWW.vhost1.nl" target="_blank" rel="noopener" class="mycode_url">WWW.vhost1.nl</a>. On vhost2.nl is running a plain simple website that i also want to redirect to www. That's why i made the following .htaccess files:<br />
<br />
 <br />
<br />
vhost1.nl:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># cat .htaccess <br />
RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_URI} !=/favicon.ico<br />
RewriteRule ^(.*)&#36; index.php?q=&#36;1 [L,QSA]<br />
RewriteCond %{HTTP_HOST} ^vhost1&#92;.nl&#36; [NC]<br />
RewriteRule ^(.*)&#36; http://www.vhost1.nl/&#36;1 [L,R=301]</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
vhost2.nl<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^vhost2&#92;.nl&#36; [NC]<br />
RewriteRule ^(.*)&#36; http://www.vhost2.nl/&#36;1 [L,R=301]</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
You guys see antything unusual? Thanks in Advance <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Grtz EzMe<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Im trying to set up 2 vhosts on gentoo. I got vhost1.nl and vhost2.nl. For some reason i when i visit vhost2.nl it redirects me to vhosts1.nl and i cannot figuere out why.<br />
<br />
 <br />
<br />
This is my setup:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># apache2 -V<br />
Server version: Apache/2.2.15 (Unix)<br />
Server built:&nbsp;&nbsp; Mar 31 2010 09:16:29<br />
Server's Module Magic Number: 20051115:24<br />
Server loaded:&nbsp;&nbsp;APR 1.3.9, APR-Util 1.3.9<br />
Compiled using: APR 1.3.9, APR-Util 1.3.9<br />
Architecture:&nbsp;&nbsp; 32-bit<br />
Server MPM:&nbsp;&nbsp;&nbsp;&nbsp; Prefork<br />
 threaded:&nbsp;&nbsp;&nbsp;&nbsp; no<br />
&nbsp;&nbsp; forked:&nbsp;&nbsp;&nbsp;&nbsp; yes (variable process count)<br />
Server compiled with....<br />
-D APACHE_MPM_DIR="server/mpm/prefork"<br />
-D APR_HAS_SENDFILE<br />
-D APR_HAS_MMAP<br />
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)<br />
-D APR_USE_SYSVSEM_SERIALIZE<br />
-D APR_USE_PTHREAD_SERIALIZE<br />
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT<br />
-D APR_HAS_OTHER_CHILD<br />
-D AP_HAVE_RELIABLE_PIPED_LOGS<br />
-D DYNAMIC_MODULE_LIMIT=128<br />
-D HTTPD_ROOT="/usr"<br />
-D SUEXEC_BIN="/usr/sbin/suexec"<br />
-D DEFAULT_PIDLOG="/var/run/httpd.pid"<br />
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"<br />
-D DEFAULT_LOCKFILE="/var/run/accept.lock"<br />
-D DEFAULT_ERRORLOG="logs/error_log"<br />
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"<br />
-D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
File: /etc/conf.d/apache2<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># /etc/conf.d/apache2: config file for /etc/init.d/apache2<br />
<br />
# When you install a module it is easy to activate or deactivate the modules<br />
# and other features of apache using the APACHE2_OPTS line. Every module should<br />
# install a configuration in /etc/apache2/modules.d. In that file will have an<br />
# &lt;IfDefine NNN&gt; directive where NNN is the option to enable that module.<br />
#<br />
# Here are the options available in the default configuration:<br />
#<br />
#&nbsp;&nbsp;AUTH_DIGEST&nbsp;&nbsp;Enables mod_auth_digest<br />
#&nbsp;&nbsp;AUTHNZ_LDAP&nbsp;&nbsp;Enables authentication through mod_ldap (available if USE=ldap)<br />
#&nbsp;&nbsp;CACHE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables mod_cache<br />
#&nbsp;&nbsp;DAV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables mod_dav<br />
#&nbsp;&nbsp;ERRORDOCS&nbsp;&nbsp;&nbsp;&nbsp;Enables default error documents for many languages.<br />
#&nbsp;&nbsp;INFO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables mod_info, a useful module for debugging<br />
#&nbsp;&nbsp;LANGUAGE&nbsp;&nbsp;&nbsp;&nbsp; Enables content-negotiation based on language and charset.<br />
#&nbsp;&nbsp;LDAP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables mod_ldap (available if USE=ldap)<br />
#&nbsp;&nbsp;MANUAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables /manual/ to be the apache manual (available if USE=docs)<br />
#&nbsp;&nbsp;MEM_CACHE&nbsp;&nbsp;&nbsp;&nbsp;Enables default configuration mod_mem_cache<br />
#&nbsp;&nbsp;PROXY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables mod_proxy<br />
#&nbsp;&nbsp;SSL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables SSL (available if USE=ssl)<br />
#&nbsp;&nbsp;SUEXEC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enables running CGI scripts (in USERDIR) through suexec.<br />
#&nbsp;&nbsp;USERDIR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables /~username mapping to /home/username/public_html<br />
#<br />
#<br />
# The following two options provide the default virtual host for the HTTP and<br />
# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache<br />
# will not listen for incomming connections on the approriate port.<br />
#<br />
#&nbsp;&nbsp;DEFAULT_VHOST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Enables name-based virtual hosts, with the default<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; virtual host being in /var/www/localhost/htdocs<br />
#&nbsp;&nbsp;SSL_DEFAULT_VHOST&nbsp;&nbsp;Enables default vhost for SSL (you should enable this<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when you enable SSL)<br />
#<br />
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D PHP5 -D PROXY -D PROXY_HTML"<br />
<br />
# Extended options for advanced uses of Apache ONLY<br />
# You don't need to edit these unless you are doing crazy Apache stuff<br />
# As not having them set correctly, or feeding in an incorrect configuration<br />
# via them will result in Apache failing to start<br />
# YOU HAVE BEEN WARNED.<br />
<br />
# ServerRoot setting<br />
#SERVERROOT=/usr/lib/apache2<br />
<br />
# Configuration file location<br />
# - If this does NOT start with a '/', then it is treated relative to<br />
# &#36;SERVERROOT by Apache<br />
#CONFIGFILE=/etc/apache2/httpd.conf<br />
<br />
# Location to log startup errors to<br />
# They are normally dumped to your terminal.<br />
#STARTUPERRORLOG="/var/log/apache2/startuperror.log"<br />
<br />
# A command that outputs a formatted text version of the HTML at the URL<br />
# of the command line. Designed for lynx, however other programs may work.<br />
#LYNX="lynx -dump"<br />
<br />
# The URL to your server's mod_status status page.<br />
# Required for status and fullstatus<br />
#STATUSURL="http://localhost/server-status"<br />
<br />
# Method to use when reloading the server<br />
# Valid options are 'restart' and 'graceful'<br />
# See http://httpd.apache.org/docs/2.2/stopping.html for information on<br />
# what they do and how they differ.<br />
#RELOAD_TYPE="graceful"</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
http.conf:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># cat httpd.conf<br />
# This is a modification of the default Apache 2.2 configuration file<br />
# for Gentoo Linux.<br />
#<br />
# Support:<br />
#&nbsp;&nbsp; http://www.gentoo.org/main/en/lists.xml&nbsp;&nbsp; [mailing lists]<br />
#&nbsp;&nbsp; http://forums.gentoo.org/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [web forums]<br />
#&nbsp;&nbsp; irc://irc.freenode.net#gentoo-apache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[irc chat]<br />
#<br />
# Bug Reports:<br />
#&nbsp;&nbsp; http://bugs.gentoo.org&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[gentoo related bugs]<br />
#&nbsp;&nbsp; http://httpd.apache.org/bug_report.html&nbsp;&nbsp; [apache httpd related bugs]<br />
#<br />
#<br />
# This is the main Apache HTTP server configuration file.&nbsp;&nbsp;It contains the<br />
# configuration directives that give the server its instructions.<br />
# See &lt;URL:http://httpd.apache.org/docs/2.2&gt; for detailed information.<br />
# In particular, see<br />
# &lt;URL:http://httpd.apache.org/docs/2.2/mod/directives.html&gt;<br />
# for a discussion of each configuration directive.<br />
#<br />
# Do NOT simply read the instructions in here without understanding<br />
# what they do.&nbsp;&nbsp;They're here only as hints or reminders.&nbsp;&nbsp;If you are unsure<br />
# consult the online docs. You have been warned.<br />
#<br />
# Configuration and logfile names: If the filenames you specify for many<br />
# of the server's control files begin with "/" (or "drive:/" for Win32), the<br />
# server will use that explicit path.&nbsp;&nbsp;If the filenames do *not* begin<br />
# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"<br />
# with ServerRoot set to "/usr" will be interpreted by the<br />
# server as "/usr/var/log/apache2/foo.log".<br />
<br />
# ServerRoot: The top of the directory tree under which the server's<br />
# configuration, error, and log files are kept.<br />
#<br />
# Do not add a slash at the end of the directory path.&nbsp;&nbsp;If you point<br />
# ServerRoot at a non-local disk, be sure to point the LockFile directive<br />
# at a local disk.&nbsp;&nbsp;If you wish to share the same ServerRoot for multiple<br />
# httpd daemons, you will need to change at least LockFile and PidFile.<br />
ServerRoot "/usr/lib/apache2"<br />
<br />
# Dynamic Shared Object (DSO) Support<br />
#<br />
# To be able to use the functionality of a module which was built as a DSO you<br />
# have to place corresponding `LoadModule' lines at this location so the<br />
# directives contained in it are actually available _before_ they are used.<br />
# Statically compiled modules (those listed by `httpd -l') do not need<br />
# to be loaded here.<br />
#<br />
# Example:<br />
# LoadModule foo_module modules/mod_foo.so<br />
#<br />
# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.<br />
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do not change manually, it will be overwritten on upgrade.<br />
#<br />
# The following modules are considered as the default configuration.<br />
# If you wish to disable one of them, you may have to alter other<br />
# configuration directives.<br />
#<br />
# Change these at your own risk!<br />
<br />
LoadModule actions_module modules/mod_actions.so<br />
LoadModule alias_module modules/mod_alias.so<br />
LoadModule auth_basic_module modules/mod_auth_basic.so<br />
LoadModule authn_alias_module modules/mod_authn_alias.so<br />
LoadModule authn_anon_module modules/mod_authn_anon.so<br />
LoadModule authn_dbm_module modules/mod_authn_dbm.so<br />
LoadModule authn_default_module modules/mod_authn_default.so<br />
LoadModule authn_file_module modules/mod_authn_file.so<br />
LoadModule authz_dbm_module modules/mod_authz_dbm.so<br />
LoadModule authz_default_module modules/mod_authz_default.so<br />
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so<br />
LoadModule authz_host_module modules/mod_authz_host.so<br />
LoadModule authz_owner_module modules/mod_authz_owner.so<br />
LoadModule authz_user_module modules/mod_authz_user.so<br />
LoadModule autoindex_module modules/mod_autoindex.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule cache_module modules/mod_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule cgi_module modules/mod_cgi.so<br />
<br />
&lt;IfDefine DAV&gt;<br />
LoadModule dav_module modules/mod_dav.so<br />
&lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine DAV&gt;<br />
LoadModule dav_fs_module modules/mod_dav_fs.so<br />
&lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine DAV&gt;<br />
LoadModule dav_lock_module modules/mod_dav_lock.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule deflate_module modules/mod_deflate.so<br />
LoadModule dir_module modules/mod_dir.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule disk_cache_module modules/mod_disk_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule env_module modules/mod_env.so<br />
LoadModule expires_module modules/mod_expires.so<br />
LoadModule ext_filter_module modules/mod_ext_filter.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule file_cache_module modules/mod_file_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule filter_module modules/mod_filter.so<br />
LoadModule headers_module modules/mod_headers.so<br />
LoadModule include_module modules/mod_include.so<br />
<br />
&lt;IfDefine INFO&gt;<br />
LoadModule info_module modules/mod_info.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule log_config_module modules/mod_log_config.so<br />
LoadModule logio_module modules/mod_logio.so<br />
<br />
&lt;IfDefine CACHE&gt;<br />
LoadModule mem_cache_module modules/mod_mem_cache.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule mime_module modules/mod_mime.so<br />
LoadModule mime_magic_module modules/mod_mime_magic.so<br />
LoadModule negotiation_module modules/mod_negotiation.so<br />
<br />
&lt;IfDefine PROXY&gt;<br />
LoadModule proxy_module modules/mod_proxy.so<br />
&lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine PROXY&gt;<br />
LoadModule proxy_http_module modules/mod_proxy_http.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule rewrite_module modules/mod_rewrite.so<br />
LoadModule setenvif_module modules/mod_setenvif.so<br />
LoadModule speling_module modules/mod_speling.so<br />
<br />
# &lt;IfDefine SSL&gt;<br />
# LoadModule ssl_module modules/mod_ssl.so<br />
# &lt;/IfDefine&gt;<br />
<br />
&lt;IfDefine STATUS&gt;<br />
LoadModule status_module modules/mod_status.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule unique_id_module modules/mod_unique_id.so<br />
<br />
&lt;IfDefine USERDIR&gt;<br />
LoadModule userdir_module modules/mod_userdir.so<br />
&lt;/IfDefine&gt;<br />
<br />
LoadModule usertrack_module modules/mod_usertrack.so<br />
LoadModule vhost_alias_module modules/mod_vhost_alias.so<br />
<br />
# If you wish httpd to run as a different user or group, you must run<br />
# httpd as root initially and it will switch.<br />
#<br />
# User/Group: The name (or #number) of the user/group to run httpd as.<br />
# It is usually good practice to create a dedicated user and group for<br />
# running httpd, as with most system services.<br />
User apache<br />
Group apache<br />
<br />
# Supplemental configuration<br />
#<br />
# Most of the configuration files in the /etc/apache2/modules.d/ directory can<br />
# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features<br />
# or to modify the default configuration of the server.<br />
#<br />
# To know which flag to add to APACHE2_OPTS, look at the first line of the<br />
# the file, which will usually be an &lt;IfDefine OPTION&gt; where OPTION is the<br />
# flag to use.<br />
Include /etc/apache2/modules.d/*.conf<br />
<br />
# Virtual-host support<br />
#<br />
# Gentoo has made using virtual-hosts easy. In /etc/apache2/vhosts.d/ we<br />
# include a default vhost (enabled by adding -D DEFAULT_VHOST to<br />
# APACHE2_OPTS in /etc/conf.d/apache2).<br />
Include /etc/apache2/vhosts.d/*.conf<br />
<br />
# vim: ts=4 filetype=apache</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Then my conf in /etc/apache2/vhosts.d/*.conf<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># Virtual Hosts<br />
#<br />
# If you want to maintain multiple domains/hostnames on your<br />
# machine you can setup VirtualHost containers for them. Most configurations<br />
# use only name-based virtual hosts so the server doesn't need to worry about<br />
# IP addresses. This is indicated by the asterisks in the directives below.<br />
#<br />
# Please see the documentation at<br />
# &lt;URL:http://httpd.apache.org/docs/2.2/vhosts/&gt;<br />
# for further details before you try to setup virtual hosts.<br />
#<br />
# You may use the command line option '-S' to verify your virtual host<br />
# configuration.<br />
<br />
&lt;IfDefine DEFAULT_VHOST&gt;<br />
# see bug #178966 why this is in here<br />
<br />
# Listen: Allows you to bind Apache to specific IP addresses and/or<br />
# ports, instead of the default. See also the &lt;VirtualHost&gt;<br />
# directive.<br />
#<br />
# Change this to Listen on specific IP addresses as shown below to<br />
# prevent Apache from glomming onto all bound IP addresses.<br />
#<br />
#Listen 12.34.56.78:80<br />
Listen 80<br />
<br />
# Use name-based virtual hosting.<br />
NameVirtualHost *:80<br />
<br />
# When virtual hosts are enabled, the main host defined in the default<br />
# httpd.conf configuration will go away. We redefine it here so that it is<br />
# still available.<br />
#<br />
# If you disable this vhost by removing -D DEFAULT_VHOST from<br />
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be<br />
# the default.<br />
<br />
&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerName vhost1.nl<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerAdmin root@vhost1<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot "/var/www/vhost1.nl/htdocs"<br />
<br />
&lt;Directory "/var/www/vhost1/htdocs"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br />
&lt;/Directory&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IfModule mpm_peruser_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerEnvironment apache apache<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/IfModule&gt;<br />
&lt;/VirtualHost&gt;<br />
<br />
&lt;VirtualHost *:80&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerName vhost2.nl<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerAdmin root@vhost2.nl<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DocumentRoot "/var/www/vhost2.nl/htdocs"<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Directory "/var/www/vhost2.nl/htdocs"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Options Indexes FollowSymLinks<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AllowOverride All<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow from all<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Directory&gt;<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IfModule mpm_peruser_module&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ServerEnvironment apache apache<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/IfModule&gt;<br />
&lt;/VirtualHost&gt;<br />
&lt;/IfDefine&gt;<br />
<br />
# vim: ts=4 filetype=apache</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
Also, what might be something to worth mentioning, is that on vhost1.nl runs a opensource CMS called drupal. I want vhost1.nl redirected to <a href="http://WWW.vhost1.nl" target="_blank" rel="noopener" class="mycode_url">WWW.vhost1.nl</a>. On vhost2.nl is running a plain simple website that i also want to redirect to www. That's why i made the following .htaccess files:<br />
<br />
 <br />
<br />
vhost1.nl:<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code># cat .htaccess <br />
RewriteEngine on<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_URI} !=/favicon.ico<br />
RewriteRule ^(.*)&#36; index.php?q=&#36;1 [L,QSA]<br />
RewriteCond %{HTTP_HOST} ^vhost1&#92;.nl&#36; [NC]<br />
RewriteRule ^(.*)&#36; http://www.vhost1.nl/&#36;1 [L,R=301]</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
vhost2.nl<br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} ^vhost2&#92;.nl&#36; [NC]<br />
RewriteRule ^(.*)&#36; http://www.vhost2.nl/&#36;1 [L,R=301]</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
 <br />
<br />
You guys see antything unusual? Thanks in Advance <img src="https://www.linux-noob.com/forums/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
 <br />
<br />
Grtz EzMe<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Railo Installation and Setup (CentOS, cPanel and Resin)]]></title>
			<link>https://www.linux-noob.com/forums/thread-487.html</link>
			<pubDate>Fri, 02 Apr 2010 09:05:57 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=2">anyweb</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-487.html</guid>
			<description><![CDATA[<br />
Primarily this post was originally going to be for my own use, but i think that the community at large will be able to benefit from it.<br />
<br />
 <br />
<br />
There will be an update to this at some point in time as the installation that i have here is far from perfect but it will give you a good starting block on how to get Railo  up and running quickly and efficiently.<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">Step 1: – Gather all the required elements to make this work.</span><br />
<br />
 <br />
<br />
   1. This blog post for instructions (Duh!)<br />
<br />
   2. You will need Java JDK (Java development toolkit) ( will be refered to simply as JDK ) – The JRE Installation on its own is unfortunately not sufficiant enough to beable to run railo. – The latest version available will be suitable to run Resin and Railo ( At the time of writing the latest version was 1.6.0 U19 )<br />
<br />
   3. You will need a copy of Caucho Resin ( <a href="http://www.caucho.com/download/resin-3.1.10.tar.gz" target="_blank" rel="noopener" class="mycode_url">http://www.caucho.com/download/resin-3.1.10.tar.gz</a> ) – For this installation i selected Resin 3.1.10 ( latest )<br />
<br />
   4. You will need a copy of Railo ( <a href="http://www.getrailo.org/down.cfm?item=/railo/remote/download/3.1.2.001/custom/all/railo-3.1.2.001-jars.tar.gz" target="_blank" rel="noopener" class="mycode_url">http://www.getrailo.org/down.cfm?item=/r...ars.tar.gz</a> ) – The version that has been selected for this installation is Railo 3.1.2 ( latest )<br />
<br />
 <br />
<br />
The above components are listed as they are what i have used on my installation.<br />
<br />
 <br />
<br />
read the rest @ &gt; <a href="http://harrassed.net/2010/04/railo-installation-and-setup-centos-cpanel-and-resin/" target="_blank" rel="noopener" class="mycode_url">http://harrassed.net/2010/04/railo-insta...and-resin/</a><br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Primarily this post was originally going to be for my own use, but i think that the community at large will be able to benefit from it.<br />
<br />
 <br />
<br />
There will be an update to this at some point in time as the installation that i have here is far from perfect but it will give you a good starting block on how to get Railo  up and running quickly and efficiently.<br />
<br />
 <br />
<br />
<span style="font-size: 8pt;" class="mycode_size">Step 1: – Gather all the required elements to make this work.</span><br />
<br />
 <br />
<br />
   1. This blog post for instructions (Duh!)<br />
<br />
   2. You will need Java JDK (Java development toolkit) ( will be refered to simply as JDK ) – The JRE Installation on its own is unfortunately not sufficiant enough to beable to run railo. – The latest version available will be suitable to run Resin and Railo ( At the time of writing the latest version was 1.6.0 U19 )<br />
<br />
   3. You will need a copy of Caucho Resin ( <a href="http://www.caucho.com/download/resin-3.1.10.tar.gz" target="_blank" rel="noopener" class="mycode_url">http://www.caucho.com/download/resin-3.1.10.tar.gz</a> ) – For this installation i selected Resin 3.1.10 ( latest )<br />
<br />
   4. You will need a copy of Railo ( <a href="http://www.getrailo.org/down.cfm?item=/railo/remote/download/3.1.2.001/custom/all/railo-3.1.2.001-jars.tar.gz" target="_blank" rel="noopener" class="mycode_url">http://www.getrailo.org/down.cfm?item=/r...ars.tar.gz</a> ) – The version that has been selected for this installation is Railo 3.1.2 ( latest )<br />
<br />
 <br />
<br />
The above components are listed as they are what i have used on my installation.<br />
<br />
 <br />
<br />
read the rest @ &gt; <a href="http://harrassed.net/2010/04/railo-installation-and-setup-centos-cpanel-and-resin/" target="_blank" rel="noopener" class="mycode_url">http://harrassed.net/2010/04/railo-insta...and-resin/</a><br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[I am the biggest idiot alive]]></title>
			<link>https://www.linux-noob.com/forums/thread-525.html</link>
			<pubDate>Sat, 09 Jan 2010 21:26:34 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3459">cahlan</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-525.html</guid>
			<description><![CDATA[<br />
So, I'm working on our webhost via SSH (it's a dedicated virtual server) with root credentials ... and I type a command that may have just ruined my life. <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rm -d -f -r /</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
I was in the process of cleaning out some directories with svn repos buried and getting ready to deploy a new repo. Now I don't know what I've deleted, but I've obviously screwed things up in a major way. <br />
<br />
 <br />
<br />
Here's what came up right afterward:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rm: cannot remove directory `//tmp': Device or resource busy<br />
rm: cannot remove `//dev/pts/0': Operation not permitted</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
At that point I realized what I'd done and hit Ctrl+C. But I'm afraid the damage is done. The only command I could execute from cl after that was "cd," commands like "ls" won't work. FTP, SSH don't work, and the currently live websites are acting funky. Did I completely hose myself?<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
So, I'm working on our webhost via SSH (it's a dedicated virtual server) with root credentials ... and I type a command that may have just ruined my life. <br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rm -d -f -r /</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
I was in the process of cleaning out some directories with svn repos buried and getting ready to deploy a new repo. Now I don't know what I've deleted, but I've obviously screwed things up in a major way. <br />
<br />
 <br />
<br />
Here's what came up right afterward:<br />
<br />
 <br />
<br />
<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>rm: cannot remove directory `//tmp': Device or resource busy<br />
rm: cannot remove `//dev/pts/0': Operation not permitted</code></div></div><br />
<br />
<br />
<br />
 <br />
<br />
At that point I realized what I'd done and hit Ctrl+C. But I'm afraid the damage is done. The only command I could execute from cl after that was "cd," commands like "ls" won't work. FTP, SSH don't work, and the currently live websites are acting funky. Did I completely hose myself?<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[external access to my web server]]></title>
			<link>https://www.linux-noob.com/forums/thread-541.html</link>
			<pubDate>Wed, 02 Dec 2009 14:44:28 +0100</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3448">Sam Coles</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-541.html</guid>
			<description><![CDATA[<br />
Hi,<br />
<br />
 <br />
<br />
I've followed a "how to set up a LAMP server" tutorial and got everything installed and working. If I access the machine's local ip I can see it from any computer in the house. Am I correct in thinking that means everything is configured and working properly on the server's end of things? It's running the most recent Debian distro, by the way. So what's left to do is forward port 80 to that computer's ip?<br />
<br />
Right so I've done that too, my router (BeBox) calls it Application &amp; Game Sharing.<br />
<br />
 <br />
<br />
But now if I try to navigate to <a href="http://my.ip.here.ok" target="_blank" rel="noopener" class="mycode_url">http://my.ip.here.ok</a> I end up coming to the router's config page.<br />
<br />
 <br />
<br />
Any suggestions? Is there something else I've got to do I don't know about?? Or is this just an issue with the router in which case I can ship myself over to my ISP's support forum...<br />
<br />
 <br />
<br />
Thanks in advance<br />
<br />
Sam<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Hi,<br />
<br />
 <br />
<br />
I've followed a "how to set up a LAMP server" tutorial and got everything installed and working. If I access the machine's local ip I can see it from any computer in the house. Am I correct in thinking that means everything is configured and working properly on the server's end of things? It's running the most recent Debian distro, by the way. So what's left to do is forward port 80 to that computer's ip?<br />
<br />
Right so I've done that too, my router (BeBox) calls it Application &amp; Game Sharing.<br />
<br />
 <br />
<br />
But now if I try to navigate to <a href="http://my.ip.here.ok" target="_blank" rel="noopener" class="mycode_url">http://my.ip.here.ok</a> I end up coming to the router's config page.<br />
<br />
 <br />
<br />
Any suggestions? Is there something else I've got to do I don't know about?? Or is this just an issue with the router in which case I can ship myself over to my ISP's support forum...<br />
<br />
 <br />
<br />
Thanks in advance<br />
<br />
Sam<br />
<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Annoying 403 Error]]></title>
			<link>https://www.linux-noob.com/forums/thread-572.html</link>
			<pubDate>Tue, 22 Sep 2009 00:13:17 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3420">Gravedig2</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-572.html</guid>
			<description><![CDATA[I have just moved from another LAMP server that wasn't running any Control Panel. I move my files there from a cPanel server without any problem. Now, I want to move them to another server that is closer to me. Upon trying to to move my files via a TAR archive, I am recieving a 403 error. I have tried every single possible combination for permissions both on the folder itself and the files within and I still recieve a 403. (I have tried the one at <a href="http://&lt;___base_url___&gt;/index.php?/topic/1144-set-correct-permissions-on-your-apache-files/" target="_blank" rel="noopener" class="mycode_url">https://www.linux-noob.com/forums/index.php?/topic/1144-set-correct-permissions-on-your-apache-files/</a>). Does anybody have any ideas? Thank you in advance!<br />
]]></description>
			<content:encoded><![CDATA[I have just moved from another LAMP server that wasn't running any Control Panel. I move my files there from a cPanel server without any problem. Now, I want to move them to another server that is closer to me. Upon trying to to move my files via a TAR archive, I am recieving a 403 error. I have tried every single possible combination for permissions both on the folder itself and the files within and I still recieve a 403. (I have tried the one at <a href="http://&lt;___base_url___&gt;/index.php?/topic/1144-set-correct-permissions-on-your-apache-files/" target="_blank" rel="noopener" class="mycode_url">https://www.linux-noob.com/forums/index.php?/topic/1144-set-correct-permissions-on-your-apache-files/</a>). Does anybody have any ideas? Thank you in advance!<br />
]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Open Source web/ajax console for Postfix !]]></title>
			<link>https://www.linux-noob.com/forums/thread-589.html</link>
			<pubDate>Mon, 17 Aug 2009 12:58:14 +0200</pubDate>
			<dc:creator><![CDATA[<a href="https://www.linux-noob.com/forums/member.php?action=profile&uid=3403">David Touzeau</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.linux-noob.com/forums/thread-589.html</guid>
			<description><![CDATA[<br />
Since 3 years i develop an Open Source end-user front-end for Postfix, Spamassassin and others filters in order to help newbies to fight spams and to manage correctly eMail server on Linux.<br />
<br />
During this work,i had improve this product by manage mailboxes, file server, OpenVPN,SQUID and others.<br />
<br />
 <br />
<br />
Anyway, my subject is SPAM today...<br />
<br />
 <br />
<br />
In several cases, Linux products are <img src="https://www.linux-noob.com/forums/images/smilies/confused.png" alt="Confused" title="Confused" class="smilie smilie_13" />table, powerfull,have better performances, free of charge... more and more...<br />
<br />
But installing, managing and maintaining these products require some linux knowledge...<br />
<br />
 <br />
<br />
People who start Linux do not have necessarily time and knowledge to quickly provide a complete security mail server for their company.<br />
<br />
Artica For Postfix is an Open Source product designed to reduce the cost in order to create and manage a full linux server.<br />
<br />
Especially the free existing Web consoles for postfix  did not provide all the available features in a "sexy way".<br />
<br />
 <br />
<br />
 <br />
<br />
It is designed to administrate trough a web console all security plugins available and tested in large environments.<br />
<br />
You will find : <br />
<br />
milter-greylist<br />
<br />
amavis + spamassassin and Clamav + dspam<br />
<br />
All products features are switched to interface.<br />
<br />
 <br />
<br />
The interface is coded in PHP+AJAX and is designed for multi-administrators and multi-domains.<br />
<br />
 <br />
<br />
 <br />
<br />
<img src="http://www.artica.fr/images/stories/gallery/screenshots/messaging/managing-potfix.jpg" loading="lazy"  alt="[Image: managing-potfix.jpg]" class="mycode_img" /><br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
There are many statistics, graphs and charts helping tuning the mail process.<br />
<br />
A quarantine management is designed in order to help administrators and end-users to retrieve their quarantined mails.<br />
<br />
 <br />
<br />
Without any others words, i invite you to see screenshots ( <a href="http://www.artica.fr/index.php/messaging" target="_blank" rel="noopener" class="mycode_url">http://www.artica.fr/index.php/messaging</a>) and visit the project website :<br />
<br />
<a href="http://www.artica.fr" target="_blank" rel="noopener" class="mycode_url">www.artica.fr</a><br />
<br />
 <br />
<br />
You can download it trough sourceforge too...<br />
<br />
 <br />
<br />
Any comments are welcome here...<br />
<br />
]]></description>
			<content:encoded><![CDATA[<br />
Since 3 years i develop an Open Source end-user front-end for Postfix, Spamassassin and others filters in order to help newbies to fight spams and to manage correctly eMail server on Linux.<br />
<br />
During this work,i had improve this product by manage mailboxes, file server, OpenVPN,SQUID and others.<br />
<br />
 <br />
<br />
Anyway, my subject is SPAM today...<br />
<br />
 <br />
<br />
In several cases, Linux products are <img src="https://www.linux-noob.com/forums/images/smilies/confused.png" alt="Confused" title="Confused" class="smilie smilie_13" />table, powerfull,have better performances, free of charge... more and more...<br />
<br />
But installing, managing and maintaining these products require some linux knowledge...<br />
<br />
 <br />
<br />
People who start Linux do not have necessarily time and knowledge to quickly provide a complete security mail server for their company.<br />
<br />
Artica For Postfix is an Open Source product designed to reduce the cost in order to create and manage a full linux server.<br />
<br />
Especially the free existing Web consoles for postfix  did not provide all the available features in a "sexy way".<br />
<br />
 <br />
<br />
 <br />
<br />
It is designed to administrate trough a web console all security plugins available and tested in large environments.<br />
<br />
You will find : <br />
<br />
milter-greylist<br />
<br />
amavis + spamassassin and Clamav + dspam<br />
<br />
All products features are switched to interface.<br />
<br />
 <br />
<br />
The interface is coded in PHP+AJAX and is designed for multi-administrators and multi-domains.<br />
<br />
 <br />
<br />
 <br />
<br />
<img src="http://www.artica.fr/images/stories/gallery/screenshots/messaging/managing-potfix.jpg" loading="lazy"  alt="[Image: managing-potfix.jpg]" class="mycode_img" /><br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
There are many statistics, graphs and charts helping tuning the mail process.<br />
<br />
A quarantine management is designed in order to help administrators and end-users to retrieve their quarantined mails.<br />
<br />
 <br />
<br />
Without any others words, i invite you to see screenshots ( <a href="http://www.artica.fr/index.php/messaging" target="_blank" rel="noopener" class="mycode_url">http://www.artica.fr/index.php/messaging</a>) and visit the project website :<br />
<br />
<a href="http://www.artica.fr" target="_blank" rel="noopener" class="mycode_url">www.artica.fr</a><br />
<br />
 <br />
<br />
You can download it trough sourceforge too...<br />
<br />
 <br />
<br />
Any comments are welcome here...<br />
<br />
]]></content:encoded>
		</item>
	</channel>
</rss>