cancel
Showing results for 
Search instead for 
Did you mean: 

HELP! running magenta from subfolder and it will not work??

HELP! running magenta from subfolder and it will not work??

I have installed magento 2 in a subfolder  /var/www/magento2/

 

i want it to be seen from var/www/ 

 

I changed dir in store customize for both http and https

 

I copied .htaccess  and the index.php. 

 

i changed the dir of line 22 ... 

try {

require __DIR__.’/app/bootstrap.php';
}

 

to this : require __DIR__.’/magento2/app/bootstrap.php';

 

 

Now an error comes up 

Parse error: syntax error, unexpected '';' (T_ENCAPSED_AND_WHITESPACE) in /var/www/maniacopenhagen.dk/public_html/index.php on line 22

3 REPLIES 3

Re: HELP! running magenta from subfolder and it will not work??

Hi @karebuje,

 

The error you've mentioned at the end is becasue when you changed the file, probably, you made a mistake.

Take a look to the line 22.

Re: HELP! running magenta from subfolder and it will not work??

hi @damian Culotte 

 

thanx for the quick response...

 

The error suggest that - unexpected '';' -  but the ; is already there.. 

 

all I alter is the folder /magento2/ And that is the correct folder name

Re: HELP! running magenta from subfolder and it will not work??

Hi @karebuje,

 

Can you sahre the whole code of that file?