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
  #1  
Old 6th August 2007, 04:53
pgp_protector pgp_protector is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Help, my phpfiles arenot parsing.

Ok total noob to both Linux & ISPConfig.

I've got a SuSE 10.2 Box with 1G / 320G HD clean install from the step by step instructions.

Got it up and running, and can use the Admin panels (So PHP on the box is working)

I created a new Site www.testsite.home for inhouse testing as I learn this.

When I created the site I could visit it from my XP Box (updated the host file so it would go to the IP address), and it displays the index.html file with no problem.

But when I changed the index.html file to old_index.html, so it would serve index.php instead. well it will not parse the file (run the php script) but the computer that connects to the server is asked to download the file instead.

Where do I start to look for this ?

The index.php file is just the <?php phpinfo(); ?> command.

I've turned on PHP Scripts: under site management and tried both PHP Safe Mode: enabled and disabled.
Reply With Quote
Sponsored Links
  #2  
Old 6th August 2007, 10:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Please edit the config file /home/admispconfig/ispconfig/lib/config.inc.php and change the line:

Code:
$go_info["server"]["apache2_php"] = 'both'; // 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)
to:

Code:
$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)
and then edit a setting in your site, e.g. quota, in ISPConfig and click on save to let ISPConfig rewrite the apache config file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
pgp_protector (7th August 2007)
  #3  
Old 7th August 2007, 07:02
pgp_protector pgp_protector is offline
Junior Member
 
Join Date: Aug 2007
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you that fixed it, it's now working :clap:
Reply With Quote
  #4  
Old 11th March 2008, 09:39
ivantea ivantea is offline
Junior Member
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hello till I have the same problems with pgp protector, my php index.php files canot parsing, i using fedore core 7 there is the same configuration as suse please help me
Reply With Quote
  #5  
Old 11th March 2008, 12:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
 
Default

Fedora 7 uses another configuration the SuSE, so this Thread does not apply to you as PHP on Fedora 7 will not work when you use Addhandler.

Please make sure that you configured your server exactly as decsribed in the perfect setup guide for fedora 7, php will work then with ISPConfig out of the box, no changes needed.
__________________
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
htaccess parsing only for one vhost - how? tom Installation/Configuration 1 5th July 2007 12:10
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


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


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