Server setup
Environment Setup¶
Ubuntu¶
To set up a LAMP stack under Ubuntu:
sudo apt update
sudo apt install apache2 mysql-server php libapache2-mod-php
sudo a2enmod rewrite
Restart Apache:
sudo systemctl restart apache2
Retrieve the PHP binary to the PATH:
export PATH=$PATH:/usr/bin/php
RedHat / Fedora / CentOS¶
Install MYSQL server, PHP and Apache:
yum update
yum install httpd php mysql-server php-mysql
Windows¶
For Windows, use a WAMP environment such as:
Retrieve the PHP executable path:
where php
Add the PHP binary to the PATH:
SET PATH=%PATH%;C:\wamp64\bin\php\php7.4.26
Virtual Host Configuration¶
To run eQual on a local web server using equal.local as the server name:
- Create a virtual host that uses
/publicas the DocumentRoot.
Example for Apache2:
<VirtualHost *:80>
ServerName equal.local
DocumentRoot "c:/wamp64/www/equal/public"
<Directory "c:/wamp64/www/equal/public/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
/etc/hosts
* Windows: C:\Windows\System32\drivers\etc\hosts
Example:
127.0.0.1 equal.local
- Test the setup by browsing to:
You should see the output:
http://equal.local/index.php?get=demo_hellohello universe.