Koozali.org: home of the SME Server

Only get index off folder??

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« on: May 09, 2006, 10:25:06 AM »
Hey

I am trying to install, Conflux and the greate guy´s from Conflux have make this HoWto for SME 7 rc1/2
http://files.conflux.ee/docs/installguide_sme7.pdf

But i have follow the HowTo, but every time i try to got to server/conflux, I just geting, the Index of that folder??

I have Include /etc/httpd/conf.d/conflux.conf in /etc/httpd/conf/httpd.conf

Restart apache

In in /etc/httpd/conf.d/conflux.conf i also have <Directory /home/e-smith/files/ibays/Primary/html/conflux/>

I also have look in the forum, but i have to be blind, i can not see the answer.

Is there plz some one , that can tell me what to do, or give me are tips
-------------------------------
Webber Wana Bee

Offline kruhm

  • *
  • 680
  • +0/-0
Only get index off folder??
« Reply #1 on: May 14, 2006, 02:17:54 PM »
Did you remove the index of the ibay?

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #2 on: May 14, 2006, 04:24:05 PM »
I just have to dobbelt tjeck...

Yes there is no index.html page in that folder...

The installation off the conflux is in:

myplace.com/conflux or home/e-smith/files/ibays/Primary/html/conflux but i can stil get it to show the index.py.
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #3 on: May 14, 2006, 08:25:14 PM »
Quote from: "beeboob"
I just have to dobbelt tjeck...

Yes there is no index.html page in that folder...

The installation off the conflux is in:

myplace.com/conflux or home/e-smith/files/ibays/Primary/html/conflux but i can stil get it to show the index.py.

Do not install it in to your primary ibay, but install it in the /opt/ directory.

  • Begin by restoring the default httpd.conf files:
    Code: [Select]
    expand-template /etc/httpd/conf/httpd.conf
  • Restart apache to reload the corrected settings (so without the conflux settings)
    Code: [Select]
    /etc/rc7.d/S86httpd-e-smith sigusr1
  • Create a directory like /opt/conflux and put/copy the source files there.
    Code: [Select]
    mkdir -p /opt/conflux
  • Create a custom-template in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/  (this way changes will be kept over upgrades, installation of new software and reboots, this should also be made clear to whomever wrote the installguide as modifying the normal configuration files will result in not working or cripled applications as these are template based and are rewritten (expanded) when changes are neccessary, for details see the developer section II.7 Configuration File Templates) and name it 90e-smithAccess50conflux (by choosing the prefix 90s-smithAcces50 it will be loaded in to the httpd.conf file after the configuration of the ibays).
    Code: [Select]
    pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90e-smithAccess50conflux

Paste the LoadModule and Directory configuration of step 13 (page 8) in there and modify the file path to point to the location you created and add one line above the directory keyword to specify the name of the weblocation, something like this
Code: [Select]

LoadModule python_module /usr/lib/httpd/modules/mod_python.so
Alias /conflux /opt/conflux
<Directory /opt/conflux>
  DirectoryIndex index.py
  ...
</Directory>
You also might want to consider merging the first and the last DirectoryIndex statement (or delete one of them) as they contain duplicate information. Press Ctrl-X to exit and save your changes.
  • Don't add the include statement  specified in step 13 and expand trhe configuration files and restart the Apache server as we did earlier:
    Code: [Select]
    expand-template /etc/httpd/conf/httpd.conf[/li][/list]
    /etc/rc7.d/S86httpd-e-smith sigusr1

Everything should be alright now and conflux should be available at: http://server-name/conflux. Keep in mind though that I don't have conflux installed and did not test the steps described here, don't hesitate to post your experiences and errors as we might be able to help you further.

Good luck!
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline kruhm

  • *
  • 680
  • +0/-0
Only get index off folder??
« Reply #4 on: May 15, 2006, 06:34:31 AM »
@cactus
You do good work. Keep up the good job.

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #5 on: May 15, 2006, 06:44:04 AM »
Many, many thanks...

I am simply so happy :)

I will in the next hours try to get it work, But your post is very good. And i can understand it...

Regards
-------------------------------
Webber Wana Bee

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #6 on: May 15, 2006, 11:46:40 AM »
Now i have take are look on it...


But i get are

 Forbidden

You don't have permission to access /conflux on this server.

The permission  for the folder of /opt/conflux is 755

So are littel strange
-------------------------------
Webber Wana Bee

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #7 on: May 15, 2006, 11:47:40 AM »
Forget it is not help whit 777
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #8 on: May 15, 2006, 12:05:34 PM »
Quote from: "beeboob"
Forget it is not help whit 777
Never set permissions to be world writable, this is a bad thing.

What is the ownership data of the directory? This should be www:www (this is the user under which the Apache server is running). You can change this like this:
Code: [Select]
chown www:www /opt/conflux

to set all files to have owner www:www as well do
Code: [Select]
chown -R www:www /opt/conflux
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #9 on: May 15, 2006, 12:37:15 PM »
Quote from: "cactus"
Code: [Select]

LoadModule python_module /usr/lib/httpd/modules/mod_python.so
Alias /conflux /opt/conflux
<Directory /opt/conflux>
  DirectoryIndex index.py
  ...
</Directory>
You also might want to consider merging the first and the last DirectoryIndex statement (or delete one of them) as they contain duplicate information. Press Ctrl-X to exit and save your changes.

Did a quick test and found some errors, I think this should work:

Code: [Select]
Alias /conflux /opt/conflux
<Directory /opt/conflux>
  Order deny, allow
  Allow from all
  DirectoryIndex index.py
  ...
</Directory>


If you have set the ownership to the directory like described in an earlier post this should work.

If you don't want all the world to view your conflux directory you can modify the Allow from line to read something like:
Allow from localhost 192.168.223.0/255.255.255.0 (to allow your local network access if your server IP address starts with 192.168.223 of course)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #10 on: May 15, 2006, 01:37:14 PM »
Thank,, now i just can read the page. In some woh i have stop the web server???
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #11 on: May 15, 2006, 01:45:17 PM »
Quote from: "beeboob"
Thank,, now i just can read the page. In some woh i have stop the web server???

If you can read the page, ervything should be OK, if you followed my instructions you already restarted (so stopped and started) the webserver using the following line:
Code: [Select]
/etc/rc7.d/S86httpd-e-smith sigusr1If you want to stop just replace sigusr1 with stop. To start replace sigusr1 with start.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #12 on: May 15, 2006, 01:51:55 PM »
I try it, but can get it right... Some who i deny all traffic inside the lan.

So i still i the same siuation.

Can i be something whit the pyton?? To do.
-------------------------------
Webber Wana Bee

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #13 on: May 15, 2006, 01:53:25 PM »
Many thanks ok i try agin
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #14 on: May 15, 2006, 02:05:25 PM »
Quote from: "beeboob"
I try it, but can get it right... Some who i deny all traffic inside the lan.

So i still i the same siuation.

Can i be something whit the pyton?? To do.

Can you post the content of the configuration templat you created?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #15 on: May 15, 2006, 02:05:35 PM »
When i follow you guide i get:

Forbidden

You don't have permission to access /conflux on this server.
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #16 on: May 15, 2006, 02:14:39 PM »
Can you post the last lines of your /var/log/httpd/error_log file?

Can you post the contents of the configuration template (90esmithAccess50conflux file) you made?

Did you set the /opt/conflux directory to be owned by the www user with the chown command?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #17 on: May 15, 2006, 02:17:36 PM »
first the error log:

Syntax error on line 974 of /etc/httpd/conf/httpd.conf:
order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure'
[Mon May 15 13:49:14 2006] [warn] RSA server certificate CommonName (CN) server' does NOT match server name!?
[Mon May 15 13:49:14 2006] [notice] Digest: generating secret for digest authentication ...
[Mon May 15 13:49:14 2006] [notice] Digest: done
[Mon May 15 13:49:15 2006] [warn] RSA server certificate CommonName (CN) server_name' does NOT match server name!?
[Mon May 15 13:49:15 2006] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Mon May 15 13:49:15 2006] [notice] Apache configured -- resuming normal operations
[Mon May 15 13:49:19 2006] [notice] Graceful restart requested, doing restart
[Mon May 15 13:49:20 2006] [notice] Digest: generating secret for digest authentication ...
[Mon May 15 13:49:20 2006] [notice] Digest: done
[Mon May 15 13:49:20 2006] [warn] RSA server certificate CommonName (CN) atb-server.atb-huse.dk' does NOT match server name!?
[Mon May 15 13:49:20 2006] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
[Mon May 15 13:49:20 2006] [notice] Apache configured -- resuming normal operations
[Mon May 15 13:49:24 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 13:51:10 2006] [error] [client 217.157.30.2] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Mon May 15 13:54:23 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 13:54:23 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 13:54:24 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 13:54:24 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 13:54:24 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 14:02:46 2006] [error] [client 192.168.0.246] client denied by server configuration: /opt/conflux
[Mon May 15 14:03:44 2006] [error] [client 217.157.30.2] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
[Mon May 15 14:06:57 2006] [error] [client 196.40.43.74] File does not exist: /home/e-smith/files/ibays/Primary/html/sender.php|mail|navn|adresse|postnr|by|telefon|besked, referer: http://www.domane.com/
[Mon May 15 14:06:57 2006] [error] [client 196.40.43.74] File does not exist: /home/e-smith/files/ibays/Primary/html/sender.php|mail|navn|adresse|postnr|by|telefon|besked, referer: http://www.domane.com/
[Mon May 15 14:09:33 2006] [error] [client 217.157.30.2] File does not exist: /home/e-smith/files/ibays/Primary/html/favicon.ico
-------------------------------
Webber Wana Bee

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #18 on: May 15, 2006, 02:19:12 PM »
LoadModule python_module /usr/lib/httpd/modules/mod_python.so
Alias /conflux /opt/conflux
<Directory /opt/conflux>
  DirectoryIndex index.py
  PythonPath "sys.path+['/var/lib/conflux/lib/']"
