Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2021-09-11 11:24:46
- trebor80
- New Member
- Registered: 2021-01-09
- Posts: 6
want change prefs: You don't have permission to access this resource.
Hi all!
The ISP moved my Textpattern page to a new server and the page now has another “Document root”.
In the preferences the “File directory path” and “Temporary directory path” are still stored with the old path, and of course “Diagnostics” complain that those are not writeable.
I tried to change the paths to the new location, but when clicking the Save button, I get an Apache error page saying “Forbidden – You don’t have permission to access this resource”, and the settings are not changed.
I had this problem with 4.8.2. and still have it after the update to 4.8.7.
I searched for a config file including those settings bit did not find one. How can I change those paths?
BR
Robert
Diagnostics output:
Textpattern version: 4.8.7 (cf7ea6562493cd71d8538b565daa874b) Last update: 2021-09-11 10:50:35/2021-09-11 10:49:17 Textpattern path: __TXP-ROOT/textpattern Article URL pattern: messy Production status: live open_basedir: /var/www/vhosts/web1317.login-11.loginserver.ch/:/tmp/ Temporary directory path: /home/www/web1317/html//textpattern/tmp PHP version: 7.4.23 GD Graphics Library: bundled (2.1.0 compatible); Supported formats: GIF, JPEG, PNG, WebP. Server timezone: UTC Server local time: 2021-09-11 11:22:32 Daylight Saving Time enabled?: 1 Automatically adjust Daylight Saving Time setting?: 1 Time zone (GMT offset in seconds): Europe/Vienna (3600) MySQL: 5.5.5-10.5.11-MariaDB-1:10.5.11+maria~bionic (mariadb.org binary distribution) Database server time: 2021-09-11 13:22:32 Database server time offset: 0 s Database server timezone: SYSTEM Database session timezone: SYSTEM Locale: en_US.UTF-8 Site / Admin language: en-us / en-us Web server: Apache PHP server API: fpm-fcgi PHP SSL version: OpenSSL 1.1.1 11 Sep 2018 RFC 2616 headers: 0 Server OS: Linux 4.15.0-144-generic #148-Ubuntu SMP Sat May 8 02:33:43 UTC 2021 x86_64 Admin-side theme: classic 4.8.6 Active plugins: adi_contact-0.7 com_connect-4.6.0 Pre-flight check: ------------------------ The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: opcache_get_status File directory path is not writable: /home/www/web1317/html/files Temporary directory path is not writable: /home/www/web1317/html//textpattern/tmp ------------------------ .htaccess file contents: ------------------------ # BEGIN Textpattern #DirectoryIndex index.php index.html <IfModule mod_rewrite.c> RewriteEngine On # Enable the `FollowSymLinks` option below if it isn't already. #Options +FollowSymlinks #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> <IfModule mod_mime.c> AddType image/svg+xml svg svgz AddEncoding gzip svgz </IfModule> # For additional Apache-compatible web server configuration settings to enhance # site performance and security, we recommend: # https://github.com/h5bp/server-configs-apache/blob/master/dist/.htaccess # END Textpattern ------------------------ Charset (default/config): utf8/utf8 character_set_client: utf8 character_set_connection: utf8 character_set_database: utf8 character_set_filesystem: binary character_set_results: utf8 character_set_server: utf8mb4 character_set_system: utf8 character_sets_dir: /usr/share/mysql/charsets/ collation_connection: utf8_general_ci collation_database: utf8_general_ci collation_server: utf8mb4_general_ci 18 database tables: OK 10 custom fields: custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10 (10) /admin-themes/classic/classic.php: f33d57f5d3e1d88696283a6c9863026e /admin-themes/hive/assets/js/autosize.js: dcc7d7e77a781c87c90cfc01eff05d1d /admin-themes/hive/assets/js/darkmode.js: 256ec5c3f1b984fcc388949c4410f346 /admin-themes/hive/assets/js/main.js: 094b096815ea13e3a1f48dbc04da8223 /admin-themes/hive/hive.php: d42b5731f2a473766c8c3309a1cb423c /admin-themes/hiveneutral/assets/js/autosize.js: dcc7d7e77a781c87c90cfc01eff05d1d /admin-themes/hiveneutral/assets/js/darkmode.js: 256ec5c3f1b984fcc388949c4410f346 /admin-themes/hiveneutral/assets/js/main.js: 094b096815ea13e3a1f48dbc04da8223 /admin-themes/hiveneutral/hiveneutral.php: 70dca70761528b2c7b7b5a4eb83114ef /include/txp_admin.php: 175faa69c56e048fe841da4d23c8c876 /include/txp_article.php: f638e24e3374470a68c20cc5a8c0ca9b /include/txp_auth.php: ce333a295c45b2406674546c07ed4d9b /include/txp_category.php: 925833a4ca04a68968973fd21375b09a /include/txp_css.php: 5adb7ec1785bfd5ec5a1ccb2fea74071 /include/txp_diag.php: 7ba999e4e5c00ec5321aa8fb3d3f13f7 /include/txp_discuss.php: febdbf1b129e09c9a727e8e3fae36bb4 /include/txp_file.php: d40c99c714d065e9e50fe2a063604d79 /include/txp_form.php: d5f553b50dfbdbe6f09e2ab80535ef95 /include/txp_image.php: ecbca018e4691353641d2ec55e7b4b16 /include/txp_lang.php: 871c8db6775964b788e89bc1d11cebd1 /include/txp_link.php: 546f92d2ce9ff836213f039030207871 /include/txp_list.php: 4c1719e354a2ed16c2a829b9c21f10c3 /include/txp_log.php: 7df26d2060c8873464c2f5ee72a88f58 /include/txp_page.php: 597014f4a59a3700979cd81fd49fb1c2 /include/txp_pane.php: f35a7ac422e11a075c506ce26422338f /include/txp_plugin.php: 4ff643d3bec1baee9702647c1f7c4c0d /include/txp_prefs.php: d1bbb2368c97c6566d4e59598ffd2a95 /include/txp_section.php: b66040c372b01c4dcb60b946af3edc70 /include/txp_skin.php: 6a5f5a0aa057cc15e468fd5b8958c75e /include/txp_tag.php: 838148daa0e57c96a36fc3615eb1f2e1 /index.php: 4f2d6ba768bd6c0d768a44aca0f56b42 /lib/admin_config.php: f49f7818a0ef263106307828e49a374f /lib/array_column.php: 154ae62342164fe4d727b28813f268b6 /lib/class.thumb.php: dafecad5fc7a956a6c3ef715948feb50 /lib/class.trace.php: 055e3bc1f8d3217aec152fa7e6216b1d /lib/classTextile.php: 2fe143fd509967db9ff3d5b37e9ea9fc /lib/constants.php: 033a854c915c15a1a599668b860f4ff3 /lib/IXRClass.php: a1b525b4a9ed12dcb5677d5232a3d92e /lib/PasswordHash.php: 66a8aa4b2d6e0527877a797907efc035 /lib/taglib.php: 5b9f988df9a27c72b5612133b375bf30 /lib/txplib_admin.php: 522d2905e3b5d32a74edfc5da5ffd65a /lib/txplib_db.php: 8431b0c28d43c154d9e0feeac88a334b /lib/txplib_forms.php: 5372c30bd94bd9629d077d8d602843a6 /lib/txplib_head.php: 4d7e8fd5b8393581bf0a539f8851cc83 /lib/txplib_html.php: 439bcf8f65ee322051c5518c8a19edff /lib/txplib_misc.php: d58aea9f13a477e31ded70f6d72f2962 /lib/txplib_publish.php: 541f2ed23e428726b58845d943b6deb5 /lib/txplib_theme.php: eded2b9569ab67094bf98d6793d4d3b5 /lib/txplib_update.php: 2d75381e6c01a41db317fc533127fcd9 /lib/txplib_validator.php: a64415802a1af930f41fd4a03db9bbae /lib/txplib_wrapper.php: 54f7c8c03791267b361ce476efedfc56 /publish/atom.php: b525b924d579195a3b928aa08bfa2041 /publish/comment.php: 29b960eab16b70911f253f281ed90ce8 /publish/log.php: b1aa28de0e4d08e2f5d17e4e5bbad372 /publish/rss.php: caee69f270195edf507d27865a91ddc5 /publish/search.php: 2424d1eb22587e81b50b33a4c40fb790 /publish/taghandlers.php: 6332e2c52579297e7696288a82eaa17c /publish.php: 86b740b2f66a49c647c76994cd959c92 /textpattern.js: 9c903025d21bc097343f9c73920f4e91 /update/_to_4.0.3.php: e97a21f52de786ef0f5abdd54f3292f1 /update/_to_4.0.4.php: 8450d37d6c5870cd6548b28e147c8f92 /update/_to_4.0.5.php: 1c963dd166beb405e249a107b6985d9b /update/_to_4.0.6.php: dcd15010df2204c235b62ef598ce1d5d /update/_to_4.0.7.php: 8d6ecbdf4c6d98f936d9ed710d64a96f /update/_to_4.0.8.php: c309ed1d2a8a7fff9d783b055f460908 /update/_to_4.2.0.php: d108f6077a3ae183b155c2d06cf01f71 /update/_to_4.3.0.php: c3f4cdbd1a788a25571d93e260bef1ef /update/_to_4.5.0.php: 7a12d3fc88089cd5109777c9c08949e8 /update/_to_4.5.7.php: c289d3a341e58f694b11fd9591c7a843 /update/_to_4.6.0.php: 93b3e3792e7716aa7f1678dfb6bdb11a /update/_to_4.7.0.php: 6c87e926fbb55151079b08a3c18baab6 /update/_to_4.7.2.php: 72645198acb429a2ef8e55c85b77336e /update/_to_4.8.0.php: 537ac72a0d5441b7d2a3a0eced70c823 /update/_to_4.8.4.php: 10705b6799c5af814c55dd9221905fdb /update/_update.php: bd49103f1bac1580998c69b622b4e12a /vendors/blueimp/fileupload/jquery.fileupload.js: 7cdb39f220e38d9cc864c6329fd71097 /vendors/jquery/jquery/jquery.js: dc5e7f18c8d36ac1d3d4753a87c98d0a /vendors/jquery/jquery-ui/jquery-ui.js: c15b1008dec3c8967ea657a7bb4baaec /vendors/Netcarver/Textile/DataBag.php: 67ab988e7ab1d072937acbbcb023a288 /vendors/Netcarver/Textile/Parser.php: ca95b629865b6fc8a03d2a6d57e5e164 /vendors/Netcarver/Textile/Tag.php: 73f14c01329e27998a213b7e5b79e620 /vendors/PrismJS/prism/prism.js: 3c7d7df83768c66449afc3fc98452bf0 /vendors/Textpattern/Adaptable/AdapterInterface.php: 664f6cb620fad7aacb52f33cf7fa9324 /vendors/Textpattern/Adaptable/Providable.php: 886138139a61b5cec21d76c8a4357196 /vendors/Textpattern/Adaptable/ProvidableInterface.php: 4becd30d4db3f9bce208e766ebbfa196 /vendors/Textpattern/Admin/Paginator.php: b9d80a1cbb93c8c6d83a8e408ca9babd /vendors/Textpattern/Admin/Table.php: f2d80c33fde137546403bd3a6faceef5 /vendors/Textpattern/Admin/Theme.php: d0f37f91ff46c17fca0b3822cc735eee /vendors/Textpattern/Admin/Tools.php: 95246c2448681fafc488648fb618daf6 /vendors/Textpattern/Container/Container.php: 357038299be54605df6167e86c8a8b2c /vendors/Textpattern/Container/ContainerInterface.php: 64a0a6447b71809e674b27630671a4b7 /vendors/Textpattern/Container/FactorableInterface.php: 42696e2952f70055662c3d4dd880161a /vendors/Textpattern/Container/FactoryInterface.php: 3e4744bb0cdace0f0f2ba6ad5514b86f /vendors/Textpattern/Container/ReusableInterface.php: 736c7cffc0647a6f0d6f000e9e77d5f3 /vendors/Textpattern/Date/Timezone.php: 0bc973099c7aaf60c7311646dab25fe7 /vendors/Textpattern/DB/Core.php: 1b794a27b6eefb51738e8282bf50b12a /vendors/Textpattern/Filter/Exception.php: 0be79257edf2af8ba084027857cd47d3 /vendors/Textpattern/Filter/FilterCallable.php: e868c6de3b6aa82a5f0ab18a264aa1d6 /vendors/Textpattern/Filter/StringFilter.php: c2245b95fac4fef89b793454f9271a2e /vendors/Textpattern/Http/Request.php: 1c23cbeb41f715f9cbbda41702f2b93c /vendors/Textpattern/Import/TxpXML.php: 092b31a7df4bfff9eb9f48f74c6f22fd /vendors/Textpattern/Iterator/FileIterator.php: d0d8a3fdd53226128b3b4d7bfde6162f /vendors/Textpattern/Iterator/RecDirIterator.php: d799e8cafa9f5d6b9f0559dede0f0930 /vendors/Textpattern/Iterator/RecFilterIterator.php: 4219de11210e5c363dff1b7eab177168 /vendors/Textpattern/Iterator/RecIteratorIterator.php: 57fae199c3c054394d836e478d5aed55 /vendors/Textpattern/L10n/Lang.php: c9654743a51d5135cec437839c940c75 /vendors/Textpattern/L10n/Locale.php: 88a3e9b375b27ce9b67c083716efda0e /vendors/Textpattern/Loader.php: eef8d18310014176dbf80abdc3245a19 /vendors/Textpattern/Mail/Adapter/Mail.php: f590b9090b90345d719fa5fa5a0de67f /vendors/Textpattern/Mail/AdapterInterface.php: e22125cf48a1dea1205ef61e0a321570 /vendors/Textpattern/Mail/Compose.php: 04501c12bc43a815b16e4dea57ac8329 /vendors/Textpattern/Mail/Encode.php: 12277277a9cc9d779920801c5d5c86a7 /vendors/Textpattern/Mail/Exception.php: c5f6b67a0f671e7fd9c80d9f7e9591f9 /vendors/Textpattern/Mail/Message.php: 2995164ef0b55d0ca6fc5f815f5d36a3 /vendors/Textpattern/Module/Help/HelpAdmin.php: a4f954ba1d0766b8e01a57e51341d2cc /vendors/Textpattern/Password/Adapter/PasswordHash.php: 34d90a4e25d035c4b2914b4765c50e04 /vendors/Textpattern/Password/AdapterInterface.php: 24a6aac9ec515e50828ae187c385e908 /vendors/Textpattern/Password/Generator.php: 533ffd2b301818f80a14c2466fc17000 /vendors/Textpattern/Password/Hash.php: 62fa1e081de7c27c6e92a6d2ca0c1e12 /vendors/Textpattern/Password/Random.php: 204e98506d50c304f701a21f951e7ce0 /vendors/Textpattern/Plugin/Plugin.php: f5875fd1a5516de950834cc761b324c4 /vendors/Textpattern/Search/Filter.php: 32e1c50269a3f569316d50162ce36769 /vendors/Textpattern/Search/Method.php: f34dc37728d651fd58d14ea2dd5edd64 /vendors/Textpattern/Security/Exception.php: 8fcde8fa758a194a1bade31c4ce0843c /vendors/Textpattern/Security/Filter.php: e09f6a9451d34948e3ec39c26add77cb /vendors/Textpattern/Server/Config.php: 9d8369e07b842925fb8ab4257ae54356 /vendors/Textpattern/Server/Files.php: 1071954359d90f7e55a6ec1ab4564443 /vendors/Textpattern/Skin/AssetBase.php: 48c19ff7f53ba38400555b51903c26a2 /vendors/Textpattern/Skin/AssetInterface.php: f0b56cc829d4a6ba8b99964ac83e5af8 /vendors/Textpattern/Skin/CommonBase.php: 8aa7b5ce9466f4186969a5f5e7a831c3 /vendors/Textpattern/Skin/CommonInterface.php: d85c2aa72dc03ff47d85767874ac605e /vendors/Textpattern/Skin/Css.php: a8a73758b7b64e885adfa90b79fa243f /vendors/Textpattern/Skin/CssInterface.php: 2c9164a0a4d00b75bd5de6ccb1b41b0d /vendors/Textpattern/Skin/Form.php: 79f1032e8e50f077d8e4304e00a87afa /vendors/Textpattern/Skin/FormInterface.php: aaff3a01d34a3cd577491c51eda0fb20 /vendors/Textpattern/Skin/Page.php: 21738f8140c9d090a327f5397ca6cde3 /vendors/Textpattern/Skin/PageInterface.php: d7fdbdc906f6075b1919cf6c09173ed2 /vendors/Textpattern/Skin/Skin.php: 15720823bc010f13adae978d4c4262c1 /vendors/Textpattern/Skin/SkinInterface.php: d31aa0c304966adc8b5bdd808d17bd8a /vendors/Textpattern/Tag/Registry.php: f69f20a5f410f38effbb6fb84b434f15 /vendors/Textpattern/Tag/Syntax/Authors.php: c2ee92bf395bd982a15e53382d2c2e8f /vendors/Textpattern/Tag/Syntax/File.php: ab4e5c346f2c3e09acb894c49a4662e3 /vendors/Textpattern/Tag/Syntax/Image.php: 7eaa48ab3417fda0264657e2747b3fe2 /vendors/Textpattern/Tag/Syntax/Link.php: 6703fe59a950f5e781330f866b70b667 /vendors/Textpattern/Tag/Syntax/Partial.php: 9ed709821b0db8f6e96e5b4f908431f1 /vendors/Textpattern/Textfilter/Base.php: c52f74a5b727b0c2b126b344771387d3 /vendors/Textpattern/Textfilter/Constraint.php: 8ff4f632945ec98734d267b2a1a106b1 /vendors/Textpattern/Textfilter/Nl2Br.php: 65efa326d46aff56d5ce2b55e150c61c /vendors/Textpattern/Textfilter/Plain.php: 7f6dde22a5fb00df58c9a5c671c06161 /vendors/Textpattern/Textfilter/Registry.php: 01333cc6f858176b4d3c129f0602b979 /vendors/Textpattern/Textfilter/TextfilterInterface.php: 9d294905d9e215660debf60d6bd043cf /vendors/Textpattern/Textfilter/Textile.php: d96f2fa91e34fb2a749051160ee6f233 /vendors/Textpattern/Textile/Parser.php: 3e2c75ff2b8a996372244b430ba6286a /vendors/Textpattern/Textile/RestrictedParser.php: cbb08fb5eb4f05811e829d67d98d7d3e /vendors/Textpattern/Textpack/Parser.php: 36aca545abbb11602440c5308308cb57 /vendors/Textpattern/Textpack/String/Iterator.php: 499348e6506be2e58823f14c10eed5c5 /vendors/Textpattern/Textpack/StringInterface.php: 30020b416e0bbc8f4c565d4c9c522027 /vendors/Textpattern/Type/StringType.php: 6cea1815ab5b9aca07c71bf2d32dfb2d /vendors/Textpattern/Type/TypeCallable.php: e445cbcc5d7ce6461a5c1f5d75b3656e /vendors/Textpattern/Type/TypeInterface.php: 5bafab64f49cd13313b789fcad43c00b /vendors/Textpattern/Validator/BlankConstraint.php: 084fd2d840a73cbea2e50738bebad53e /vendors/Textpattern/Validator/CategoryConstraint.php: 0e7171061525f15f8f65d9c72cec365b /vendors/Textpattern/Validator/ChoiceConstraint.php: d04a3f8476ca4b55157bdda09a977393 /vendors/Textpattern/Validator/Constraint.php: 1f297687f15983086f718e373460d661 /vendors/Textpattern/Validator/FalseConstraint.php: 9393bc12df707cabc240a222306949af /vendors/Textpattern/Validator/FormConstraint.php: 489492a30800888359a7f2f2458643a5 /vendors/Textpattern/Validator/SectionConstraint.php: df5545e05eaf9dc9e044070b3abb5abd /vendors/Textpattern/Validator/TrueConstraint.php: dad7059eff628fcb43173866cdeb8e66 /vendors/Textpattern/Validator/Validator.php: 31c5889c82b89241071a36c131130e84 /vendors/Txp.php: 41becb1134a7415635dcd5ce2149621e /../css.php: f4b63871614fc88c5645dc9a64fb0c8d /../index.php: 1d237ed34b219970d27dc9a23f4c59c7 ------------------------
Last edited by trebor80 (2021-09-11 11:27:42)
Offline
Re: want change prefs: You don't have permission to access this resource.
Sounds like your ISP is complaining about some content that triggers their filters.
There are posts around here about temporarily turning off mod_security in your .htaccess file. That might be worth a shot. If that works, contact your host, send them an example of your page content and ask if they can tweak the filters.
Best guess.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#3 2021-09-11 14:55:40
- trebor80
- New Member
- Registered: 2021-01-09
- Posts: 6
Re: want change prefs: You don't have permission to access this resource.
Thank you for your guess Bloke,
unfortunately disabling mod_security didn’t change it. I did this with
<IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule>
in the root dir’s and also the textpattern/.htaccess. Hope that was what you thought about.
thanks
Robert
Offline
Re: want change prefs: You don't have permission to access this resource.
Just an idea. Did you consider installing a new txp instance in a subdirectory to see how that works in your server setup?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: want change prefs: You don't have permission to access this resource.
Hmm, yeah, that’s what I thought it might be. Shame it didn’t work.
Do you get that error thrown only on the Prefs page? Or does it do the same if you save an article (you’ll have to check the browser inspector for that as it’s an Ajax save) or when creating a new article/link, for example?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: want change prefs: You don't have permission to access this resource.
Could be a distraction…but open_basedir
doesn’t appear too much these days…I’d wager if that’s enabled then there’s something a bit screwy going on with that or safe_mode
.
Edit: regarding temp directory reporting as not writable, the double forward slash should be OK on lax servers, but if it’s a very twitchy server, that might throw it off.
Last edited by gaekwad (2021-09-13 13:05:06)
Offline
#7 2021-09-13 16:56:17
- trebor80
- New Member
- Registered: 2021-01-09
- Posts: 6
Re: want change prefs: You don't have permission to access this resource.
Hi! Sorry for being quiet for some time.
I did not get the error anywhere else so far. Creating, editing and saving articles work. No clue about browser inspector, sorry.
In the meantime I did manage to change the directory settings directly in the database using phpmyadmin. Complaints about read only directories are now gone, and file uploads etc. work again. But still I am not able to change settings for the same reason.
I will try installing textpattern from scratch, if we find no other solution until I find some time for this.
Last edited by trebor80 (2021-09-13 16:59:10)
Offline
Re: want change prefs: You don't have permission to access this resource.
trebor80 wrote #331595:
I will try installing textpattern from scratch, if we find no other solution until I find some time for this.
You could do that and then replace all tables except the txp_prefs one. To do this you have to back-up twice. One with all the tables and a second time with all except the txp_prefs one.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: want change prefs: You don't have permission to access this resource.
I remember we discussed the idea of making a portable site backup some time ago, similar to the way our Wordpress friends do it: export the whole site to an archive, and have it importable at a new (blank) site. I can’t recall what the consensus was, however.
Offline
#10 2021-09-15 11:16:33
- trebor80
- New Member
- Registered: 2021-01-09
- Posts: 6
Re: want change prefs: You don't have permission to access this resource.
The Problem is solved at the hoster. It was some issue with the firewall and they managed to find a hint it in their logs.
Thank you nevertheless
Robert
Offline