_       _       
  (_) ___ | |_ ____
  | |/ _ \| __|_  /
  | | (_) | |_ / / 
 _/ |\___/ \__/___|

Apache configuration notes for Jotz CMS

This refers to a default installation of Apache version 2.4.54 on Debian 11.

To allow configuration of individual directories in the Jotz CMS file structure, I added the following lines to "/etc/apache2/apache2.conf" starting at line 176:

<Directory /var/www/html/jotz/>
    AllowOverride All

Then, to apply the updated configuration, I restarted apache using the following command (as root):

service apache2 restart

So far, that makes the main directory function, but for some reason the "cms" subdirectory reports "500 Internal Server Error".

Notes on Jotz CMS file/directory structure:

Symlink to PHP file in parent directory that creates file in current directory

I created the file "/var/www/html/hello.php" containing the following:


echo '<p>Hello</p>';

$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "John Doe\n";
fwrite($myfile, "bish");
fwrite($myfile, "bash");
fwrite($myfile, "bosh");


Then, I created a sub-directory "test" and a symbolic link within it called "blah.php" as follows:

mkdir test
cd test
ln -s -r ../hello.php blah.php

Then, in browser, I opened URL "localhost/test/blah.php" which displayed the web page and also created the file "newfile.txt" in the "test" subdirectory.

i.e. The file "/var/www/html/test/newfile.txt" contains the following: