Click to See Complete Forum and Search --> : Xitami www.address.tld/ Problems


jargonccna
09-08-2002, 11:14 PM
Hey, what's up. I'm having some problems getting PHP to work with my Xitami properly. If I go to /index.php, the page arrives, but if I just try /, Xitami spits a 403 error at me. Any thoughts?

klyve1
09-10-2002, 05:21 AM
It's not recognising that the index.php is an alternative index file to index.html/htm.

Change it under the Admin>Configuration section where it says
Default HTML page:

It probably says: index.htm 'Then' default.htm
You need to add index.php into the next box.

Klyve

jargonccna
09-10-2002, 10:20 PM
I did, that's the thing. I even tried setting Xitami to use index.php as the first index page; no dice. Should I post up the contents of my config files..? Maybe somebody could see what's wrong..

klyve1
09-11-2002, 04:38 AM
IT may be stating the obvious but have you restarted the webserver?
Klyve

jargonccna
09-11-2002, 09:27 AM
Over and over again. I have it set up to automatically update from the config files every 10 seconds anyway.

klyve1
09-11-2002, 12:45 PM
That's that one out then!

Which version are you running and yes, can you post the config (or attach it if possible) and I'll take a look in comparison to mine.

Klyve

jargonccna
09-11-2002, 05:30 PM
Cool, thanks for helping out..

Xitami version 2.5b4
C:\XITAMI

defaults.cfg:
----
#*END

[Accesslog]
Custom = "$\(client) - $\(user) [$\(datetime)] \"$\(request)\" $\(status-
gent)\""
Translate = "1"

[Alias]
/portfolio = "./wwwroot/sites"

[Cgi]
Debug = "1"
Form-query = "1"

[Console]
Append = "1"
Startup = "2"

[Filter]
.php = "C:\\PHP\\PHP.EXE"

[Ftp]
Data-port = "20"
Email-check = "1"
Enabled = "0"
Root = "/"

[Rdns]
Primary-server = "24.226.1.90"
Secondary-server = "24.226.1.20"

[Security]
Safepaths = "0"

[Server]
Default1 = "index.php"
Default2 = "index.html"
Default3 = "index.pl"
Default4 = "index.htm"
Hostname = "jargonccna.cjb.net"
Recover = "1"
Refresh = "10"
Webpages = "./wwwroot"

[Ssi]
Errmsg = "<B>[xitami SSI: %s]</B>"

[Virtual-hosts]
Ayoungtechie.yi.org = "ayoungtechie.cfg"
Biography.jargonccna.cjb.net = "biography.cfg"
Calendar.journal.jargonccna.cjb.net = "journalcalendar.cfg"
Friends.journal.jargonccna.cjb.net = "journalfriends.cfg"
Hackings.jargonccna.cjb.net = "hackings.cfg"
Jargonnetengineer.cjb.net = "jargonnetengineer.cfg"
Journal.jargonccna.cjb.net = "journal.cfg"
Music.jargonccna.cjb.net = "music.cfg"
Projects.jargonccna.cjb.net = "projects.cfg"
Sites.jargonccna.cjb.net = "sites.cfg"

[Wsx]
.htm = "xixssi"
.html = "xixssi"
.pl = "xixssi"
----

Again, thanks for the help.

klyve1
09-12-2002, 05:18 AM
Well I've had a couple of play arounds and can't match your problems, sorry.

One possibility is that something in the xitami.cfg is causing problems - this file shouldn't be edited, that's what the defaults.cfg is for (see the 'warning'(!) header of xitami.cfg).

I see that the xitami.cfg has extra lines for the defaults section (mine only has 1 & 2) and then it's doubled up in the defaults.cfg.

I.e. My defaults.cfg has:
[Server]
Cgi-bin = "d:\\httptest\\cgibin"
Debug = "1"
Default3 = "index.php"
Priority = "3"
Webpages = "d:/httptest/htdocs"

I have no clue what the Priority 3 is or where it comes from(!)

One possibility is that the wrong files are being read, are the .cfg's in the Xitami folder?

I can't think of anything else to check at the moment... if I do I'll let you know.

Klyve

klyve1
09-12-2002, 05:37 AM
Another thought....
I'm assuming you get a 'Error 403: Forbidden' message and this shows because the webserver canot find a matching index file as set in the defaults...... so, is your index.php exactly that and not Index.php?

Klyve