Craft CMS Asked by falcon on March 23, 2021
I have installed craftcms 3 on my localhost. It got installed and the following screen appeared:
If I click on Control Panel I see the following screen
As @user suggested, Just create a virtual host by following the below mentioned steps.
Complete Article : Virtual Host
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/craftcms.local.conf
sudo nano /etc/apache2/sites-available/craftcms.local.conf
Paste the below lines in above file (craftcms.local.conf
)
<VirtualHost *:80>
ServerName craftcms.local
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/craftcms/web/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride ALL
Require all granted
</Directory>
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
sudo a2ensite craftcms.local.conf
sudo service apache2 restart
sudo nano /etc/hosts
add a new hosts at the end of this file like
127.0.0.1 craftcms.local
Open your browser and hit craftcms.local
frontend and craftcms.local/admin
for admin
Correct answer by inrsaurabh on March 23, 2021
You need to set the web server to host from the /web directory. At present it looks like you are serving a folder that contains the Craft folder.
Answered by dmatthams on March 23, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP