Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-03-10 19:34:15
- jades
- Member
- Registered: 2009-03-10
- Posts: 14
[resolved] [Solved] 403 error on longer articles
i’ve just moved my install from my internal OSX dev server and moved it to a live server (terrible trouble getting it all to work) but now i think i’ve got there AND i’ve upgraded to the latest version. I couldnt get my data across and so ended up reposting all my articles on the live server.
Most of this seems to be working EXCEPT
When i try to post a longer articles 700 or so chars + i just get:
“403 forbidden”
Forbidden
You don’t have permission to access /textpattern/index.php on this server.
if i shorten the article it [sometimes] works…
I can’t understand it all – any tips please
i’ve got messy URLs and diagnostics pass all ok
——————-
Textpattern version: 4.0.8 (r3085)
PHP version: 4.4.4-9
GD Image Library: 2.0 or higher; supported formats: GIF, JPG, PNG.
Server Local Time: 2009-03-10 19:31:17
MySQL: 5.0.51a-15
Locale: en_GB.UTF-8
Server: Microsoft-IIS/5.0
Apache version: Microsoft-IIS/5.0
PHP Server API: apache
RFC 2616 headers:
Server OS: Linux 2.6.24.2
Active plugins: smd_slimbox-0.32, smd_gallery-0.51, smd_lib-0.35
——————-
great product thanks for it…
Last edited by jades (2009-03-10 22:47:49)
Offline
Re: [resolved] [Solved] 403 error on longer articles
Looks like an instance of mod_security-related symptoms. Check with your webhost’s support.
Offline
#3 2009-03-13 18:08:22
- jades
- Member
- Registered: 2009-03-10
- Posts: 14
Re: [resolved] [Solved] 403 error on longer articles
ok i’ve checked with my webhost and they say
“Are (sic) logs are not showing any errors pertaining to mod_security issues.”
any other ideas anyone —?
Offline
Re: [resolved] [Solved] 403 error on longer articles
Somewere on the top of your htaccess file add SecFilterEngine Off, save and check if you can post.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#5 2009-03-14 11:57:25
- jades
- Member
- Registered: 2009-03-10
- Posts: 14
Re: [resolved] [Solved] 403 error on longer articles
yay – thanks fror that — it appears to have sorted it..
thank you
Offline
Re: [resolved] [Solved] 403 error on longer articles
colak wrote #202709:
Somewere on the top of your htaccess file add
SecFilterEngine Off, save and check if you can post.
Thanx Colak, that sorted it here as well. If you find time, could you explain, why this works? Thank you again.
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: [resolved] [Solved] 403 error on longer articles
It turns off mod_security. Follow the link in Roberts (wet) post.
Offline
#8 2015-04-05 01:08:50
- countytime
- Member
- Registered: 2015-04-05
- Posts: 10
Re: [resolved] [Solved] 403 error on longer articles
Hi— my problem is identical: short things will submit, like style sheets and page templates, but if they get long, I get a 403.
I’ve tried SecFilterEngine Off, which caused Apache to break, so I tried this:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
That keeps Apache from breaking, but does not fix the 403 error, unfortunately. Any ideas would be appreciated. This is a fresh install.
I have Wordpress running on the same server, so I know it’s not a problem with POST data. I’m very comfortable tinkering with the PHP, so if someone could point me towards the file or action causing the problem, I could delve in myself. I really like Textpattern; it was exactly what I was looking for.
Last edited by countytime (2015-04-05 13:27:26)
Offline
Re: [resolved] [Solved] 403 error on longer articles
Hi countytime
could you post your diagnostics which includes the htaccess rules?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#10 2015-04-06 15:43:42
- countytime
- Member
- Registered: 2015-04-05
- Posts: 10
Re: [resolved] [Solved] 403 error on longer articles
Textpattern version: 4.5.7 (r5900)
Last update: 2015-04-02 19:41:58/2014-09-21 11:22:08
Document root: /home/myuser/public_html/mysite
$path_to_site: /home/myuser/public_html/mysite/b
Textpattern path: /home/myuser/public_html/mysite/b/textpattern
Permanent link mode: title_only
Temporary directory path: /tmp
Site URL: mysite.net.net/b
PHP version: 5.3.29
GD Graphics Library: bundled (2.1.0 compatible); supported formats: GIF, JPG, PNG.
Server TZ: America/New_York
Server local time: 2015-04-06 11:39:31
DST enabled?: 1
Automatically adjust DST setting?: 1
Time zone: America/Toronto (-18000)
MySQL: 5.5.32-cll-lve
Locale: en_GB.UTF-8
Server: Apache
PHP server API: cgi-fcgi
RFC 2616 headers: 0
Server OS: Linux 2.6.32-531.11.2.lve1.2.55.el6.x86_64
Admin-side theme: classic 4.5.7
Pre-flight check:
------------------------
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: show_source
------------------------
.htaccess file contents:
------------------------
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
#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
------------------------
Moderator’s annotation:
Edited to add Textile’s bc.. so line breaks inside htaccess aren’t removed.
– Uli –
Last edited by uli (2015-04-06 16:14:47)
Offline
Re: [resolved] [Solved] 403 error on longer articles
Hi countytime,
Try
<IfModule mod_security.c>
SecRuleEngine Off
SecFilterInheritance Off
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
and please let us know if it does make a difference.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#12 2015-04-06 18:06:58
- countytime
- Member
- Registered: 2015-04-05
- Posts: 10
Re: [resolved] [Solved] 403 error on longer articles
No difference. I actually don’t think my server is using mod_security, or if it is, users don’t have the option to change it, because when I type it in, there’s no syntax highlighting on SecRuleEngine Off, etc, but there is on everything else.
Offline