Hello @sadegh.azimmohseni,
Just to clarify, our documentation explains how to add a custom PHP application to your installation to be served by Apache. It is not related to CanvasLMS app itself. Have you faced any issue following this documentation? The main steps would be:
sudo mkdir /opt/bitnami/apps/myapp
sudo mkdir /opt/bitnami/apps/myapp/htdocs/
sudo mkdir /opt/bitnami/apps/myapp/conf
- Create and edit the
/opt/bitnami/apps/myapp/conf/httpd-prefix.conf
file and add the lines below to it:
Alias /example/ "/opt/bitnami/apps/myapp/htdocs/"
Alias /example "/opt/bitnami/apps/myapp/htdocs/"
Include "/opt/bitnami/apps/myapp/conf/httpd-app.conf"
- Create and edit the
/opt/bitnami/apps/myapp/conf/httpd-app.conf
file and add the content below to it. This is the main configuration file for your application, so modify it further depending on your application’s requirements.
<Directory /opt/bitnami/apps/myapp/htdocs/>
Options +FollowSymLinks
AllowOverride None
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
NOTE: If your application uses .htaccess files, you should change the AllowOverride None option to AllowOverride All. Find out how to move the .htaccess file content to the main server configuration file.
- Once you have created the files and directories above, add the following line to the end of the main Apache configuration file at /opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf, as shown below:
Include "/opt/bitnami/apps/myapp/conf/httpd-prefix.conf"
We don't have a specific Laravel guide. I think this site could help you:
Regards.