View Full Version : Php not work after upgrade
rseoane
7th February 2007, 21:11
At least I thing that this is the problem.
I upgrade to lastest version without problems but now site don't work well.
I see forums but I don't find a solution.
Help, please.
This is my test site: www dot cluxter dot com
martinfst
8th February 2007, 10:26
Your document roots in the apache config seem to be hosed. You're also missing index.html (or another valid index file based on your directives). Also you're mime types are incorrect, because even plain html is not recognized. How and what did you upgrade exactly?
rseoane
8th February 2007, 11:50
I ugrade from ispc 2.2.7 to 2.2.9
I have download ispconfig 2.2.9, unpack and execute ./setup
Ubuntu 6.06
Html works fine. Files with .php are shown as text plain.
http://w3.cluxter.com/web2/web/ and http://w3.cluxter.com/sharedip/ are .html
till
8th February 2007, 14:23
What is the content of your Vhost_ispconfig.com file?
rseoane
8th February 2007, 15:13
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
NameVirtualHost 80.32.187.136:80
<VirtualHost 80.32.187.136:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.cevit.org:80
######################################
#
#
<VirtualHost 80.32.187.136:80>
ServerName www.cevit.org:80
ServerAdmin webmaster@cevit.org
DocumentRoot /var/www/web2/web
ServerAlias cevit.org
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
rrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
</VirtualHost>
#
#
#
######################################
# Vhost: www.cluxter.com:80
######################################
#
#
<VirtualHost 80.32.187.136:80>
ServerName www.cluxter.com:80
ServerAdmin webmaster@cluxter.com
DocumentRoot /var/www/web3/web
ServerAlias www.cluxter.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ScriptAlias /cgi-bin/ /var/www/web3/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web3/log/error.log
AddHandler application/x-httpd-php .php .php3 .php4 .php5
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php3>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php4>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
<Files *.php5>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
php_admin_flag safe_mode Off
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddType application/vnd.wap.wmlscriptc .wmlsc .wsc
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .ws .wmlscript
AddType image/vnd.wap.wbmp .wbmp
Alias /error/ "/var/www/web3/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
</VirtualHost>liasMatch ^/users/([^/]+)(/(.*))? /var/www/web3/user/$1/web/$3
</VirtualHost>
#
#
#
falko
8th February 2007, 21:45
What's the output of ifconfig?
rseoane
9th February 2007, 20:33
I see that IP in ifconfig was 192.168.0.1.
I change ispconfig ip but without luck.
Then I tried to uninstall and reinstall ispc.
Finally I've delete all and start again.
I think that I try to upgrade ispconfig unpacking 2.2.9 over 2.2.7 and perhaps that's wrong.
Thanks.
I hope to have more luck next time.
falko
10th February 2007, 21:46
I see that IP in ifconfig was 192.168.0.1.
Then you used the wrong IP address in ISPConfig. You must use 192.168.0.1, not 80.32.187.136.
You can change the IP address under Management -> Server -> Settings, and afterwards go to each web site in ISPConfig and select the new IP address for each.
rseoane
10th February 2007, 22:42
I already change ip on ISPConfig.
But if I select local ip for ip domain soa, this could'n be reachable from internet, żisn`t it?
till
11th February 2007, 13:52
You must select your internal IP address for the website and your external IP address for the SOA record in the DNS manager.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.