HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   PHP in .html files (http://www.howtoforge.com/forums/showthread.php?t=55322)

rutame 9th December 2011 18:08

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

falko 10th December 2011 12:51

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.

rutame 10th December 2011 17:13

Quote:

Originally Posted by falko (Post 269289)
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?

falko 11th December 2011 22:04

This configuration will also be used when you change an existing vhost in ISPConfig.

rutame 13th December 2011 17:40

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

falko 14th December 2011 19:45

Please try to add
Code:

AddType application/x-httpd-php .html
below the {PHP} line.


All times are GMT +2. The time now is 02:15.

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