MarkUpCMS requires PHP version 8.1 or higher to be installed on a server. Additionally when installing on a apache webserver, the .htaccess file should be overwriteable to ensure proper configuration. Note that it has been exclusively tested on Apache servers.
FTPSSHXAMPPAssuming you are already connected to a FTP server.
Assuming you are already logged in using SSH.
user@server:~$ cd /etc/apache2
user@server:/etc/apache2$ nano apache2.conf
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
user@server:/var/www$ git clone git@github.com:timdanielscode/MarkUpCMS.git
user@server:/etc/apache2/sites-available$ nano 000-default.conf
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/MarkUpCMS/public
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alrt, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#Loglevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf"
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
user@server:/etc/apache2/sites-available$ service apache2 restart
Assuming you already installed XAMPP.
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/xampp/htdocs/MarkUpCMS/public"
<Directory "C:/xampp/htdocs/MarkUpCMS/public">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Assuming you already have a database.
host=
db=
user=
password=
Follow the steps below to setup the database without the config.ini file.
public static function try() {
if(file_exists('../config/database/config.ini');
$ini = parse_ini_file('../config/database/config.ini');
return new DB($ini['host'], $ini['user'], $ini['password'], $ini['db']);
}
}
public static function try() {
return new DB($ini['host'], $ini['user'], $ini['password'], $ini['db']);
}
public static function try() {
return new DB('your-host', 'your-database-username', 'your-database-password', 'your-database-name');
}
<?php
namespace middleware;
use database\DB
class UserMiddleware {
private $_database = 'your-database-name';
If you encounter any of these issues, change the permissions of the public folder.
When creating new js or css files and get one of the following php errors:
Or uploading any media files where the file is not being uploaded correctly.