Description

This function adds Microsoft® FrontPage® Extensions to the domain.

  • In cPanel & WHM version 11.44, if you uninstalled FrontPage extensions, or if FrontPage was never installed on the server, the server will ignore all FrontPage settings.
  • In cPanel & WHM version 11.46 and later, FrontPage extensions are no longer supported. These functions will only return 'not installed' or an error message.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$add_frontpage = $cpanel->api1('FrontPage', 'addfp', array('example.com','example.com') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $add_frontpage = $cpliveapi->api1('FrontPage', 'addfp', ['example.com','example.com'] ); # Call the function.

 

<cpanel Module="FrontPage::addfp( $FORM('ftpdomain','psuedodomain') )">
cpapi1 --user=username FrontPage addfp ftpdomain=example.com pseudodomain=example.com

Saving .htaccess file: /home/example/public_html/.htaccess
Using Upgrade Mode
Saving .htaccess file: /home/example/public_html/_private/.htaccess
Saving .htaccess file: /home/example/public_html/secondary.com/.htaccess
Saving .htaccess file: /home/example/public_html/secondary.com/_private/.htaccess
Saving .htaccess file: /home/example/public_html/tertiary.com/.htaccess
Starting install, port: 80.
Created: 01 Feb 2014 02:43:18 -0000
Version: 5.0.2.4803
Server extensions already installed on port 80.
Reverting to upgrade.
Starting upgrade, port: 80.
Created: 01 Feb 2014 02:43:18 -0000
Version: 5.0.2.4803
Port 80: Upgrade completed.
Upgraded Version: 5.0.2.4803.
Merging .htaccess file: /home/example/public_html/.htaccess
Merging .htaccess file: /home/example/public_html/_private/.htaccess
Merging .htaccess file: /home/example/public_html/secondary.com/.htaccess
Merging .htaccess file: /home/example/public_html/secondary.com/_private/.htaccess
Merging .htaccess file: /home/example/public_html/tertiary.com/.htaccess
Setting Password
Frontpage passthough auth enabled in /home/example/public_html!
Frontpage was installed on the following domains: example.com

   

Parameters

ParameterTypeDescriptionPossible valuesExample
ftpdomain

string

Required

The domain name.

A valid domain name.example.com
psuedodomainstring

Required

The domain name.

A valid domain name.example.com

Returns

This function returns a set of FrontPage status information.

In cPanel & WHM version 11.46 and later, this function returns 'not installed' or an error message.