Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: beeboob 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
-
Did you remove the index of the ibay?
-
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.
-
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:
expand-template /etc/httpd/conf/httpd.conf
- Restart apache to reload the corrected settings (so without the conflux settings)
/etc/rc7.d/S86httpd-e-smith sigusr1
- Create a directory like /opt/conflux and put/copy the source files there.
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 (http://mirror.contribs.org/smeserver/contribs//gordonr/devguide/html/devguide.html#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).
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
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:
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!
-
@cactus
You do good work. Keep up the good job.
-
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
-
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
-
Forget it is not help whit 777
-
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:
chown www:www /opt/conflux
to set all files to have owner www:www as well dochown -R www:www /opt/conflux
-
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:
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)
-
Thank,, now i just can read the page. In some woh i have stop the web server???
-
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:/etc/rc7.d/S86httpd-e-smith sigusr1
If you want to stop just replace sigusr1 with stop. To start replace sigusr1 with start.
-
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.
-
Many thanks ok i try agin
-
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?
-
When i follow you guide i get:
Forbidden
You don't have permission to access /conflux on this server.
-
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?
-
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
-
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>
-
The configuration template looks almost okay to me:
[list=1]- Add the following lines in there as well:
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? ll /opt
-
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
-
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:chown www:www /opt/conflux
After that try to access it again using your browser.
-
I still the same.
I tyr to access whit
server/conflux
www.mydomane.com/conflux
mydomane.com/comflux
-
I still the same.
I tyr to access whit
server/conflux
www.mydomane.com/conflux
mydomane.com/conflux
-
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: Order deny,allow
Allow from all
I think your configuration template should read like this:
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:expand-template /etc/httpd/conf/httpd.conf
/etc/rc7.d/S86htppd-e-smith sigusr1
Try to access the conflux directory again.
-
You er my today´s guru :)
Many thanks, You er so fine
-
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.
-
Yes i works,, And many thanks for that,,,
I have accesse it, and just now have to mank some fine adjustment, in the frontpage
-
This howto work on SME 7 rc2 and rc3
http://wiki.goldtel.com.au/conflux/howto1