If you are interested in using Sail with an existing Laravel application, you may simply install Sail using the Composer package manager. Installing Sail Into Existing Applications During installation, you will be asked to choose which Sail supported services your application will be interacting with. To learn how to create a new Laravel application, please consult Laravel's installation documentation for your operating system. Laravel Sail is automatically installed with all new Laravel applications so you may start using it immediately. Laravel Sail is supported on macOS, Linux, and Windows (via WSL2). The sail script provides a CLI with convenient methods for interacting with the Docker containers defined by the docker-compose.yml file. Sail provides a great starting point for building a Laravel application using PHP, MySQL, and Redis without requiring prior Docker experience.Īt its heart, Sail is the docker-compose.yml file and the sail script that is stored at the root of your project. Laravel Sail is a light-weight command-line interface for interacting with Laravel's default Docker development environment. Installing Sail Into Existing Applications.Make a symbolic link to /usr/share/phpmyadmin the virtualhost document root. If you have other sites that you need to have access to port 80 and the Listen directive to that Virtualhost.Īlternatively, you could restrict Phpmyadmin to only one specific port by creating a Phpmyadmin version host and use the Listen 99 directive to that virtual host.ĭetails for creating a virtual host for Apache2 can be found here: In most circumstance, disabling the default port 80 isn't necessary. To disable port 80 where you can only have access via port 99, comment out or remove the Listen 80 from the configuration.ĭisabling the default port is a little more detailed This adds port 99 to the available access. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet # have to change the VirtualHost statement in # If you just change the port or add more ports here, you will likely also With iptables you can do that by this command: sudo iptables -A INPUT -p tcp -m tcp -dport 99 -j ACCEPTĪdding access via port 99 is quick and easyĪdd the port 99 to your Apache2 configuration. If you use UFW you can do that by this command: sudo ufw allow 99/tcp If you want this new VirtualHost to be accessible from the outside don't forget to add port 99 into your firewall's rules. This step is optional, but otherwise and will provide identical result, so I suppose we do not need that :) ![]() Edit /etc/phpmyadmin/nf and comment ( #) the first Alias directive like thath: #Alias /phpmyadmin /usr/share/phpmyadmin
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |