Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 20th February 2007, 23:36
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

thank you! Seems like it took a long time to get here but it is finally working. The last link you gave me did the trick. Maybe there is a way of consolidating all the different posts on fixing this into one post that has the actual fix.

thanks again! and I look forward to continuing with ISPConfig!!
Reply With Quote
Sponsored Links
  #12  
Old 22nd February 2007, 00:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

AFAIK Till has added a fix for OpenSuSE 10.2 into the new ISPConfig 2.2.10.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #13  
Old 22nd February 2007, 23:04
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
AFAIK Till has added a fix for OpenSuSE 10.2 into the new ISPConfig 2.2.10.
Sounds good to me! lol... it will probably be openSuse 10.3 before we know it. I don't plan on setting up another server for a while (I hope!).
Reply With Quote
  #14  
Old 23rd February 2007, 19:17
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till
I tried to access PHP content today and got the window asking me if I wanted to open the file (and with what) or if I wanted to save it.

I went to the server and checked vhost_ispconfig.conf and the change from AddType to AddHandler for
Code:
AddHandler application/x-httpd-php .php .php3 .php4 .php5
had somehow gone back to AddType.

No reboots, no restarts... what would cause this? Perhaps logging into ISPConfig? which I did do this morning to reset a password.
Reply With Quote
  #15  
Old 24th February 2007, 12:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Hmm, thats strange. The config.inc.php file is only read by ISPCONfig, not written. Only the setup script is writing to this file while ISPConfig is installed or updated.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #16  
Old 24th February 2007, 17:34
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till
Hmm, thats strange. The config.inc.php file is only read by ISPCONfig, not written. Only the setup script is writing to this file while ISPConfig is installed or updated.
I am not sure I understand the response... I have not opened or edited the config.inc.php file(?).

The only file I have edited is the /etc/apache2/vhost/vhost_ispconfig.conf file. First 2 make my PHP content work per the previous link you gave me, then again when my PHP content stop working.

As a test I just checked the PHP contend and all was fine. Then I logged into ISPConfig, reset a password for one of the site users, logged out of ISPConfig. Checked PHP contend and again and sure enough... "Open with, or save file".

Went over to the server opened /etc/apache2/vhost/vhost_ispconfig.conf and sure enough AddHandler for the PHP lines had been reverted back to AddType!
Reply With Quote
  #17  
Old 24th February 2007, 17:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
Default

Then your problem is clear. Never edit the file /etc/apache2/vhost/vhost_ispconfig.conf manually as it will get overwritten! You will have to enable the Addhandler directive in config.inc.php as PHP default handler. Its described there in the comments. But you must have upgraded to 2.2.10.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #18  
Old 24th February 2007, 17:47
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Got it... I think!! I am downloading 2.2.10 now and will get back to you...

thanks!
Reply With Quote
  #19  
Old 24th February 2007, 18:29
latcarf latcarf is offline
Senior Member
 
Join Date: Jul 2005
Posts: 215
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by till
Then your problem is clear. Never edit the file /etc/apache2/vhost/vhost_ispconfig.conf manually as it will get overwritten! You will have to enable the Addhandler directive in config.inc.php as PHP default handler. Its described there in the comments. But you must have upgraded to 2.2.10.
Okay, I ran the update. The config.inc.php file only had about 78 lines so I backtracked the previous link you gave me (http://www.howtoforge.com/forums/sho...light=10.2+php) and it states to change config.lib.conf around line 1390.

This is what I had
Code:
    if($web["web_php"]){
      if($apache_version == 1){
        $php = "AddType application/x-httpd-php .php .php3 .php4 .php5";
      }
      if($apache_version == 2){
                  $php = '';
                if($go_info["server"]["apache2_php"] == 'addtype' or $go_info["server"]["apache2_php"] == 'both' or $go_info["server"]["apache2_php"] == 'suphp') {
                        $php .= "AddType application/x-httpd-php .php .php3 .php4 .php5\n";
                }
				if ($go_info["server"]["apache2_php"] == 'addhandler') {
                        $php .= "AddHandler application/x-httpd-php .php .php3 .php4 .php5\n";
                }
                if($go_info["server"]["apache2_php"] == 'filter' or $go_info["server"]["apache2_php"] == 'both') {
            $php .= "<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
and this is what I changed it to
Code:
    if($web["web_php"]){
      if($apache_version == 1){
        $php = "AddHandler application/x-httpd-php .php .php3 .php4 .php5";
      }
      if($apache_version == 2){
                  $php = '';
                if($go_info["server"]["apache2_php"] == 'addtype' or $go_info["server"]["apache2_php"] == 'both' or $go_info["server"]["apache2_php"] == 'suphp') {
                        $php .= "AddHandler application/x-httpd-php .php .php3 .php4 .php5\n";
                }
				if ($go_info["server"]["apache2_php"] == 'addhandler') {
                        $php .= "AddHandler application/x-httpd-php .php .php3 .php4 .php5\n";
                }
                if($go_info["server"]["apache2_php"] == 'filter' or $go_info["server"]["apache2_php"] == 'both') {
            $php .= "<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
</Files>
I changed lines 1387 to AddHandler and 1392 to AddHandler. Hopefully everything will return to normal now...
Reply With Quote
  #20  
Old 24th February 2007, 18:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,788
Thanks: 840
Thanked 5,612 Times in 4,423 Posts
 
Default

Please undo the changes you made. The link you followed is for ISPConfig 2.2.9 and not 2.2.10.

Please edit /home/admispconfig/ispconfig/lib/config.inc.php as I requested above and set:

$go_info["server"]["apache2_php"] = 'addhandler'; // one string of one or more comma seperated options: 'filter' = set PHP filters, 'addtype' = Set PHP addtype, 'both' = Set Filter + Addtype, 'engine' = Use "php_admin_flag engine on/off", suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 10:54
VirtualHosts marra87 General 9 12th September 2006 05:09
fastcgi and php with ispconfig tosser Tips/Tricks/Mods 3 25th June 2006 22:01
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58


All times are GMT +2. The time now is 04:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.