- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
can not install in sub directory
Hi,
I was trying to install magento 2.4.2 in a sub directory. Installation completes successfully however I am unable to load front end as well as admin panel.
When I install it in a root directory it's working fine.
Is magento can not be installed in sub directory since 2.4.2 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
Can you provide following information?
1) Which operating system are you using.
2) Which server are you using Nginx or Apache
3) Your virtual host configuration file.
It may help to debug.
Problem Solved Click Accept as Solution!:Magento Community India Forum
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
Hi,
1) I am using Linux kernel version 3.10.0-1062.1.1.el7.x86_64
2) Apache 2.4
3) I am on a shared hosting environment hence I don't have virtual host file.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
Also I wanted to add Magento 2.4.0 version worked well on the same server on which I am trying to install Magento 2.4.2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
I just wanted to follow up on this.
Can anyone from Magento team reply here ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
I am having the same problem as above.
My setup is quite different.
Cent OS 7.9 (v92.0.10),
PHP 7.3.27
Apache 2.4.46
The previous poster didn't mention this so I don't know if the issue was the same but I can see there is no index.php file in the subdirectory and the .htaccess file has not been updated to match the sample and is still the default:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/pub/
RewriteCond %{REQUEST_URI} !^/setup/
RewriteCond %{REQUEST_URI} !^/update/
RewriteCond %{REQUEST_URI} !^/dev/
RewriteRule .* /pub/$0 [L]
DirectoryIndex index.php
The env.php file etc is all populated, the database is complete and I got a successful install message.
Thanks in advance,
Si
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
Hi,
To make it work in subdirectory, you can use it in this way:
Add the pub/ in the baseurl in database table core_config_data .
For example: if your URL is http://example.com/abc/ , then you can update it to http://example.com/abc/pub/ .
Then it will be open on browser by hitting the URL: http://example.com/abc/pub/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
Hi @areeb_ali1
but wouldn't the point be you want it to load hitting http://example.com/abc/
rather than http://example.com/abc/pub/ ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
Yes,
But admin panel won't load.
when you try to access http://example.com/abc/pub/[[admin_folder]] it redirects to http://example.com/abc/[[admin_folder]]/admin and gives opps!! page not fouund.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: can not install in sub directory
I have managed to get a 2.4.1 in on the same domain/configuration which would not accept 2.4.2. - are there any obvious differences between the 2 versions that could cause it?