I am currently having a problem setting up my virtual environment for my LAMP stack. The site I'm developing is a web application written in PHP and uses MySQL for the database. Right now, I have one virtual machine running inside Virtualbox with CentOS. I ran the web / mysql server in it and set up my code folder setting using GIT.
Currently, the host OS (Mac / Windows) is configured in conjunction with the SAMBA share to access the code inside the GIT folder on the virtual machine. From this, I use SourceTree and PHPStorm to manage files and commit. File / folder permissions are set using a force mask (which is not possible using NFS)
(Samba server on CentOS (guest os), Samba client on Windows / Mac (host os))
Problems arise when I start the environment this way. My GIT repository has weird bugs and corruption (disabling HEAD, index files distorting / too small, corrupting other .git files). There is also a problem where file names are case insensitive and the CentOS Guest OS launches it as case sensitive.
Ultimately, my questions are:. How to configure my development environment for code execution inside my CentOS guest OS, I have access rights to files, if I donβt commit / execute, let me set up an environment that will correspond to my multi-server environment (i.e. multiple Virtualbox instances) , and run it in the absence or minor problems, as if I just ran it under CentOS for development?
I would rather be able to run VirtualBox, be able to develop my software using my PHPStorm / SourceTree applications on my host system and avoid any problems that would damage my file system in GIT.
source share