AddHandler python-program .py
PythonHandler _Publisher
PythonDebug Off
DirectoryIndex index.py index.html
</Directory>
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #19 on: May 15, 2006, 02:26:45 PM »
The configuration template looks almost okay to me:

[list=1]
  • Add the following lines in there as well:
    Code: [Select]
     Order deny,allow[/li][/list]
      Allow from all
  • You might want to consider to remove the second DirectiryIndex line as it does not add any functionality as the index file should be index.py[/list:o]

    What is the output of the following command?
    Code: [Select]
    ll /opt
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #20 on: May 15, 2006, 02:28:30 PM »
total 8
drwxr-xr-x   3 root root 4096 Feb 14 13:23 administration
drwxr-xr-x  19 root root 4096 May 15 11:30 conflux
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #21 on: May 15, 2006, 02:31:30 PM »
Quote from: "beeboob"
total 8
drwxr-xr-x   3 root root 4096 Feb 14 13:23 administration
drwxr-xr-x  19 root root 4096 May 15 11:30 conflux
This indicates to me you forgot to modify the ownership rights of the conflux directory. Do the following:
Code: [Select]
chown www:www /opt/confluxAfter that try to access it again using your browser.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #22 on: May 15, 2006, 02:36:17 PM »
I still the same.

I tyr to access whit

server/conflux

www.mydomane.com/conflux

mydomane.com/comflux
-------------------------------
Webber Wana Bee

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #23 on: May 15, 2006, 02:36:45 PM »
I still the same.

I tyr to access whit

server/conflux

www.mydomane.com/conflux

mydomane.com/conflux
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #24 on: May 15, 2006, 02:44:49 PM »
Quote from: "beeboob"
LoadModule python_module /usr/lib/httpd/modules/mod_python.so
Alias /conflux /opt/conflux
<Directory /opt/conflux>
  DirectoryIndex index.py
  PythonPath "sys.path+['/var/lib/conflux/lib/']"
AddHandler python-program .py
PythonHandler _Publisher
PythonDebug Off
DirectoryIndex index.py index.html
</Directory>

Judging from this post you also forgot to add the following lines:
Code: [Select]
 Order deny,allow
  Allow from all


I think your configuration template should read like this:
Code: [Select]
LoadModule python_module /usr/lib/httpd/modules/mod_python.so
Alias /conflux /opt/conflux
<Directory /opt/conflux>
  Order deny,allow
  Allow from all
  DirectoryIndex index.py
  PythonPath "sys.path+['/var/lib/conflux/lib/']"
  AddHandler python-program .py
  PythonHandler _Publisher
  PythonDebug Off
</Directory>

After modfying the template expand it again and restart your webserver:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86htppd-e-smith sigusr1

Try to access the conflux directory again.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #25 on: May 15, 2006, 03:00:01 PM »
You er my today´s guru :)

Many thanks, You er so fine
-------------------------------
Webber Wana Bee

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Only get index off folder??
« Reply #26 on: May 15, 2006, 03:23:30 PM »
Quote from: "beeboob"
You er my today´s guru :)

Many thanks, You er so fine
You're welcome. I guess this means that you can access the conflux directory then. I will send an e-mail to the Conflux  support department to change their installation instructions to reflect the changes described in this thread.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #27 on: May 15, 2006, 03:45:54 PM »
Yes i works,, And many thanks for that,,,

I have accesse it, and just now have to mank some fine adjustment, in the frontpage
-------------------------------
Webber Wana Bee

Offline beeboob

  • ****
  • 135
  • +0/-0
    • http://www.normal.dk
Only get index off folder??
« Reply #28 on: June 18, 2006, 02:22:30 PM »
This howto work on SME 7 rc2 and rc3

http://wiki.goldtel.com.au/conflux/howto1
-------------------------------
Webber Wana Bee