1
cavh2005
URL issue
  • 2005/2/2 17:22

  • cavh2005

  • Just popping in

  • Posts: 13

  • Since: 2005/2/2 1


Good evening all

I've installed XOOPS and getting along with it well over the last day or so. Thanks to all those who have come before and done so much good work!

I have one issue that's baffling me. I have only two modules installed - Sections and Downloads. When I click on the link that should take take me to the relevant index page for that module, I am presented with a directory listing of the relvant folder, i.e. either modules/mydownloads or modules/sections. In addition, when I click on the Home link from any page, I get returned to the default Apache home page ("If you can see this, it means that the installation of the Apache web server software on this system was successful.").

I know there must be a simple config error somewhere. I have a feeling that *perhaps* my mainfile.php needs amendment. The relevant part of the file reads as follows:

// XOOPS Physical Path
// Physical path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_ROOT_PATH', 'F:/Program Files/Apache Group/Apache2/htdocs');
define('XOOPS_ROOT_PATH', 'F:/Program Files/Apache Group/Apache2/htdocs');

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://localhost');
define('XOOPS_URL', 'http://localhost');

Can anyone help, please?

Thank you.

Clive

2
m0nty
Re: URL issue
  • 2005/2/2 17:40

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


sounds like your apache is configured to read index.html files before index.php

you could simply remove the index.html files or change in your apache config the default indexing order..

so it reads the index.php files before it looks for html files..

in CPanel you can do it easily..

or edit apache/conf/httpd.conf

and set (for example)

DirectoryIndex index.html index.htm index.php index.php4 index.php3 index.cgi index.pl index.html.var index.phtml

change the order so that index.php comes 1st

ie

DirectoryIndex index.php index.html index.htm index.php4 index.php3 index.cgi index.pl index.html.var index.phtml

3
cavh2005
Re: URL issue
  • 2005/2/2 17:58

  • cavh2005

  • Just popping in

  • Posts: 13

  • Since: 2005/2/2 1


Thanks for the reply, M0nty. I edited the httpd.conf file to include the DirectoryIndex stuff, and restarted Apache, but the problem remains. I then tried renaming the default Apache index.html file and restarting it, and then got a 404 error when trying to get to http://localhost. Any other ideas?
Thanks.

4
m0nty
Re: URL issue
  • 2005/2/2 18:02

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


are your XOOPS files actually in the htdocs folder or in a sub folder? such as htdocs/html. ?

if they're in a sub folder you need to also add that folder to the paths u specified in mainfile.php

(you can leave the httpd.conf tho, no need to change it back as it won't affect your XOOPS site)

5
cavh2005
Re: URL issue
  • 2005/2/2 18:06

  • cavh2005

  • Just popping in

  • Posts: 13

  • Since: 2005/2/2 1


The XOOPS files are in the htdocs folder, not in a subfolder.

6
cavh2005
Re: URL issue
  • 2005/2/2 18:19

  • cavh2005

  • Just popping in

  • Posts: 13

  • Since: 2005/2/2 1


Apologies m0nty, I mucked up the editing of the httpd.conf file. Now when I request http://localhost, I get the XOOPS index.php file, which is great. It has also sorted out my linking problem getting to 'Sections' and 'Downloads'. All in all I'm a happy camper.


Login

Who's Online

546 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 546


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits