Commit e6d68c2e authored by tbrehm's avatar tbrehm
Browse files

Several improvements for opensuse.

parent 65bfb95d
......@@ -82,7 +82,9 @@ chkconfig --add clamd
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 suexec
a2enmod rewrite
a2enmod ssl
a2enmod actions
a2enmod suphp
a2enmod fcgid
chkconfig --add apache2
/etc/init.d/apache2 start
......
......@@ -435,7 +435,7 @@ class installer_dist extends installer_base {
$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);
......
<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
......
......@@ -447,6 +447,7 @@ class apache2_plugin {
$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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment