[cvs] [Wiki] changed: CentOS5InstallationNotes
Wiki Guest
wikiguest at horde.org
Sat Nov 3 18:49:57 UTC 2007
guest [201.6.83.105] Sat, 03 Nov 2007 11:49:57 -0700
Modified page: http://wiki.horde.org/CentOS5InstallationNotes
New Revision: 1.5
Change log: Added more steps
@@ -117,8 +117,83 @@
cd /var/www/html/horde/config
rm -rf hooks.php.dist
for d in *.dist; do d0=`basename $d .dist`; if [ ! -f "$d0" ]; then cp -p
$d $d0; fi; done
</code>
+
+
+++ Creating database
+
+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)
+
+
+++ Add horde.conf to /
+
+install -D -p -m 0644 %{name}.conf
%{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf
+
+
+<Directory %{_datadir}/%{name}>
+ # Comment out the following 3 lines to make Horde accessible from anywhere
+ Order Deny,Allow
+ Deny from all
+ Allow from 127.0.0.1
+
+ Options +FollowSymLinks
+
+ # horde.org's recommended PHP settings:
+ php_admin_flag safe_mode off
+ php_admin_flag magic_quotes_runtime off
+ php_flag session.use_trans_sid off
+ php_flag session.auto_start off
+ php_admin_flag file_uploads on
+ # Optional - required for weather block in Horde to function
+ #php_admin_flag allow_url_fopen on
+
+ # If horde dies while trying to handle large email file attachments,
+ # you are probably hitting PHP's memory limit. Raise that limit here,
+ # but use caution
+ # Set to your preference - memory_limit should be at least 32M
+ # and be greater than the value set for post_max_size
+ #php_value memory_limit 32M
+ #php_value post_max_size 20M
+ #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_flag register_globals off
+</Directory>
+
+<Directory %{_sysconfdir}/%{name}>
+ Order Deny,Allow
+ 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)/(.*)?">
+ Order Deny,Allow
+ Deny from all
+</DirectoryMatch>
+
+# Deny access to the test.php files except from localhost
+<LocationMatch "^/horde/(.*/)?test.php">
+ Order Deny,Allow
+ Deny from all
+ Allow from 127.0.0.1
+</LocationMatch>
+
+
+
+
+
+
+
+
+
+
++ Security configuration
* For horde framework
@@ -145,14 +220,6 @@
* For IMP
...
-++ Creating database
-
-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
... (Later I'll continue this howto)
-
More information about the cvs
mailing list