You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Jackson <da...@pickledbeans.com> on 2002/05/11 22:35:24 UTC

Apache_2.0.25 + PHP4.2.0RC4: Trouble Shooting

Let's see if I can keep this short and simple.
I'm  having to problems with a hosting service.
1. index.php isn't being read as default index.
2. Form aren't working (see a below mail_call.php).
2A.The mail_call.php works on my localbox (apache-2.0.36 +PHP4.2.0)
2B. Hosting company,for reason they didn't make clear are running
apche.2.0.35 and PHP4.2.0?RC4?

The SA at the hosting company assured me that DirectoryIndex was correctly
configured for both the top level site index and VirturalHost?

My question is what can I do from a PHP scripting standpoint to *help*
the hosting company troubleshoot this issue? This has been going on
now for almost a month.

TIA,
David Jackson

------ Mail_call.php -----

<html>
<head><title>MailCall: Don't forget the stamp!</title></head>
<body>

<pre>
<?php
print "<pre>";
print $_POST['from'];
print $_POST['mail_to'];
print $_POST['sub_ject'];
print $_POST['comments'];
print "</pre>";
?>
<?php mail(
$_POST['mail_to'],$_POST['sub_ject'],$_POST['comments'],
"From: $_POST[from]\r\n".
"X-Mailer: PHP/" . phpversion()
 ) ?>
</pre>
</body>
</html>

-- 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache_2.0.25 + PHP4.2.0RC4: Trouble Shooting

Posted by Rich Bowen <rb...@rcbowen.com>.
On Sat, 11 May 2002, David Jackson wrote:

> Quick follow up question, someone suggested using .htaccess to setup
> DirectoryIndex?
>
> Is this as simple as creating file .htaccesss containing just one line:
> (I did look at the tuts on apacheweek.com).
>
> ---------- .htaccess --------------
> DirectoryIndex index.php index.html
> -----------------------------------

Yes, it is precicely that simple, given that you have AllowOverride set
correctly for that directory.

http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex

-- 
Rich Bowen - rbowen@rcbowen.com
As we trace our own few circles around the sun
We get it backwards and our seven years go by like one
	Dog Years (Rush - Test for Echo - 1999)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: Apache_2.0.25 + PHP4.2.0RC4: Trouble Shooting

Posted by David Jackson <da...@pickledbeans.com>.
Quick follow up question, someone suggested using .htaccess to setup
DirectoryIndex?

Is this as simple as creating file .htaccesss containing just one line:
(I did look at the tuts on apacheweek.com).

---------- .htaccess --------------
DirectoryIndex index.php index.html
-----------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org