Article 5JJW4 New LAMP, virtual host container, change Apache2 root, best practice?

New LAMP, virtual host container, change Apache2 root, best practice?

by
pavllvap
from LinuxQuestions.org on (#5JJW4)
Beginner with a new LAMP on Gecko Static Plasma.
I have a root partition btrfs and a home xfs.
LAMP as default settings so I have /srv/www/htdocs with test html & php files only.

Was previously reading about Flask, Laravel and Python and the advice in that arena was always (repeat always) run development web within a virtual container of some sort.

Tried reading about virtual hosts related to Leap 15.2 and came up with some old stuff from other distros but was unable to sift it out to make sense for my situation.

My questions are ...
Is it good/best practice to create a virtual container for some website development work (not public/production for a LONG time)?

Is it a good idea to change the root directory for all work(html, python etc) to /home/somedirectory ?

And I quote from /etc/apache2/vhosts.d/vhost-ssl.template file .....

Quote:
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
And having been warned, my teeth are chattering ....

The OpenSuse documents are very thin for beginners. Those for other distros (inc Windows) 'seem' to offer conflicting advice.

Is there a place to go to read ?

In the end my aim is to learn and practice with the conversion of a MS Access database into a test/development simpler version using SQL,html,php and a bit of ajax/javascript.
Very long term practice project ... no intentions of worrying Google !latest?d=yIl2AUoC8zA latest?i=efk-y2pcTlw:-xfMzMIhtKQ:F7zBnMy latest?i=efk-y2pcTlw:-xfMzMIhtKQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=efk-y2pcTlw:-xfMzMIhtKQ:gIN9vFwefk-y2pcTlw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments