Page 1 of 1

change DocumentRoot not take effect

Posted: Thu Jan 12, 2023 10:09 am
by harism
Hello All,,

I create new subdomain in my vps (perpus.blitarkota.com),

Then i create new sub directory in public_html for my laravel app. I pull source code with git in my sub directory, so i change the DocumentRoot in vhost from
DocumentRoot /home/admin/web/perpus.blitarkota.com/public_html
to
DocumentRoot /home/admin/web/perpus.blitarkota.com/public_html/sim-perpus/public
Screenshot 2023-01-12 155713.jpg
Screenshot 2023-01-12 155713.jpg (93.27 KiB)
Then i restart the apache service with
sudo service apache2 restart
.

But it's not working, the web still pointing to public_html, there is no changing at all.

Screenshot 2023-01-12 160230.jpg
Screenshot 2023-01-12 160230.jpg (48.07 KiB)
May I know what I missed during the configuration process?

Thanks

Re: change DocumentRoot not take effect

Posted: Thu Jan 12, 2023 3:02 pm
by isscbta
Hi harism,

Take a look at this topic: viewtopic.php?f=19&t=53

Re: change DocumentRoot not take effect

Posted: Fri Jan 13, 2023 4:12 am
by harism
isscbta wrote: Thu Jan 12, 2023 3:02 pm Hi harism,

Take a look at this topic: viewtopic.php?f=19&t=53
thanks for the answer,
i have seen the topic, but in my panel i can't see the option PHP-FPM-74-PUBLIC
Screenshot 2023-01-13 101000.jpg
Screenshot 2023-01-13 101000.jpg (29.18 KiB)
fyi, in some case i can pointing the DocRoot to sub folder, but in this case its not working.

may any solution like clearing the cache of apache? or something?

Re: change DocumentRoot not take effect

Posted: Fri Jan 13, 2023 6:44 pm
by isscbta
You probably didn't select any PHP version during the installation process.
Check out this topic for instructions on how to install it now: viewtopic.php?f=18&t=52