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 25th February 2006, 22:51
tmeyer tmeyer is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No PHP on Virtual Hosts

I am new to Apache, PHP and ISPConfig. I have one virtual host I am trying to setup. I have PHP Scripts seleted but not safe mode in the ISPConfig interface..

I have a simple php info test page at root level. When I try to open test.php in a browser, I get a dialog box:

You have chosen to open test.php which is a: PHP script from http://www....
What should Firefox do with this file? Open with ......., etc.


I am running on Fedora core 4 Apache/1.3.33 (Unix) PHP/5.0.4 mod_ssl/2.8.23 OpenSSL/0.9.8

I downloaded the latest ISPConfig setup yesterday and installed.

I have phpmyadmin running just fine and it is talking to MySQL. So PHP is working on the server, just not in virtual hosted domains.

Any help would be more than appreciated.

Tim Meyer
Reply With Quote
Sponsored Links
  #2  
Old 26th February 2006, 09:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,769
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Which directory is "at root level"?

The root level of a ISPConfig website is like /home/www/web[ID]/web or /var/www/web[ID]/web.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 26th February 2006, 15:20
tmeyer tmeyer is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No PHP on Virtual Hosts

The root directory is /home/www/web4/web.

This is the directory ISPConfig created. There is also a symlink /home/www.domainname.com that points to /home/www/web4

I might mention that SSI and perl scripts are running fine.

Thanks for any help in this matter.
Reply With Quote
  #4  
Old 26th February 2006, 16:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

What's in your Vhosts_ispconfig.conf file?
Also, anything in the Apache error log?
__________________
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
  #5  
Old 26th February 2006, 19:30
tmeyer tmeyer is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No PHP on Virtual Hosts

First off, below is the last several entries in the apache error log:

[Sun Feb 26 12:09:26 2006] [error] [client 192.168.1.18] Directory index forbidden by rule: /var/www/sharedip/
[Sun Feb 26 12:09:26 2006] [warn] [client 192.168.1.18] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
[Sun Feb 26 12:09:26 2006] [warn] [client 192.168.1.18] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
[Sun Feb 26 12:14:28 2006] [error] [client 192.168.1.18] Directory index forbidden by rule: /var/www/sharedip/
[Sun Feb 26 12:14:28 2006] [warn] [client 192.168.1.18] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
[Sun Feb 26 12:14:28 2006] [warn] [client 192.168.1.18] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
[Sun Feb 26 12:19:29 2006] [error] [client 192.168.1.18] Directory index forbidden by rule: /var/www/sharedip/
[Sun Feb 26 12:19:29 2006] [warn] [client 192.168.1.18] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed
[Sun Feb 26 12:19:29 2006] [warn] [client 192.168.1.18] mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed



Below is the virtual host doc :

###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 192.168.2.55:80
<VirtualHost 192.168.2.55:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.dmcityview.com:80
######################################
#
#
<VirtualHost 192.168.2.55:80>
ServerName www.dmcityview.com:80
ServerAdmin webmaster@dmcityview.com
DocumentRoot /home/www/web4/web
ServerAlias dmcityview.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/ /home/www/web4/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /home/www/web4/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
Alias /error/ "/home/www/web4/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 ^/~([^/]+)(/(.*))? /home/www/web4/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web4/user/$1/web/$3
</VirtualHost>
#
#
#


Thanks...
Reply With Quote
  #6  
Old 26th February 2006, 19:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,769
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

The warnings in the logfile are all for the sharedIP site.

You are using the domain: www.dmcityview.com in your browser to get the .php file and not the IP address?

www.dmcityview.com currently oints to an active site in the internet. Is this site currently located in the folder /home/www/web4/web of your server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 26th February 2006, 20:04
tmeyer tmeyer is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No PHP on Virtual Hosts

Yes, I am hitting it via the URL, you can see it at http://www.dmcityview.com/test.php

/home/www/web4/web/test.php

the file is just: <?php phpinfo(); ?>

Thanks
Reply With Quote
  #8  
Old 26th February 2006, 20:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,769
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

Please check if mod_php is loaded in your httpd.conf and if there are no php related errors in your apache error log.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 26th February 2006, 20:23
tmeyer tmeyer is offline
Junior Member
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default No PHP in Virtual Hosts

the last line ine the LoadModule section of /etc/httpd/conf/httpd.conf is:

LoadModule php5_module modules/libphp5.so

Also, in /usr/lib/httpd/modules there is a libphp5.so file.


In the error log, I did find a bunch of these:

[Sun Feb 26 09:50:57 2006] [error] an unknown filter was not added: PHP
[Sun Feb 26 09:50:57 2006] [error] an unknown filter was not added: PHP
[Sun Feb 26 09:51:08 2006] [error] an unknown filter was not added: PHP
[Sun Feb 26 09:51:08 2006] [error] an unknown filter was not added: PHP
Reply With Quote
  #10  
Old 27th February 2006, 00:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Is 209.234.75.244 your public IP address?
__________________
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
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
"unknown filter" growing apache log. wwparrish Installation/Configuration 6 1st September 2006 18:40
apache and virtual hosts stored in postgresql variable Server Operation 3 28th December 2005 11:48
Duplicate virtual hosts bosei General 13 22nd December 2005 17:48
Max Virtual Hosts on a server badben Server Operation 2 21st November 2005 12:35
postfix config jmroth Installation/Configuration 6 18th September 2005 15:58


All times are GMT +2. The time now is 17:27.


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