[cvs] [Wiki] changed: CentOS5InstallationNotes
Wiki Guest
wikiguest at horde.org
Sat Nov 3 19:55:42 UTC 2007
guest [201.6.83.105] Sat, 03 Nov 2007 12:55:42 -0700
Modified page: http://wiki.horde.org/CentOS5InstallationNotes
New Revision: 1.6
Change log: Minor change
@@ -121,25 +121,29 @@
++ Creating database
+<code>
cd /var/www/html/horde/scripts/
./setup.php
+
Press 1; choose mysql; Persistent connection 0; Username horde; Choose a
password for mysql user horde; Unix sockets; Locatio null; DB name horde;
Press 2; yes; root; root mysql password;
Press 3; specify an existing IMAP user to have horde administration
permissions (i.e. your current linux user)
+</code>
+++ Add a "horde.conf" file to /etc/httpd/cond.d:
-++ Add horde.conf to /
+<code>
+#
+# Horde
+#
-install -D -p -m 0644 %{name}.conf
%{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
-
-
-<Directory %{_datadir}/%{name}>
+<Directory /var/www/html/horde>
# Comment out the following 3 lines to make Horde accessible from anywhere
- Order Deny,Allow
- Deny from all
- Allow from 127.0.0.1
+ #Order Deny,Allow
+ #Deny from all
+ #Allow from 127.0.0.1
Options +FollowSymLinks
# horde.org's recommended PHP settings:
@@ -161,9 +165,9 @@
#php_value upload_max_filesize 10M
# /usr/share/pear is needed for PEAR. /var/www/html/horde is needed for
Horde itself
# TODO: Set an appropriate include_path, too. Might even increase speed a
bit.
- php_admin_value open_basedir
"%{_datadir}/%{name}:%{_sysconfdir}/%{name}:/usr/share/pear:/tmp"
+ php_admin_value open_basedir
"/var/www/html/horde:/var/www/html/horde/config:/usr/share/pear:/tmp"
php_admin_flag register_globals off
</Directory>
<Directory %{_sysconfdir}/%{name}>
@@ -171,9 +175,9 @@
Deny from all
</Directory>
# Deny access to files that are not served directly by the webserver
-<DirectoryMatch
"^%{_datadir}/%{name}/(.*/)?(config|lib|locale|po|scripts|templates)/(.*)?">
+<DirectoryMatch
"^/var/www/html/horde/(.*/)?(config|lib|locale|po|scripts|templates)/(.*)?">
Order Deny,Allow
Deny from all
</DirectoryMatch>
@@ -182,17 +186,21 @@
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</LocationMatch>
+</code>
+* Change horde.conf permission:
+<code>
+chmod 0644 -v /etc/httpd/conf.d/horde.conf
+</code>
+* Restart httpd:
-
-
-
-
-
+<code>
+service httpd restart
+</code>
++ Security configuration
More information about the cvs
mailing list