You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ri...@multicam.com on 2003/10/16 16:19:32 UTC

[users@httpd] Apache & PHP

I know this is somewhat of a simple question, but cant seem to figure
out what is going wrong. I am running Apache 1.3 on Debian unstable with
PHP4. If I type out www.mydomain.com it will not open the index.php
file, but if I type it out explicitly www.mydomain.com/index.php then it
will work fine. What do I need to check to get this work correctly.

Richard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache & PHP

Posted by Shashank Bhide <sh...@biochem.okstate.edu>.
Do you have any other index.something in you htdocs, which is ahead of
index.php in the conf file? 

Just a pointer.
HTH,
Shashank

-----Original Message-----
From: rich-lists@multicam.com [mailto:rich-lists@multicam.com] 
Sent: Thursday, October 16, 2003 10:00 AM
To: users@httpd.apache.org
Subject: RE: [users@httpd] Apache & PHP

Yes, directoryindex contains index.php.

-----Original Message-----
From: Bill Moran [mailto:wmoran@potentialtech.com] 
Sent: Thursday, October 16, 2003 8:25 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache & PHP


rich-lists@multicam.com wrote:
> I know this is somewhat of a simple question, but cant seem to figure 
> out what is going wrong. I am running Apache 1.3 on Debian unstable 
> with PHP4. If I type out www.mydomain.com it will not open the 
> index.php file, but if I type it out explicitly 
> www.mydomain.com/index.php then it will work fine. What do I need to 
> check to get this work correctly.

Make sure "directoryindex" in httpd.conf contains "index.php" as one of
it's possibilities.

Depending on how you installed PHP, this is usually set automatically,
but it may not have been.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache & PHP

Posted by ri...@multicam.com.
Yes, directoryindex contains index.php.

-----Original Message-----
From: Bill Moran [mailto:wmoran@potentialtech.com] 
Sent: Thursday, October 16, 2003 8:25 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache & PHP


rich-lists@multicam.com wrote:
> I know this is somewhat of a simple question, but cant seem to figure 
> out what is going wrong. I am running Apache 1.3 on Debian unstable 
> with PHP4. If I type out www.mydomain.com it will not open the 
> index.php file, but if I type it out explicitly 
> www.mydomain.com/index.php then it will work fine. What do I need to 
> check to get this work correctly.

Make sure "directoryindex" in httpd.conf contains "index.php" as one of
it's possibilities.

Depending on how you installed PHP, this is usually set automatically,
but it may not have been.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache & PHP

Posted by Bill Moran <wm...@potentialtech.com>.
rich-lists@multicam.com wrote:
> I know this is somewhat of a simple question, but cant seem to figure
> out what is going wrong. I am running Apache 1.3 on Debian unstable with
> PHP4. If I type out www.mydomain.com it will not open the index.php
> file, but if I type it out explicitly www.mydomain.com/index.php then it
> will work fine. What do I need to check to get this work correctly.

Make sure "directoryindex" in httpd.conf contains "index.php" as one of
it's possibilities.

Depending on how you installed PHP, this is usually set automatically,
but it may not have been.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache & PHP

Posted by Eric <ny...@kiercorp.com>.
Have you set php files up in your config files?




> I know this is somewhat of a simple question, but cant seem to figure
> out what is going wrong. I am running Apache 1.3 on Debian unstable with
> PHP4. If I type out www.mydomain.com it will not open the index.php
> file, but if I type it out explicitly www.mydomain.com/index.php then it
> will work fine. What do I need to check to get this work correctly.
>
> Richard
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache & PHP

Posted by Actis Grosso Domenico <ne...@tiscali.it>.
Have you added index.php to your indexing options under httpd.conf ?
----- Original Message -----
From: <ri...@multicam.com>
To: <us...@httpd.apache.org>
Sent: Thursday, October 16, 2003 5:18 PM
Subject: RE: [users@httpd] Apache & PHP


