tbrehm
2009-03-06 e6d68c2eb0d0b4e28a627405678a693026e92482
Several improvements for opensuse.
4 files modified
11 ■■■■ changed files
docs/INSTALL_OPENSUSE_11_1.txt 6 ●●●● patch | view | raw | blame | history
install/dist/lib/opensuse.lib.php 2 ●●● patch | view | raw | blame | history
server/conf/vhost.conf.master 2 ●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php 1 ●●●● patch | view | raw | blame | history
docs/INSTALL_OPENSUSE_11_1.txt
@@ -82,7 +82,9 @@
2.1) Install apache2
yast2 -i apache2
yast2 -i apache2 apache2-mod_fcgid
rpm -i http://download.opensuse.org/repositories/server:/php/server_database_apache_openSUSE_11.0/i586/suphp-0.6.2-10.41.i586.rpm
3) Install PHP5 modules (1 line!):
@@ -94,6 +96,8 @@
a2enmod rewrite
a2enmod ssl
a2enmod actions
a2enmod suphp
a2enmod fcgid
chkconfig --add apache2
/etc/init.d/apache2 start
install/dist/lib/opensuse.lib.php
@@ -435,7 +435,7 @@
        
        $content = rf('/etc/apache2/httpd.conf');
        if(!stristr($content,'Include /etc/apache2/sites-enabled/')) {
            af('/etc/apache2/httpd.conf',"\nInclude /etc/apache2/sites-enabled/\n\n");
            af('/etc/apache2/httpd.conf',"\n<Directory /srv/www>\n    Options FollowSymlinks\n</Directory>\n\nInclude /etc/apache2/sites-enabled/\n\n");
        }
        unset($content);
        
server/conf/vhost.conf.master
@@ -1,5 +1,5 @@
<Directory /var/www/{tmpl_var name='domain'}>
<Directory {tmpl_var name='web_basedir'}/{tmpl_var name='domain'}>
    AllowOverride None
    Order Deny,Allow
    Deny from all
server/plugins-available/apache2_plugin.inc.php
@@ -447,6 +447,7 @@
        $vhost_data = $data["new"];
        $vhost_data["web_document_root"] = $data["new"]["document_root"]."/web";
        $vhost_data["web_document_root_www"] = $web_config["website_basedir"]."/".$data["new"]["domain"]."/web";
        $vhost_data["web_basedir"] = $web_config["website_basedir"];
        
        // Check if a SSL cert exists
        $ssl_dir = $data["new"]["document_root"]."/ssl";