Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: jfarschman on March 14, 2006, 05:29:21 PM
-
Hi,
I went to add FollowSymLinks into the templates and found that it would be done in 90-e-smithAccess40ibays for version 7 but there is a variable there that handles this
The file:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
The variable:
$OUT .= " Options +FollowSymLinks\n" if ($followSymLinks eq 'enabled');
More context:
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled";
my $indexes = $properties{'Indexes'} || "enabled";
$OUT .= "\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "# $key ibay directories ($properties{'Name'})\n";
$OUT .= "#------------------------------------------------------------\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
$OUT .= " Options None\n";
$OUT .= " Options \n";
$OUT .= " Options +Indexes\n" if ($indexes eq 'enabled');
$OUT .= " Options +FollowSymLinks\n" if ($followSymLinks eq 'enabled');
if ($dynamicContent eq 'enabled')
{
$OUT .= " Options +Includes\n";
}
else
{
$OUT .= " Options +IncludesNOEXEC\n";
$OUT .= " <FilesMatch \"\\.(php|php3|phtml)\$\">\n";
$OUT .= " order deny,allow\n";
$OUT .= " Deny from all\n";
$OUT .= " </FilesMatch>\n";
}
$OUT .= " AllowOverride $allowOverride\n";
$OUT .= " order deny,allow\n";
$OUT .= " deny from all\n";
$OUT .= " allow from $allow\n";
How do I set $followSymLinks? I could just put this file in templates-custom and change the line
my $followSymLinks = $properties{'FollowSymLinks'} || "disabled";
But is there a better way?
-
Not tested and not completely sure but I tjink it is a per ibay entry in the database:
db accounts setprop ibayname FollowSymLinks enabled
After you have done so you can check if modyfing the database entry went OK by
db accounts show ibayname
To reflect your changes in the configuration file you will have to expand the /etc/httpd/conf/httpd.conf file:
expand-template /etc/httpd/conf/httpd.conf
and last step is to restart yout httpd service for changes to take effect
/etc/rc7.d/S86httpd-e-smith sigusr1
Jonathan
-
Thanks,
It works great. You can make it "NOT EXPERIMENTAL" if you want. It worked great.
-
Great!
I am up an running with the above information on a fully updated SME 7.0 final. I had to get symlinks to be supported to make the Typo3 cms work
-
foto-biz.pm=ibay
AllowOverride=All
CgiBin=enabled
FollowSymlinks=Enabled
Gid=5007
Group=shared
Name=Foto-Biz -- PmWiki
PasswordSet=no
PublicAccess=global
SymLinksIfOwnerMatch=Enabled
Uid=5007
UserAccess=wr-admin-rd-group
-
foto-biz.pm=ibay
AllowOverride=All
CgiBin=enabled
FollowSymlinks=Enabled
Gid=5007
Group=shared
Name=Foto-Biz -- PmWiki
PasswordSet=no
PublicAccess=global
SymLinksIfOwnerMatch=Enabled
Uid=5007
UserAccess=wr-admin-rd-group
Your settings are wrong. DB variables are case sensitive. See the warning box at:
http://wiki.contribs.org/DB_Variables_Configuration
enabled is not equal to Enabled
See for ibays specific settings:
http://wiki.contribs.org/DB_Variables_Configuration#Apache_server_ibay_specific_.28httpd-e-smith.29
If you want to use a .htaccess file under the ibay, you must configure AllowOverride to all also.
-
foto-biz.pm=ibay
AllowOverride=All
CgiBin=enabled
FollowSymlinks=Enabled
Gid=5007
Group=shared
Name=Foto-Biz -- PmWiki
PasswordSet=no
PublicAccess=global
SymLinksIfOwnerMatch=Enabled
Uid=5007
UserAccess=wr-admin-rd-group
Next time try to post only in the relevant thread instead of like this in some older thread without any context.