Product:
Search Type:

How do I insert HTML or any different code into a page in Sitebuilder? It shows as plain text and will not display as a web page.

Article ID: 1549 
Last Review: Apr,02 2008
APPLIES TO:
  • Sitebuilder 4.x for Linux/Unix

RESOLUTION

Plesk Sitebuilder allows you to add any code written in any scripting or other language into the Script module: HTML, DHTML, XML, PHP, ASP, SSI, Perl/CGI, JavaScript, Java applets, and many more. You can find all kinds of third party scripts on popular webmaster's resources available on the Internet.
The scripts will work correctly in case the publishing server is configured accordingly. Study the Readme files for the script you wish to add, and compare the requirements to those of the Plesk Sitebuilder publishing location. If there are some additional requirements imposed by your scripts, contact your Plesk Sitebuilder provider for assistance.

Note: 1. Scripts cannot be executed on site preview. To check the script operation, publish the site and proceed to the corresponding page.
2. Some scripts may require that you upload some additional content in your site home directory. If you have no access credentials for the publishing location, or do not have enough permissions for uploading content, contact your hosting provider for assistance.
3. If PHP code is inserted into page with help of Script module and there are no any different modules on this site, Sitebuilder considers such site as static (not dynamic) and pages have .html extension instead of .php. In this case code inserted into files with .html extension while Apache's PHP module can only process files with .php extension. To make sure that PHP code is recognized by PHP module as PHP script  'AddType' definition should exist in Apache configuration, like in the example below:

AddType application/x-httpd-php .html
Keywords: script, module, php, sitebuilder

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields