Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 25280
Collapse All | Expand All

(-)../cvs/htdocs/doc/en/desktop.xml (-18 / +11 lines)
Lines 18-24 Link Here
18
    <license/>
18
    <license/>
19
19
20
        <version>1.4.2</version>
20
        <version>1.4.2</version>
21
        <date>4th of August 2003</date>
21
        <date>9th of August 2003</date>
22
22
23
        <chapter>
23
        <chapter>
24
                <title>Preliminaries</title>
24
                <title>Preliminaries</title>
Lines 892-908 Link Here
892
                                </p>
892
                                </p>
893
893
894
                                <pre caption = "Installing and configuring Apache">
894
                                <pre caption = "Installing and configuring Apache">
895
# <i>emerge apache php mod_php mod_ssl</i>
895
# <i>emerge apache php mod_php</i>
896
# <i>ebuild /var/db/pkg/dev-php/mod_php-4.2.2-r1/mod_php-4.2.2-r1.ebuild config</i>
896
# <i>ebuild /var/db/pkg/dev-php/mod_php-4.2.2-r1/mod_php-4.2.2-r1.ebuild config</i>
897
# <i>ebuild /var/db/pkg/net-www/mod_ssl-2.8.10/mod_ssl-2.8.10.ebuild config</i>
898
                                </pre>
897
                                </pre>
899
                                
898
                                
900
                                <impo>You want to make sure that you install mod_ssl if you want
899
                                <p>You should take a good look at <path>/etc/apache2/conf/apache2.conf</path>,
901
                                Apache to have SSL support.  If  you want to check your e-mail
902
                                remotely without sending your password across the internet unencrypted,
903
                                then you <e>do</e> want SSL!.</impo>
904
                                
905
                                <p>You should take a good look at <path>/etc/apache/conf/apache.conf</path>,
906
                                since Apache is very customizable.  By default the Apache document root
900
                                since Apache is very customizable.  By default the Apache document root
907
                                (where it first looks for html files when you connect to
901
                                (where it first looks for html files when you connect to
908
                                http://www.servername.foo or http://localhost) is <path>/home/httpd/htdocs</path>;
902
                                http://www.servername.foo or http://localhost) is <path>/home/httpd/htdocs</path>;
Lines 916-930 Link Here
916
                                </pre>
910
                                </pre>
917
                                
911
                                
918
                                <pre caption = "Making Apache start at boot">
912
                                <pre caption = "Making Apache start at boot">
919
# <i>rc-update add apache default</i>
913
# <i>rc-update add apache2 default</i>
920
 * apache added to runlevel default...
914
 * apache2 added to runlevel default...
921
 * Caching service dependencies...               [ ok ]
915
 * Caching service dependencies...               [ ok ]
922
 * rc-update complete.
916
 * rc-update complete.
923
# <i>nano -w /etc/conf.d/apache</i>
917
# <i>nano -w /etc/conf.d/apache2</i>
924
                                </pre>
918
                                </pre>
925
                                
919
                                
926
                        <p>Use <c>rc-update</c> to add Apache to the default runlevel,  and then
920
                        <p>Use <c>rc-update</c> to add Apache to the default runlevel,  and then
927
                        edit <path>/etc/conf.d/apache</path> to add the following lines so that Apache
921
                        edit <path>/etc/conf.d/apache2</path> to add the following lines so that Apache
928
                        automatically loads the SSL and PHP modules at start-up.
922
                        automatically loads the SSL and PHP modules at start-up.
929
                        </p>
923
                        </p>
930
                        
924
                        
Lines 933-939 Link Here
933
                        </pre>
927
                        </pre>
934
928
935
                        <pre caption = "Restarting Apache">
929
                        <pre caption = "Restarting Apache">
936
# <i>/etc/init.d/apache start</i>
930
# <i>/etc/init.d/apache2 start</i>
937
 * Starting Apache...                            [ OK ]
931
 * Starting Apache...                            [ OK ]
938
# <i>lynx localhost</i>
932
# <i>lynx localhost</i>
939
                        </pre>
933
                        </pre>
Lines 947-956 Link Here
947
                        </p>
941
                        </p>
948
                        
942
                        
949
                        <note>When making a secure connection to your server, you will most likely receive
943
                        <note>When making a secure connection to your server, you will most likely receive
950
                        a warning that the site's security certificate is not recognized.  The mod_ssl ebuild
944
                        a warning that the site's security certificate is not recognized.  The ssl modules
951
                        installs a self-signed security certificate, which is intended to be used for
945
                        installs a self-signed security certificate, which is intended to be used for
952
                        testing purposes only.  See the <c>mod_ssl</c> manual: 
946
                        testing purposes only. For personal use a self-signed
953
                        <path>/usr/share/doc/mod_ssl-2.8.10</path>.  For personal use a self-signed
954
                        certificate is just fine.</note>
947
                        certificate is just fine.</note>
955
                        
948
                        
956
                        <p>Now we need to make sure that PHP is working correctly.  The first step
949
                        <p>Now we need to make sure that PHP is working correctly.  The first step
Lines 1147-1153 Link Here
1147
                <p>Now we just need to restart Apache, and we will be ready to go! </p>
1140
                <p>Now we just need to restart Apache, and we will be ready to go! </p>
1148
                
1141
                
1149
                <pre caption = "Restarting Apache">
1142
                <pre caption = "Restarting Apache">
1150
# <i>/etc/init.d/apache restart</i>
1143
# <i>/etc/init.d/apache2 restart</i>
1151
                </pre>
1144
                </pre>
1152
1145
1153
                <p>Now you can browse to <uri>https://localhost/squirrelmail/src/login.php</uri>, and it should work!</p>
1146
                <p>Now you can browse to <uri>https://localhost/squirrelmail/src/login.php</uri>, and it should work!</p>

Return to bug 25280