# Apache2 problem for CMS

**URL:** <https://forum.infinityfree.com/t/apache2-problem-for-cms/15835>\
**Category:** Hosting Support\
**Created:** [May 12, 2019, 9:42am UTC](https://forum.infinityfree.com/t/apache2-problem-for-cms/15835 "2019-05-12T09:42:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon65262851](https://forum.infinityfree.com/letter_avatar/anon65262851/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon65262851](https://forum.infinityfree.com/u/anon65262851)\
**Post date:** [May 12, 2019, 9:42am UTC](https://forum.infinityfree.com/t/apache2-problem-for-cms/15835/1 "2019-05-12T09:42:10Z")

</div>

Hello,

The URL of my website is huntyria.ml

What I see is:  
URL rewrite - .htaccess enabled → NO  
Try typing sudo a2enmod rewrite in an SSH command prompt.

Add these lines:

\<Directory “/ var / www / html”\>  
AllowOverride All  
\</ Directory\>

between the tags, in the apache2 configuration file located here /etc/apache2/sites-available/000-default.conf

I use this CMS: Mineweb  
I use this FTP: WinSCP

Thank you for helping me

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [May 12, 2019, 9:49am UTC](https://forum.infinityfree.com/t/apache2-problem-for-cms/15835/2 "2019-05-12T09:49:12Z")

</div>

Hi  
Shell scripts and shell commands are disabled for security reasons  
any kind of shell access is blocked

Nor do you have permission to configure the server

But **you can** creating .htaccess file inside the htdocs folder that will run the URL RW  
Check well it code and that is located inside htdocs

If your scripts tries to write outside htdocs:  
Scripts can only write to the **htdocs** directories they are in. Any directories outside the htdocs dir cannot be written - due to the open\_basedir restriction

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [June 11, 2019, 9:49am UTC](https://forum.infinityfree.com/t/apache2-problem-for-cms/15835/3 "2019-06-11T09:49:16Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
