Koozali.org: home of the SME Server

Secure website How To

Cameron stacey

Secure website How To
« on: October 27, 2000, 05:49:59 AM »
Gentlemen,

If anyone has the How To from Dans site re: the setup of secure webmail, could they please post them or email them to me...

Kindest Regards,
Cameron Stacey

Nef

RE: Secure website How To
« Reply #1 on: October 27, 2000, 07:44:52 AM »
//here is a copy of the procedure://

Setting up web-based e-mail on e-smith 4.0

First, this is tested only with e-smith 4.0 final. It will probably work with some of the later
betas, but it hasn't been tested.

You'll need several files that I've put up here. Here's the breakdown:

MySQL 3.22.32

MySQL-3.22.32-1.i386.rpm is the MySQL server. IMP, the webmail system, uses
MySQL to store its address book and preferences.
MySQL-client-3.22.32-1.i386.rpm is a collection of client programs for MySQL.
This is needed to properly set up IMP.
MySQL-shared-3.22.32-1.i386.rpm contains the MySQL shared library. It is needed for PHP
to interface with MySQL.
e-smith-mysql-1.0.0-1.noarch.rpm integrates MySQL into the e-smith system.

PHP 4.0.1pl2

Required files

These files must be installed for PHP to work properly with IMP and e-smith 4.0.

php-4.0.1pl2-3.i386.rpm is the core file for the PHP Hypertext Preprocessor. PHP
is a scripting language which is used to run IMP.
mod_php-4.0.1pl2-3.i386.rpm is the PHP module for your web server. This allows
your web server touse PHP.
mod_php-imap-4.0.1pl2-3.i386.rpm is a PHP module which interfaces with IMAP.
This is needed to connect to the mail server.
e-smith-php4-4.0.0-3.noarch.rpm reconfigures the Apache configuration files on
the e-smith system to support PHP 4.0.0

Optional files

These files are not all required.

mod_php-ldap-4.0.1pl2-3.i386.rpm is a PHP module which interfaces with LDAP. You
can run IMP without this, but since e-smith includes LDAP anyway, you might as well install it.
mod_php-mysql-4.0.1pl2-3.i386.rpm is a PHP module which interfaces with MySQL.
You need this if you're going to use MySQL as your databse system. If you're following the directions on this page step-by-step, you need this file.
mod_php-pgsql-4.0.1pl2-3.i386.rpm if a PHP module which interfaces with
PostgreSQL. You can use this instead of MySQL if you really want to, but some of the setup scripts only work with MySQL. This file will not work if you do not have PostgreSQL installed.
php-4.0.1pl2-3.src.rpm is not necessary to use IMP, but may be useful for others
who want to see how the PHP RPMs were built.
e-smith-php4-4.0.0-3.src.rpm is not needed to run IMP, but may be of interest to
see how the e-smith-php4 RPM was built.

Horde & IMP

horde-1.2.0-1esmith2.noarch.rpm is the horde system, and provides a framework in
which the mail system can operate. The source RPM is here. The source isn't needed, but it may be of interest.
horde-mysql-1.2.0-1esmith2.noarch.rpm configures horde to use MySQL for session
management,   preferences, and contacts.  Install this file if you've installed MySQL as suggested above.
horde-pgsql-1.2.0-1esmith2.noarch.rpm configures horde to use PostgreSQL for
session management, preferences, and contacts.  Install this file if you're using PostgreSQL instead of MySQL.
imp-2.2.0-1esmith1.noarch.rpm is IMP, which provides the webmail system. The
source RPM is here.

Once you have all the files you need, here's how to install everything.

Install MySQL:

[root@e-smith /root]# rpm -Uvh MySQL* e-smith-mysql*

Once you've installed MySQL, it's a very good idea to change the root password:

[root@e-smith /root]# mysqladmin -u root password mynewpassword

Now, install PHP:

[root@e-smith /root]# rpm -Uvh php* mod_php* e-smith-php*

Once PHP is installed, you can install horde:

[root@e-smith /root]# rpm -Uvh horde-1.2.0-1esmith2.noarch.rpm horde-mysql-1.2.0-1esmith2.noarch.rpm

Following the instructions on the screen, you should now create the database information to use horde correctly:

[root@e-smith /root]# cd /home/e-smith/files/primary/html/horde
[root@e-smith horde]# mysql -p < scripts/database/mysql_create.sql
Enter password: [type the password here]
[root@e-smith horde]# mysqladmin -p reload
Enter password: [type the password here]

And the last one to be installed is IMP:

[root@e-smith /root]# rpm -Uvh imp-2.2.0-1esmith1.noarch.rpm

After you've installed IMP, you need to configure it properly:

[root@e-smith /root]# cd /home/e-smith/files/primary/html/horde
[root@e-smith horde]# sh install.sh

Your blank configuration files have been created, please go to
the configuration utitlity at :

your install path url/setup.php3

After this step, browse to http://your.server.name/horde/setup.php3 and complete the configuration wizard.  If you have any questions about the configuration wizard, check out the page I made to explain it.  Then secure the system:

