Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Thomas Taschler Posted September 27, 2023 Posted September 27, 2023 Hi, i just installed a fresh installation of Invision Community v4.7.13 on a self hosted server. Installation went smooth and everything. Then I wanted to activate the Friendly URLs. So I downloaded the auto-generated file and uploaded it to my forum root, renaming it to .htaccess This is where my problem starts. The forum software won't find/accept the .htaccess file What can I do to make it work?
Daniel F Posted September 27, 2023 Posted September 27, 2023 Are you sure that you’re using Apache and not Nginx ?
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 (edited) Yes, I'm running Apache 2.4.52 and PHP 8.2.10 on Ubuntu 22.04 Edited September 27, 2023 by Thomas Taschler
Adlago Posted September 27, 2023 Posted September 27, 2023 Check htaccess file permissions. It should be 0644
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 (edited) I set the file permissions to 0644, but still the same error. Filezilla: Edited September 27, 2023 by Thomas Taschler
Adlago Posted September 27, 2023 Posted September 27, 2023 Are you sure the file you uploaded has content? Open this file with notepad++ and check contents.
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 (edited) Yes, this is the content of the file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map|webp)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> This is the file the "download this file"-link in the first post provides. The necessary mods should also be ok Edited September 27, 2023 by Thomas Taschler Also checked mods
Adlago Posted September 27, 2023 Posted September 27, 2023 (edited) I assume that after uploading a htaccess file, you then saved a change here. Maybe you should start Support section in ACP and check if there is no error registered there. Also, check in your server PHP modules management - this is for my server Edited September 27, 2023 by Adlago
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 (edited) Do you mean this page? Seems fine. I did not modify the content of the .htaccess file. The code I posted earlier was obtained via Filezilla / View File. Those are my installed php modules: [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext gmp hash iconv intl json ldap libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pgsql Phar posix random readline Reflection session shmop SimpleXML soap sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache Edited September 27, 2023 by Thomas Taschler Installed PHP modules
Adlago Posted September 27, 2023 Posted September 27, 2023 6 minutes ago, Thomas Taschler said: I did not modify the content of the .htaccess file. The code I posted earlier was obtained via Filezilla / View File. Try this file, and rename it htacces.txt
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 2 minutes ago, Adlago said: Try this file, and rename it htacces.txt 297 B · 0 downloads Tried this file, still the same error.
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 (edited) 3 minutes ago, Jim M said: Is mod_rewrite installed on Apache? Yes, this is my phpinfo() output: Edited September 27, 2023 by Thomas Taschler
Jim M Posted September 27, 2023 Posted September 27, 2023 2 minutes ago, Thomas Taschler said: Yes, this is my phpinfo() output: You would need to contact your hosting provider then if you're having issues with this. By all intense of purposes, you should be able to run it.
Thomas Taschler Posted September 27, 2023 Author Posted September 27, 2023 I solved the problem! It was an Apache2 configuration error... I am sorry for wasting your time... Solution: Add at the end of /etc/apache2/apache2.conf the following code: <Directory "/path/to/your/site"> AllowOverride All </Directory> Then restart Apache and it should work. Adlago 1
Recommended Posts