> I forgot to mention that when I simply go to www.mydomain.com that it
> lists the files in the directory. Not sure if that has anything to do
> with it.
>
> -----Original Message-----
> From: rich-lists@multicam.com [mailto:rich-lists@multicam.com]
> Sent: Thursday, October 16, 2003 8:20 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Apache & PHP
>
>
> I know this is somewhat of a simple question, but cant seem to figure
> out what is going wrong. I am running Apache 1.3 on Debian unstable with
> PHP4. If I type out www.mydomain.com it will not open the index.php
> file, but if I type it out explicitly www.mydomain.com/index.php then it
> will work fine. What do I need to check to get this work correctly.
>
> Richard
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache & PHP

Posted by ri...@multicam.com.
I forgot to mention that when I simply go to www.mydomain.com that it
lists the files in the directory. Not sure if that has anything to do
with it.

-----Original Message-----
From: rich-lists@multicam.com [mailto:rich-lists@multicam.com] 
Sent: Thursday, October 16, 2003 8:20 AM
To: users@httpd.apache.org
Subject: [users@httpd] Apache & PHP


I know this is somewhat of a simple question, but cant seem to figure
out what is going wrong. I am running Apache 1.3 on Debian unstable with
PHP4. If I type out www.mydomain.com it will not open the index.php
file, but if I type it out explicitly www.mydomain.com/index.php then it
will work fine. What do I need to check to get this work correctly.

Richard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Access to directories by IP address.

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 16 Oct 2003, Ed Curtis wrote:
> You are correct, my mistake. I do have a full system path to the folder.
>
> <Directory /var/www/home/test>
>
> Anything else?

Check for other directives that may apply to the same location and overide
your config.  Also, check the access_log to see exactly what IP address
the server is seeing the incoming requests on.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Access to directories by IP address.

Posted by Ed Curtis <ed...@homes2see.com>.

You are correct, my mistake. I do have a full system path to the folder.

<Directory /var/www/home/test>

Anything else?

Ed


On Thu, 16 Oct 2003, Joshua Slive wrote:

>
> On Thu, 16 Oct 2003, Ed Curtis wrote:
> > 	<Directory /test>
> > 	order deny,allow
> > 	deny from all
> > 	allow from this class c/24
> > 	allow from 10.0.0.0/24
> > 	</Directory>
> >
> > I restarted the server, made sure mod_access is loaded and can still
> > access the www.homer.com/test directory from outside the networks outlined
> > in the above directive.
>
> <Directory> takes a full file-system path, not a web/url-path.  So you
> probably need <Directory /usr/local/apache2/htdocs/test/> or something
> like that.
>
> Joshua.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Access to directories by IP address.

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 16 Oct 2003, Ed Curtis wrote:
> 	<Directory /test>
> 	order deny,allow
> 	deny from all
> 	allow from this class c/24
> 	allow from 10.0.0.0/24
> 	</Directory>
>
> I restarted the server, made sure mod_access is loaded and can still
> access the www.homer.com/test directory from outside the networks outlined
> in the above directive.

<Directory> takes a full file-system path, not a web/url-path.  So you
probably need <Directory /usr/local/apache2/htdocs/test/> or something
like that.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Access to directories by IP address.

Posted by Ed Curtis <ed...@homes2see.com>.
 I'm running Apache 1.3.26 on a Debian system. I would like to lock down
some directories located inside a virtual host directory.

 Say I have www.homer.com and I also have www.homer.com/stuff

 I want to lock access to /stuff to only allow access from certain ip
addresses. I've read the manual on this and did exactly as it says.

 In the virtual host config for www.homer.com I have.

	<Directory /test>
	order deny,allow
	deny from all
	allow from this class c/24
	allow from 10.0.0.0/24
	</Directory>

I restarted the server, made sure mod_access is loaded and can still
access the www.homer.com/test directory from outside the networks outlined
in the above directive.

 Where do I go from here?

Thanks,

Ed



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org