apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am currently stuck with a Magento 2.3.1 CE installation on a VPS running on debian9 on LAMP
The installation went without any problems. But when I try to access the admin url I get the URL not found error.
the magento archive has been uploaded and extracted as the magento system user. All following tasks have been also performed as magento (who is member of www-data). The server has a https certificate (via certbot). And I use my own virtual host file, which has been activated.
Maybe the content is wrong:
<VirtualHost *:80>
ServerName xxxx
ServerAlias www.xxxx.xx
ServerAdmin info@xxxx.xx
DocumentRoot /var/www/html/
ErrorLog /home/magento/logs/error.log
CustomLog /home/magento/logs/access.log combined
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
the .htaccess file delievered with the magento package has not been touched.
I suppose a problem with my apache2 config, or a permission problem. mod rewrite is enabled.
Any hint is much appreciated.
apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1
turns out the admin url was not changed at all. I entered a custom url during installation, still the random generated is saved in /app/etc/env.php
'frontName' => 'admin_9h7wss'
but even trying to access this url generates 404
magento2.3 mod-rewrite
New contributor
add a comment |
I am currently stuck with a Magento 2.3.1 CE installation on a VPS running on debian9 on LAMP
The installation went without any problems. But when I try to access the admin url I get the URL not found error.
the magento archive has been uploaded and extracted as the magento system user. All following tasks have been also performed as magento (who is member of www-data). The server has a https certificate (via certbot). And I use my own virtual host file, which has been activated.
Maybe the content is wrong:
<VirtualHost *:80>
ServerName xxxx
ServerAlias www.xxxx.xx
ServerAdmin info@xxxx.xx
DocumentRoot /var/www/html/
ErrorLog /home/magento/logs/error.log
CustomLog /home/magento/logs/access.log combined
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
the .htaccess file delievered with the magento package has not been touched.
I suppose a problem with my apache2 config, or a permission problem. mod rewrite is enabled.
Any hint is much appreciated.
apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1
turns out the admin url was not changed at all. I entered a custom url during installation, still the random generated is saved in /app/etc/env.php
'frontName' => 'admin_9h7wss'
but even trying to access this url generates 404
magento2.3 mod-rewrite
New contributor
Try to add any php file with test message on magento root and access that file. If you are able to access this file, it meas that there is no issue with virtual host
– user55548
yesterday
are you sure it's the correct admin url? the frontname for the adminhtml is defined inapp/etc/env.php
– Philipp Sander
yesterday
Thank you for the hint. it is weird the env.php still contains the random generated admin url
– Joe F
8 hours ago
add a comment |
I am currently stuck with a Magento 2.3.1 CE installation on a VPS running on debian9 on LAMP
The installation went without any problems. But when I try to access the admin url I get the URL not found error.
the magento archive has been uploaded and extracted as the magento system user. All following tasks have been also performed as magento (who is member of www-data). The server has a https certificate (via certbot). And I use my own virtual host file, which has been activated.
Maybe the content is wrong:
<VirtualHost *:80>
ServerName xxxx
ServerAlias www.xxxx.xx
ServerAdmin info@xxxx.xx
DocumentRoot /var/www/html/
ErrorLog /home/magento/logs/error.log
CustomLog /home/magento/logs/access.log combined
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
the .htaccess file delievered with the magento package has not been touched.
I suppose a problem with my apache2 config, or a permission problem. mod rewrite is enabled.
Any hint is much appreciated.
apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1
turns out the admin url was not changed at all. I entered a custom url during installation, still the random generated is saved in /app/etc/env.php
'frontName' => 'admin_9h7wss'
but even trying to access this url generates 404
magento2.3 mod-rewrite
New contributor
I am currently stuck with a Magento 2.3.1 CE installation on a VPS running on debian9 on LAMP
The installation went without any problems. But when I try to access the admin url I get the URL not found error.
the magento archive has been uploaded and extracted as the magento system user. All following tasks have been also performed as magento (who is member of www-data). The server has a https certificate (via certbot). And I use my own virtual host file, which has been activated.
Maybe the content is wrong:
<VirtualHost *:80>
ServerName xxxx
ServerAlias www.xxxx.xx
ServerAdmin info@xxxx.xx
DocumentRoot /var/www/html/
ErrorLog /home/magento/logs/error.log
CustomLog /home/magento/logs/access.log combined
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
</Directory>
</VirtualHost>
the .htaccess file delievered with the magento package has not been touched.
I suppose a problem with my apache2 config, or a permission problem. mod rewrite is enabled.
Any hint is much appreciated.
apache2.4; php7.2.16 @debian9 squeeze + Magento CE 2.3.1
turns out the admin url was not changed at all. I entered a custom url during installation, still the random generated is saved in /app/etc/env.php
'frontName' => 'admin_9h7wss'
but even trying to access this url generates 404
magento2.3 mod-rewrite
magento2.3 mod-rewrite
New contributor
New contributor
edited 8 hours ago
Joe F
New contributor
asked yesterday
Joe FJoe F
12
12
New contributor
New contributor
Try to add any php file with test message on magento root and access that file. If you are able to access this file, it meas that there is no issue with virtual host
– user55548
yesterday
are you sure it's the correct admin url? the frontname for the adminhtml is defined inapp/etc/env.php
– Philipp Sander
yesterday
Thank you for the hint. it is weird the env.php still contains the random generated admin url
– Joe F
8 hours ago
add a comment |
Try to add any php file with test message on magento root and access that file. If you are able to access this file, it meas that there is no issue with virtual host
– user55548
yesterday
are you sure it's the correct admin url? the frontname for the adminhtml is defined inapp/etc/env.php
– Philipp Sander
yesterday
Thank you for the hint. it is weird the env.php still contains the random generated admin url
– Joe F
8 hours ago
Try to add any php file with test message on magento root and access that file. If you are able to access this file, it meas that there is no issue with virtual host
– user55548
yesterday
Try to add any php file with test message on magento root and access that file. If you are able to access this file, it meas that there is no issue with virtual host
– user55548
yesterday
are you sure it's the correct admin url? the frontname for the adminhtml is defined in
app/etc/env.php
– Philipp Sander
yesterday
are you sure it's the correct admin url? the frontname for the adminhtml is defined in
app/etc/env.php
– Philipp Sander
yesterday
Thank you for the hint. it is weird the env.php still contains the random generated admin url
– Joe F
8 hours ago
Thank you for the hint. it is weird the env.php still contains the random generated admin url
– Joe F
8 hours ago
add a comment |
1 Answer
1
active
oldest
votes
I forgot to adjust the apache2 ssl.conf (/etc/apache2/sites-enabled/000-default-le-ssl.conf)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
ServerName xxxx.xx
SSLCertificateFile /etc/letsencrypt/live/xxxx.xx/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxx.xx/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
ServerSignature off
</Directory>
Now it works like a charm.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Joe F is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269387%2fapache2-4-php7-2-16-debian9-squeeze-magento-ce-2-3-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I forgot to adjust the apache2 ssl.conf (/etc/apache2/sites-enabled/000-default-le-ssl.conf)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
ServerName xxxx.xx
SSLCertificateFile /etc/letsencrypt/live/xxxx.xx/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxx.xx/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
ServerSignature off
</Directory>
Now it works like a charm.
New contributor
add a comment |
I forgot to adjust the apache2 ssl.conf (/etc/apache2/sites-enabled/000-default-le-ssl.conf)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
ServerName xxxx.xx
SSLCertificateFile /etc/letsencrypt/live/xxxx.xx/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxx.xx/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
ServerSignature off
</Directory>
Now it works like a charm.
New contributor
add a comment |
I forgot to adjust the apache2 ssl.conf (/etc/apache2/sites-enabled/000-default-le-ssl.conf)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
ServerName xxxx.xx
SSLCertificateFile /etc/letsencrypt/live/xxxx.xx/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxx.xx/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
ServerSignature off
</Directory>
Now it works like a charm.
New contributor
I forgot to adjust the apache2 ssl.conf (/etc/apache2/sites-enabled/000-default-le-ssl.conf)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine On
ServerName xxxx.xx
SSLCertificateFile /etc/letsencrypt/live/xxxx.xx/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/xxxx.xx/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
ServerSignature off
</Directory>
Now it works like a charm.
New contributor
New contributor
answered 6 hours ago
Joe FJoe F
12
12
New contributor
New contributor
add a comment |
add a comment |
Joe F is a new contributor. Be nice, and check out our Code of Conduct.
Joe F is a new contributor. Be nice, and check out our Code of Conduct.
Joe F is a new contributor. Be nice, and check out our Code of Conduct.
Joe F is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f269387%2fapache2-4-php7-2-16-debian9-squeeze-magento-ce-2-3-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Try to add any php file with test message on magento root and access that file. If you are able to access this file, it meas that there is no issue with virtual host
– user55548
yesterday
are you sure it's the correct admin url? the frontname for the adminhtml is defined in
app/etc/env.php
– Philipp Sander
yesterday
Thank you for the hint. it is weird the env.php still contains the random generated admin url
– Joe F
8 hours ago