#1  
Old 31st January 2012, 02:31
kopurka kopurka is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP not working for VHOSTS

Hello,

I have new installation CentOS Linux 6.2 (Linux 2.6.32-220.4.1.el6.i686 on i686) + ISPConfig 3 latest version, following perfect setup for centos 6.2 from howtoforge ...

OK. ISP admin panel works, phpmyadmin works, so I suppose the php is working.

I have created one domain based virtual host with just one fail index.php, containing:

<?
phpinfo();
?>

After entering the domain in my browser I just receive the text as html, not actual php info ...
I try every php option for the website - Fast-CGI, CGI, Mod-PHP, SuPHP...
No success
No any errors in log files.
For example in suphp.log I just god:

[Tue Jan 31 02:24:01 2012] [info] Executing "/var/www/clients/client3/web3/web/index.php" as UID 5005, GID 5007

SELinux is disabled.

PLEASE HELP.... What to do?
Reply With Quote
Sponsored Links
  #2  
Old 31st January 2012, 10:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

And its the same for all php modes incl mod_php? Was this a fresh centos install or was there another controlpanel installed before on the server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 31st January 2012, 10:38
kopurka kopurka is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes. Te same for all modules. And yes, completely new installation.
Reply With Quote
  #4  
Old 31st January 2012, 10:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Please post the vhost file of the affected site, you should find it in /etc/httpd/sites-available/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 31st January 2012, 10:53
kopurka kopurka is offline
Junior Member
 
Join Date: Jan 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Fixed.

This version of php comes with default
short_open_tag = Off

so <? is just not recognized as php file ...

Tnx
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
Problem with ispconfig 3 staff007 Installation/Configuration 4 10th October 2011 22:17
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
Postfix - Relay access denied gotting Server Operation 3 23rd April 2008 15:06
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:53.


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