#1  
Old 22nd December 2006, 22:49
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default Php

Hi,
I just have got one last problem with my setup, the .php files do not excute, i have enabled php via ISPconfig on the domain though what is strange is the .php3 files do excute when enabled. How can i make php files excute like the php3 files?
Thanks again your great here
Alex
Reply With Quote
Sponsored Links
  #2  
Old 23rd December 2006, 12:50
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,796
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

Which linux distribution do you use? Did you follow one of the perfect setup guides?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd December 2006, 12:52
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default

Yep i used your perfect setup guides, I am using openSuse 10.2
Reply With Quote
  #4  
Old 23rd December 2006, 17:16
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default

heres is a demo of what i mean

Works:
deleted now

Doesnt Work:
deleted now

Any ideas?
Thanks,
Alex

Last edited by alexillsley; 15th January 2007 at 23:10.
Reply With Quote
  #5  
Old 23rd December 2006, 17:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Please post the vhost configuration for alexserver.redirectme.net.
__________________
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
  #6  
Old 23rd December 2006, 17:26
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default

where is this stored? i am using ISP config
Reply With Quote
  #7  
Old 23rd December 2006, 17:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,796
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

It is stored in the file /etc/apache2/vhosts/Vhost_ispconfig.conf. The path may differ a bit, depending on your linux installation.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 23rd December 2006, 17:48
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default

ok, heres the contents of the file
Code:
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
NameVirtualHost 192.168.1.10:80
<VirtualHost 192.168.1.10:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: alexserver.redirectme.net:80
######################################
#
#
<VirtualHost 192.168.1.10:80>
ServerName alexserver.redirectme.net:80
ServerAdmin webmaster@redirectme.net
DocumentRoot /srv/www/web5/web
ServerAlias redirecteme.net
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 /srv/www/web5/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
Alias /error/ "/srv/www/web5/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 ^/~([^/]+)(/(.*))? /srv/www/web5/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /srv/www/web5/user/$1/web/$3
</VirtualHost>
#
#
#
Reply With Quote
  #9  
Old 23rd December 2006, 22:11
alexillsley alexillsley is offline
Senior Member
 
Join Date: Dec 2006
Posts: 396
Thanks: 27
Thanked 4 Times in 4 Posts
Default

I tried making an htaccess with this in it:
Code:
AddType application/x-httpd-php php
But it didnt change anything, the .php files just dont excute , have you got any ideas as to how could fix this? Its really important that i get it work,
Please help me, im begging,
Alex

EDIT: i used the same .htaccess as above and added .htm and .html and php works with in htm & htm files, i dont understand why it wont let me add php files to it u can see php excuting in it

page deleted now

Last edited by alexillsley; 15th January 2007 at 23:10.
Reply With Quote
  #10  
Old 24th December 2006, 12:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,796
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
 
Default

Php files are already activated as you can see in this line:

Quote:
AddType application/x-httpd-php .php .php3 .php4 .php5
Please create a file /srv/www/web5/web/info.php with exactly this content:

Code:
<?php

phpinfo();

?>
Do you get the phpinfo output when you open it with a webrrowser?
__________________
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
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58
all my site go to /var/www/ Absolusteph Installation/Configuration 14 11th March 2006 22:27


All times are GMT +2. The time now is 08:21.


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