Several improvements for opensuse.
| | |
| | | |
| | | 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!): |
| | | |
| | |
| | | a2enmod rewrite |
| | | a2enmod ssl |
| | | a2enmod actions |
| | | a2enmod suphp |
| | | a2enmod fcgid |
| | | |
| | | chkconfig --add apache2 |
| | | /etc/init.d/apache2 start |
| | |
| | | |
| | | $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 |
| | |
| | | $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"; |