Forum

index.php

djv1rus
24 April 2012, 13:16
Hiawatha version:
Operating System:
hi

now i got another problem. I can't get the files index.php to work, it only show the list of files
index.html is working fine...
What did i forgott please ?
here is my config

ServerId = mc
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = /var/www/logs/hiawatha/system.log
GarbageLogfile = /var/www/logs/hiawatha/garbage.log


# BINDING SETTINGS
Binding {
Port = 80
}

Binding {
Port = 443
SSLcertFile = /etc/hiawatha/serverkey.pem
}

# BANNING SETTINGS
BanOnGarbage = 300
BanOnMaxPerIP = 60
BanOnMaxReqSize = 300
KickOnBan = yes
RebanDuringBan = yes


# COMMON GATEWAY INTERFACE (CGI) SETTINGS
CGIhandler = /usr/bin/perl:pl
CGIhandler = /usr/bin/php-cgi:php
CGIhandler = /usr/bin/python:py
CGIhandler = /usr/bin/ruby:rb
CGIhandler = /usr/bin/ssi-cgi:shtml
ExecuteCGI = yes
CGIextension = cgi

# DEFAULT WEBSITE
Hostname = 127.0.0.1
WebsiteRoot = /var/www/hiawatha
StartFile = index.php
AccessLogfile = /var/www/logs/hiawatha/access.log
ErrorLogfile = /var/www/logs/hiawatha/error.log
AccessList = allow all
ShowIndex = no

# DIRECTORY SETTINGS
Directory {
Path = /var/www/hiawatha/admin
ExecuteCGI = yes
TimeForCGI = 300
AccessList = pwd all
PasswordFile = basic:/etc/hiawatha/passwords
StartFile = index.html
}


Directory {
Path = /var/www/hiawatha
ExecuteCGI = yes
TimeForCGI = 300
StartFile = index.html
}
Directory {
Path = /var/www/hiawatha/map
ExecuteCGI = yes
TimeForCGI = 300
StartFile = index.php
}


Directory {
Path = /var/www/hiawatha/phpbb
ExecuteCGI = yes
TimeForCGI = 60
StartFile = index.php
}
djv1rus
24 April 2012, 13:18
u will see ShowIndex = no
i tryed and it show error 404
Hugo Leisink
24 April 2012, 14:42
Try this config:
...

# DEFAULT WEBSITE
Hostname = 127.0.0.1
WebsiteRoot = /var/www/hiawatha
StartFile = index.php
AccessLogfile = /var/www/logs/hiawatha/access.log
ErrorLogfile = /var/www/logs/hiawatha/error.log
ExecuteCGI = yes
TimeForCGI = 300

# DIRECTORY SETTINGS
Directory {
Path = /var/www/hiawatha/admin
AccessList = pwd all
PasswordFile = basic:/etc/hiawatha/passwords
StartFile = index.html
}

Directory {
Path = /var/www/hiawatha/phpbb
TimeForCGI = 60
}
djv1rus
24 April 2012, 20:21
hi same thing when i go into url hiawatha / map 404 not found
if i write hiawatha / map / index.php it works
Hugo Leisink
24 April 2012, 20:49
Is there a .hiawatha file in the map directory? If so, what is its content?
djv1rus
25 April 2012, 15:07
no there is no .hiawatha

why what is this ?

thanx
Hugo Leisink
25 April 2012, 15:38
Strange. The config looks oke. It's probably some issue on your server, but I'm afraid I don't know what that is.
This topic has been closed.