#1  
Old 9th December 2011, 17:08
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default PHP in .html files

Hello,

PHP scripts does not work in archives .html like index.html, etc. I triying to fix it but allways come back to its original configuration. I like to do this change for all domains at once.

Where is the file with the configuration, because i had changed:

Code:
AddType application/x-httpd-php .php .php3 .php4 .html  in /root/ispconfig/httpd/conf/httpd.conf
And this one:
Code:
/etc/apache2/vhosts/Vhosts_ispconfig.conf

AddType application/x-httpd-php .php .php3 .php4 .php5 .html
Thank you very much
Reply With Quote
Sponsored Links
  #2  
Old 10th December 2011, 11:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Make a copy of
/root/ispconfig/isp/conf/vhost.conf.master in the /root/ispconfig/isp/conf/customized_templates/ folder and then adjust /root/ispconfig/isp/conf/customized_templates/vhost.conf.master.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
rutame (10th December 2011)
  #3  
Old 10th December 2011, 16:13
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
Make a copy of
/root/ispconfig/isp/conf/vhost.conf.master in the /root/ispconfig/isp/conf/customized_templates/ folder and then adjust /root/ispconfig/isp/conf/customized_templates/vhost.conf.master.
Thanks a lot Falko, is very usefull but that "fix" its for config the new vhost, is not it?
Reply With Quote
  #4  
Old 11th December 2011, 21:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

This configuration will also be used when you change an existing vhost in ISPConfig.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
rutame (12th December 2011)
  #5  
Old 13th December 2011, 16:40
rutame rutame is offline
Senior Member
 
Join Date: Jun 2008
Location: Canary Islands, Spain, Europe, Planet Earth
Posts: 161
Thanks: 39
Thanked 1 Time in 1 Post
Default

Hellow Falko,

I dont know how i can do that... that script is a little bit weird for me. What i should change?
Code:
{FP_RESOURCE_CONFIG}
{FP_ACCESS_CONFIG}
###################################
#
# ISPConfig vHost Configuration File
#         Version 1.0
#
###################################
#
<!-- BEGIN DYNAMIC BLOCK: namevhost -->
{SERVERIP}
<!-- END DYNAMIC BLOCK: namevhost -->
#
#
<!-- BEGIN DYNAMIC BLOCK: vhost -->

######################################
# Vhost: {SERVERNAME}
######################################
#
#
<VirtualHost {IP}>
{HTTPD_INCLUDE}
{SUEXEC}
ServerName {SERVERNAME}
ServerAdmin {SERVERADMIN}
DocumentRoot {DOCUMENTROOT}
{SERVERALIAS}
{DIRECTORYINDEX}
{CGI}
ErrorLog {WEB_ERROR_LOG}
{PHP}
{RUBY}
{PYTHON}
{SSI}
{WAP}
{STATSALIAS}
{ERRORALIAS}
{ERROR}
AliasMatch ^/~([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
{REWRITE_RULE}
{FRONTPAGE}
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
{WEBDAV}
</VirtualHost>
#
{SSL}
#
#
<!-- END DYNAMIC BLOCK: vhost -->
Thank you very much
Reply With Quote
  #6  
Old 14th December 2011, 18:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

Please try to add
Code:
AddType application/x-httpd-php .html
below the {PHP} line.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
rutame (15th December 2011)
Reply

Bookmarks

Tags
html, ispconfig2, php

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
Newly Installed ISPConfig3 on Ubuntu 8.04 : login redirect fail ? cripperz Installation/Configuration 5 22nd March 2009 12:15
Really Simple DNS Question andysm849 Server Operation 4 20th October 2008 23:32
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
VirtualHosts marra87 General 9 12th September 2006 04:09


All times are GMT +2. The time now is 19:01.


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