<?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>小生这厢有礼了(BioFaceBook Personal Blog) &#187; phpadmin</title>
	<atom:link href="http://www.biofacebook.com/?feed=rss2&#038;tag=phpadmin" rel="self" type="application/rss+xml" />
	<link>http://www.biofacebook.com</link>
	<description>记录生物信息学点滴足迹（NGS,Genome,Meta,Linux)</description>
	<lastBuildDate>Sun, 23 Aug 2020 03:28:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Apache2 won&#8217;t load index.php files</title>
		<link>http://www.biofacebook.com/?p=158</link>
		<comments>http://www.biofacebook.com/?p=158#comments</comments>
		<pubDate>Mon, 14 May 2012 06:09:21 +0000</pubDate>
		<dc:creator><![CDATA[szypanther]]></dc:creator>
				<category><![CDATA[服务器管理]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpadmin]]></category>

		<guid isPermaLink="false">http://www.biofacebook.com/?p=158</guid>
		<description><![CDATA[<p>I have also noticed that apache won&#8217;t even load HTML files from the root (/var/www) directory. As far as I can see. Apache won&#8217;t load any page from the root directory. For example when I give to my browser http://localhost/ firefox will display me a dialog asking me to SAVE a PHTML file.</p> <p>It seems [...]]]></description>
				<content:encoded><![CDATA[<p>I have also noticed that apache won&#8217;t even load HTML files from the root (/var/www) directory. As far as I can see. Apache won&#8217;t load any page from the root directory. For example when I give to my browser <a href="http://localhost/" target="_blank">http://localhost/</a> firefox will display me a dialog asking me to <strong>SAVE</strong> a <strong>PHTML</strong> file.</p>
<p>It seems like there is a problem with the webroot directory in particular. For example if i give <a href="http://localhost/phpmyadmin/" target="_blank">http://localhost/phpmyadmin/</a> firefox will properly display the index.php of phpmyadmin included in this directory. Also if I create a folder in web-root let&#8217;s suppose myFolder if I point firefox to <a href="http://localhost/myFolder" target="_blank">http://localhost/myFolder</a> the page will display properly showing the index file no matter if it is html php or any other possible extension. Apache just denies to read ANY index file when given <a href="http://localhost/" target="_blank">http://localhost/</a> prompting me to save the phtml file . I have also noticed that if I put an index.php (or any other php file) in the web-root directory and point the browser to <a href="http://localhost/anypossiblephpfile.php" target="_blank">http://localhost/anypossiblephpfile.php</a> I will only get a wonderful dialog asking me to save a php file.</p>
<p>What is going on here? I know I am not very smart but I still can&#8217;t understand what might be causing the issue. Could it be there file-permission problem? (ok, ok don&#8217;t shoot)</p>
<p>ZST, thank you for your reply. I&#8217;ve tried what you said and everything looks fine. Just to make you know I have made a clean install from ubuntu&#8217;s repos, so there is not any &#8220;old&#8221; binary or config file.</p>
<p>Could it just be a browser issue?</p>
<p>HELP!! SOMEBODY!</p>
<p>非常奇怪，可能真是浏览器问题，按照上面这人所说的，莫名其妙phpadmin就能登入了，而如果是原来的名字phpMyAdmin,则会又让你保存phtml文件！</p>
<p>当然在这之前还修改了http.conf，添加如下内容：</p>
<p>AddType application/x-httpd-php .php</p>
<p># Include module configuration:<br />
Include /etc/apache2/mods-enabled/*.load<br />
Include /etc/apache2/mods-enabled/*.conf<br />
&lt;IfModule mod_php5.c&gt;<br />
AddType application/x-httpd-php .php .phtml .php3<br />
AddType application/x-httpd-php-source .phps<br />
&lt;/IfModule&gt;</p>
<p>LoadModule php5_module /usr/lib/apache2/modules/libphp5.so</p>
<p>NameVirtualHost *<br />
&lt;VirtualHost *&gt;<br />
ServerAdmin webmaster@localhost</p>
<p>DocumentRoot /var/www<br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/Directory&gt;<br />
&lt;Directory /var/www/&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
# Uncomment this directive is you want to see apache2&#8217;s<br />
# default start page (in /apache2-default) when you go to /<br />
#RedirectMatch ^/$ /apache2-default/<br />
&lt;/Directory&gt;</p>
<p>ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br />
&lt;Directory &#8220;/usr/lib/cgi-bin&#8221;&gt;<br />
AllowOverride None<br />
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>ErrorLog /var/log/apache2/error.log</p>
<p># Possible values include: debug, info, notice, warn, error, crit,<br />
# alert, emerg.<br />
LogLevel warn</p>
<p>CustomLog /var/log/apache2/access.log combined<br />
ServerSignature On</p>
<p>Alias /doc/ &#8220;/usr/share/doc/&#8221;<br />
&lt;Directory &#8220;/usr/share/doc/&#8221;&gt;<br />
Options Indexes MultiViews FollowSymLinks<br />
AllowOverride None<br />
Order deny,allow<br />
Deny from all<br />
Allow from 127.0.0.0/255.0.0.0 ::1/128<br />
&lt;/Directory&gt;</p>
<p>&lt;/VirtualHost&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.biofacebook.com/?feed=rss2&#038;p=158</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
