One of my customers want to use shtml (server side scripting). But when i try’s the page is black.
And on another host its shows the day from today

Can someone help?

Look in /etc/httpd/conf/httpd.conf for the following two lines:

#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml

Uncomment them. Then, for each account that you want to enable SSI on, edit their vhost conf file (/etc/httpd/conf.d/ and add Options +Includes:

<Directory /home/domainco/>
  AllowOverride AuthConfig FileInfo Options Limit Indexes
  Options +ExecCGI +Includes

Then restart Apache.

it work’s now, but can i set it default enable for all users?

You could probably add:

Options +Includes

To the main httpd.conf file. Check the Apache docs because Apache has specific rules on how overlapping Options directives are merged:

Thanks, it works now :wink:

I really recommand to also set


To not able your client to do something like

<!–#exec cmd=“cat /etc/passwd” -->

well to not allow your client to execute a sh script/binary


Then it will like this:

Options +Includes IncludesNOEXEC


No only do


For example create an shtml file with :

<!–#config timefmt="%A %d %B %Y" -->
Today is <!–#echo var=“DATE_LOCAL” -->
<br />
<!–#exec cmd=“ls /home/account/public_html/” -->

You’ll then see

Today is Sunday 04 February 2007
[an error occurred while processing this directive]

The Exec is rejected


Late response but thanks, yes i got

the date…
[an error occurred while processing this directive]

Thanks, great :wink:

happy to know it works :wink: