Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
9e356a00
Commit
9e356a00
authored
Dec 23, 2008
by
tbrehm
Browse files
Fixed php cgi configuration.
parent
b5f091c6
Changes
5
Hide whitespace changes
Inline
Side-by-side
INSTALL_DEBIAN_4.0.txt
View file @
9e356a00
...
...
@@ -68,6 +68,7 @@ Then run the following to enable the Apache modules:
a2enmod suexec
a2enmod rewrite
a2enmod ssl
a2enmod actions
4) Install pure-ftpd and quota
...
...
INSTALL_DEBIAN_LENNY.txt
View file @
9e356a00
...
...
@@ -87,7 +87,7 @@ apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2
# Then run the following to enable the Apache modules suexec, rewrite and ssl:
a2enmod suexec rewrite ssl
a2enmod suexec rewrite ssl
actions
# Secure phpMyAdmin by deleting setuppassword-file
# and removing/commenting Setup Authorization from apache.conf
...
...
INSTALL_OPENSUSE_11.txt
View file @
9e356a00
...
...
@@ -80,6 +80,7 @@ Then run the following to enable the Apache modules:
a2enmod suexec
a2enmod rewrite
a2enmod ssl
a2enmod actions
chkconfig --add apache2
/etc/init.d/apache2 start
...
...
INSTALL_UBUNTU_8.04.txt
View file @
9e356a00
...
...
@@ -45,6 +45,7 @@ a2enmod suexec
a2enmod rewrite
a2enmod ssl
a2enmod include
a2enmod actions
3.1) Optional: Install SuPHP
...
...
server/conf/vhost.conf.master
View file @
9e356a00
...
...
@@ -51,6 +51,10 @@
<tmpl_if name='php' op='==' value='mod'>
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_if name='php' op='==' value='suphp'>
# suphp enabled
...
...
@@ -63,7 +67,9 @@
</tmpl_if>
<tmpl_if name='php' op='==' value='cgi'>
# php as cgi enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
ScriptAlias /php5-cgi /usr/bin/php5-cgi
Action php5-cgi /php5-cgi
AddHandler php5-cgi .php .php3 .php4 .php5
</tmpl_if>
<tmpl_if name='php' op='==' value='fast-cgi'>
# php as fast-cgi enabled
...
...
@@ -84,13 +90,6 @@
RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 [<tmpl_var name='rewrite_type'>]
</tmpl_loop>
</tmpl_if>
<tmpl_if name='php' op='!=' value=''>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_var name='apache_directives'>
</VirtualHost>
...
...
@@ -153,6 +152,10 @@
<tmpl_if name='php' op='==' value='mod'>
# mod_php enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_if name='php' op='==' value='suphp'>
# suphp enabled
...
...
@@ -163,7 +166,9 @@
</tmpl_if>
<tmpl_if name='php' op='==' value='cgi'>
# php as cgi enabled
AddType application/x-httpd-php .php .php3 .php4 .php5
ScriptAlias /php5-cgi /usr/bin/php5-cgi
Action php5-cgi /php5-cgi
AddHandler php5-cgi .php .php3 .php4 .php5
</tmpl_if>
<tmpl_if name='php' op='==' value='fast-cgi'>
# php as fast-cgi enabled
...
...
@@ -185,13 +190,6 @@
RewriteRule ^/(.*)$ <tmpl_var name='rewrite_target'>$1 [<tmpl_var name='rewrite_type'>]
</tmpl_loop>
</tmpl_if>
<tmpl_if name='php' op='!=' value=''>
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>"
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
#php_admin_value open_basedir <tmpl_var name='document_root'>:/usr/share/php5
</tmpl_if>
<tmpl_var name='apache_directives'>
</VirtualHost>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment