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
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityI 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
DEFAULT_SITE_URL="craftcms.local"
– inrsaurabh
Oct 29 '19 at 13:08
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.