Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Textpattern 4.5.7 and htaccess
I just installed Textpattern 4.5.7. in a (new for me) web hosting. The site is partially working, I can upload images and write new articles. But in the admin panel the usual admin theme images are not displayed and, most important, if I try to edit pages i get a forbidden 403 error.
Diagnostics say:
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: show_source, phpinfo, shell, symlink,
As far as I understand show_source and phpinfo are not strictly necessary.
What about shell and symlink?
Can I just edit the .htaccess file? And if so, what?
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
#php_value register_globals 0
# SVG
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
Thanks
Offline
Offline
Re: Textpattern 4.5.7 and htaccess
No, uploading a .htaccess file in my textpattern folder did not solve the problem.
Contacted my host.
Now my php.ini
is:
NEW CONFIG: disable_functions = system, passthru, exec, popen, proc_open
and in diagnostics everything is fine.
But editing some pages (i.e. default page) gives Error 403! /textpattern/index.php Forbidden!
.
What is strange is that other pages can be edited and saved normally. Forms too. Now I can install plugins. But 3 or 4 pages cannot be saved.
The site has been developed locally and I uploaded my backup MySql db.
What else can I try?
Offline
Re: Textpattern 4.5.7 and htaccess
giampablo wrote #286177:
What else can I try?
Another .htaccess edit – you can edit the one in the root so you don’t have to maintain two files:
<IfModule mod_security.c>
<Files textpattern/index.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
Does that help?
Offline
Re: Textpattern 4.5.7 and htaccess
Some of my websites have difficulties saving data that contains http://
and that’s because server’s firewall thinks something bad is happening (thus giving 403 instead of allowing data to be saved). Maybe your hosting provider has similar settings.
Offline
Re: Textpattern 4.5.7 and htaccess
Hi kuopassa,
sorry for not replying you sooner.
I just checked your suggestion, deleting every http://
occurrency.
Now, I succeeded saving some pages (not all), so it seems the problem is due to the server’s firewall settings.
Still there are two pages I can’t save (one of them is the error_default page). Very strange. I will investigate further.
At the moment your suggestion is the only one partially working, but it solved most of my problems.
Thanks a lot.
Offline
Pages: 1