I am running PHP v5.2.6 on an Apache v2.2 server. For some reason,
Apache is not automatically loading index.php files, even when there
is no other index.* file in the directory; it will throw a you do
not have permission to access [directory] instead.
I have the following in my httpd.conf
Hi,
Simply add Directory index.php to your config. Eg:
LoadModule php5_modulelibexec/apache22/libphp5.so
php_value session.save_path /tmp/
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
DirectoryIndex index.php
That's from meory so it may off, I
Simply add Directory index.php to your config. Eg:
Oops, that should be:
DirectoryIndex index.php
--
Richard Heyes
http://www.phpguru.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Nguyen, Long P (Mission Systems) wrote --- napísal::
Doesn't look like it..
DocumentRoot /var/www/html
short_open_tag is OFF.
This means that ? does not mark the beginnig of PHP code.
This:
http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 /
will result in this link:
Nguyen, Long P (Mission Systems) wrote:
this is an entry in the php.ini file:
error_reporting = E_ALL ~E_NOTICE
where on the machine are the error logged to?
Below that will be a line like this...
display_errors = On
If you setting is Off, change it to 'On', and restart your webserver.
Also,
16, 2004 11:22 AM
To: PHP Mailing Lists
Subject: Re: [PHP] index.php not loading up
Nguyen, Long P (Mission Systems) wrote:
this is an entry in the php.ini file:
error_reporting = E_ALL ~E_NOTICE
where on the machine are the error logged to?
Below that will be a line like
On Wed, 16 Jun 2004 08:33:46 -0700, Nguyen, Long P (Mission Systems)
[EMAIL PROTECTED] wrote:
so going back to your original question - yes error set to display on, but I don't
think I am seeing errors - where are the error logs?
Depends on what web server software you're using. Mine are in
Systems)
Cc: PHP Mailing Lists
Subject: Re: [PHP] index.php not loading up
On Wed, 16 Jun 2004 08:33:46 -0700, Nguyen, Long P (Mission Systems)
[EMAIL PROTECTED] wrote:
so going back to your original question - yes error set to display on, but I don't
think I am seeing errors - where
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
apache - and I would think that mine would also be /var/log/apache but that
path does not exist - was this created automatically when apache was
installed?
probably its /var/log/httpd ?
-R'twick
--
This is a signature
: Wednesday, June 16, 2004 12:26 PM
To: PHP Mailing Lists
Subject: RE: [PHP] index.php not loading up
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
apache - and I would think that mine would also be /var/log/apache but that
path does not exist - was this created automatically when
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist:
/var/www/html/, referer: http://158.114.148.90/index.php3
[Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist:
/var/www/html/, referer: http://158.114.148.90/index.php3
[Wed Jun 16
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]:
Found it, thanks. The errors are:
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not
exist: /var/www/html/, referer: http://158.114.148.90/index.php3
/var/www/html/
check your httpd.conf file and see if
Doesn't look like it..
DocumentRoot /var/www/html
-Original Message-
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 1:10 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] index.php not loading up
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED
I am able to bring up a test.php file, but when I try to bring up this index.php file,
the page does not load but the syntaxes below load up. Any ideas?
Thank you.
http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 /
_
setCols(2); $loginBox-addRow('Username');
Assuming you're using apache and php 4, check httpd.conf for a the
following data:
LoadModule php4_module libexec/libphp4.so
In the AddModule section: AddModule mod_php4.c
AddType application/x-httpd-php .php .phtml
If any of those aren't there, its possible that php
But if I am able to bring up test.php with the PHP configuration etc., then PHP is
working right?
-Original Message-
From: dave windsor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 10:47 AM
To: Php-general
Subject: Re: [PHP] index.php not loading up
Assuming you're using
Nguyen, Long P (Mission Systems) wrote:
But if I am able to bring up test.php with the PHP configuration etc., then PHP is working right?
Do you have errors set to display in the php.ini?
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List
Nguyen, Long P (Mission Systems) wrote --- napísal::
I am able to bring up a test.php file, but when I try to bring up this index.php file, the page does not load but the syntaxes below load up. Any ideas?
Thank you.
http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 /
_
Hi!
I have called a index.php file in a directory.
Every time I point my browser to that directory the contents of the
directory gets displayed instead of the index.php file.
Can anyone help?
Thanks in advance
Renato
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Add index.php to DirectoryIndex section in your httpd.conf file, if
you're using Apache...
HTH,
Florin.
On Sun, 2 Feb 2003 17:45:33 -0800
Renato Lopes [EMAIL PROTECTED] wrote:
Hi!
I have called a index.php file in a directory.
Every time I point my browser to that directory the
--- Renato Lopes [EMAIL PROTECTED] wrote:
Every time I point my browser to that directory the
contents of the directory gets displayed instead of
the index.php file.
It would help if we knew what Web server, but I will assume
Apache and hope for the best.
Locate your httpd.conf file, and add
Strange -- can u change it to foo.php and execute it, or do you get a 404
error (not found)?
Justin
on 03/02/03 12:45 PM, Renato Lopes ([EMAIL PROTECTED]) wrote:
Hi!
I have called a index.php file in a directory.
Every time I point my browser to that directory the contents of the
Can you hit it by typing the actual filename?
http://www.mydomain.com/index.php
If yes, check you httpd.conf file, and make sure that you have added
index.php as a valid index file.
Justin French wrote:
Strange -- can u change it to foo.php and execute it, or do you get a 404
error (not
[EMAIL PROTECTED]
z.com cc:
Subject: Re: [PHP] index.php question
Hi all, I'm new to the mailing list, I hope I'm in the right spot.
I have installed php, and .php files work fine, unless they are my index
file. For example http://whatever.com/~jondoe/info.php will work. But if I
make a index.php file and go to http://whatever.com/~jondoe it wont work.
I can
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
IfModule mod_dir.c
DirectoryIndex index.php index.php3 index.html
/IfModule
Sam
On 3/11/02 1:36 PM, Omland Christopher m [EMAIL PROTECTED]
wrote:
Hi
:
|
| Subject: Re: [PHP] index.php question
PM|
|||
|+
---
--|
|
|
| To: Omland Christopher m [EMAIL PROTECTED],
[EMAIL PROTECTED]|
| cc:
|
| Subject: Re: [PHP] index.php
I finally got PHP running on Apache in WinXP. I can execute PHP and all
that, but I can't get it to open in index.php file like it would open an
index.html file.. ie, first file it looks for in a new directory is
index.xxx but it won't open the PHP file... Anyone tell me what i need to
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 21-01-02 at 20:44
* Dion said
I finally got PHP running on Apache in WinXP. I can execute PHP and all
that, but I can't get it to open in index.php file like it would open an
index.html file.. ie, first file it looks for in a new
Hi all,
all the sudden my apache 1.3.22 is not showing my index.php page
php-4.0.6, i have added the addtype .php inside httpd.conf
not only that, i have also noticed that the ?php phpinfo(); ? is not
working also, this is not displaying the test page,
I am using netscape as a browser, do you
4:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] index.php
Hi all,
all the sudden my apache 1.3.22 is not showing my index.php page
php-4.0.6, i have added the addtype .php inside httpd.conf
not only that, i have also noticed that the ?php phpinfo(); ? is not
working also
you can make .htacces file and put
DirectoryIndex /index.php
That will work
- Original Message -
From: Caleb Carvalho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 30. prosinac 2001 10:40
Subject: [PHP] index.php
Hi all,
all the sudden my apache 1.3.22 is not showing my index.php
33 matches
Mail list logo