[root@e-smith horde]# sh secure.sh

I have made your configuration files, and libraries mode 0444
which is read for everyone.

And the setup.php3 is mode 0000 which is no access period.

[root@e-smith horde]# sh scripts/database/dbpasswd.sh

Notes

If you're upgrading to Horde 1.2.0 / IMP 2.2.0 from the -pre13 RPMs posted earlier, you'll need to add the --force command to RPM: "rpm -Uvh --force filename".  This is because RPM thinks that 1.2.0_pre13 is a later version
than 1.2.0.  Also, if you're upgrading, you'll still need to run the dbpasswd.sh script.  When you're running the setup wizard, enter the previous password, and then run dbpasswd.sh as noted above.

Credits

Of course, this wouldn't be possible without e-smith or the folks with the Horde project. The horde and imp RPMs rely heavily on the work of Brent Nordquist (I took his .spec files and hacked them did not, in fact, write any of
the software I've posted here.  All I've done is package it to work, more or less, within the e-smith system.

steve

RE: Secure website How To
« Reply #2 on: October 27, 2000, 10:40:34 AM »
"After this step, browse to http://your.server.name/horde/setup.php3 and complete the configuration wizard. If you have any questions about the configuration wizard, check out the page I made to explain it. Then secure the system: "



what page?

Cameron Stacey

RE: Secure website How To
« Reply #3 on: October 27, 2000, 05:43:59 PM »
Thanks so much for the information, but, the information supplied pertains to the setup of web based email, I was actually after the Secure Website How to and files...:)

Kindest Regards,
Cameron Stacey

mischa

RE: Secure website How To
« Reply #4 on: October 28, 2000, 01:12:25 AM »
Would anyone have a link to the package e-smith-mysql-1.noarch.rpm mentioned in Dan's great article? I have spent a whole evening for this; please have pity with me!

Mischa

steve

RE: Secure website How To
« Reply #5 on: October 28, 2000, 05:53:05 AM »
i too need it.  please post

Nef

RE: Secure website How To
« Reply #6 on: October 28, 2000, 10:03:52 AM »
is it How to setup a webpage on your e-smith server to provide a secure shell (SSH) from any java-capable browser.?  
I only have the copy for the Secure Shell (SSH) but for the Secure Website or hosting an SSL-enabled web server, i dont have it.

Fran Boon

RE: Secure website How To
« Reply #7 on: October 28, 2000, 03:18:24 PM »
I've posted a copy here until E-Smith get round to hosting it:

http://partyvibe.com/e-smith/e-smith-mysql-1.0.0-1.noarch.rpm

Dan Brown

RE: Secure website How To
« Reply #8 on: October 28, 2000, 05:16:16 PM »
Really, that RPM is quite a bad hack.  All it does is copy the mysql startup script from /etc/rc.d/init.d to rc7.d, which will make mysql start up when you boot the system.  I didn't even do it quite properly in the RPM (I should have made a symlink), and I'm not at all sure that packaging that single command as an RPM was the way to go.  I haven't had any better suggestions, though.

Gordon Rowell

RE: Secure website How To
« Reply #9 on: October 29, 2000, 02:31:36 AM »
The binary RPM is up on the "Contributed RPMs" link on
www.e-smith.org The source RPM will be up as soon as
we find it :-)

Gordon

Cameron Stacey

RE: Secure website How To
« Reply #10 on: October 30, 2000, 10:34:07 AM »
Thats all well and good...:)

But, I do believe what I was asking for initially was the How To for installing SSL, not SSH on the server so as to make a secure website, so ya get the little lock down on the bottom right of your browser...

If anyone could post a copy of the How To or email it to me with the required rpm's I would appreciate it...:)

Thanks,
Cameron Stacey

Damien Curtain

RE: Secure website How To
« Reply #11 on: October 31, 2000, 01:03:12 AM »
I think youll find its linked via the www.e-smith.org main page.

http://www.e-smith.org/article.php3&mode=&order=0

will tell you how its done.

--
 Damien

Cameron Stacey

RE: Secure website How To
« Reply #12 on: October 31, 2000, 06:13:48 AM »
Thanks Damien,

I have added the files as sugested and exactly as a friend of mine has done and I have no luck, I am now using a dialup and I dont think ssl or ssh work for me, my friend uses cable and it all works fine for him.

well at least the ibays, I copied the contents of the webconsole ibay to the /home/e-smith/files/primary/html folder and it worked from there, so there must be a problem as far as I can tell with ibays and dialuo and adsl, as I had adsl at my old address and had the same problems...:(

anybody else have any similar things happening...?

Kind Regards,
Cameron Stacey

Cameron Stacey

RE: Secure website How To
« Reply #13 on: November 02, 2000, 02:42:52 AM »
just an update,

I have also noticed that the secure web site mod does not work via a dialup connection either, anyone know if it works with adsl or not or sattelite...?

Kind Regards,
Cameron Stacey