I create my last laravel app using docker, but I don't have any idea, how I can host my app?
I have phpMyadmin container and laravel app container.
How I can use it with whm server?
The most of users do that using docker cloud, but I don't find any tutorials or article talk about docker whm hosting what is the best practices doing that?
cPanel does not have Docker by default. If you have root access to machine which runs cPanel of course you can install it but you will not be able to control it via cPanel.
You can check these cPanel support pages:
https://support.cpanel.net/hc/en-us/articles/360062418794-Can-I-run-docker-on-a-cPanel-server-
https://support.cpanel.net/hc/en-us/articles/4402393047703-How-To-Install-Docker-Compose-
And I think you don't have root access to that shared machine. Therefore I think you are just looking for a way to publish your Laravel application on a shared hosting.
A basic Laravel application needs it's files on a server and a database connection (if needed). cPanel can provide both of this. You can upload your Laravel application files to your cPanel Website users home folder, arrange directory structure and point that Website's HTTP requests to your application's public folder.
You can use cPanel's File Manager or connect your server with a FTP client to upload and rearrange your application's files.
An application needs a database connection. In cPanel you can create a MySQL database and a MySQL user for it. Then you can change your database connection settings according to them.
You can check some other StackOverflow answers and tutorials for "Publising Laravel on a cPanel shared hosting"
How do I upload a laravel project on cPanel shared hosting?
https://medium.com/#kajan746/how-to-host-laravel-project-on-cpanel-83389d6d31e6
But as I said before; this has nothing with Docker. Those instructions shows how to use file manager and mysql wizards to prepare a production environment for Laravel on a shared cPanel host.
Related
I've completed programming my site with Ratchet locally and I usually run the server file by
php server.php
now Idk how to actually make it work on the host?
I have Vps too but cant even fighre out how to connect it with the host , etc? what is the idea actually
In your VPS you should install a webserver for example Apache or Nginx and config them to serve requests, but actually is far more easier to use preconfigured servers with server software management like Cpanel or directadmin that most of web hostings offer now days,
Then copy local files to remote server and adjust a database in server using a ftp client and config php web server settings, in general your webserver should point to your index.php file and thats it. You can learn other settings by exploring directadmin or Cpanel...
I created a domain with GoDaddy, and connected it with Digital Ocean.
I think the domain connected exactly to Digital Ocean.
In Laravel Forge, I made an app with that domain, and deployed my GitHub project.
The problem is, if I visit my website, it is showing just the "Welcome to nginx!" page. How do I make it display the code I wrote?
If you deployed your application in default directory, then setting up the domain DNS records should point to you server ip address and your website should be accessible from both server ip address and the domain.
But if you deployed your application in a different directory rather than the "default" you need to change your DNS records for pointing correctly to application directory.
You may want to take a look at Laracasts Deployment tuts for Laravel Forge
a basic tutorial by Jeffery Way: https://laracasts.com/series/build-and-configure-a-staging-server/episodes/1
a newer version for working with Laravel Forge by Marcel Pociot: https://laracasts.com/series/learn-laravel-forge/episodes/4
I am tasked to develop a laravel project for our company. I have to deploy it within the company's network only. It is my first time to do it and haven't find any good source of instruction so far. I hope you can help me with this. I am using XAMPP for this one. And the machine runs on a Windows Server 2016.
Laravel applications are easy to install on IIS. You can use the url_rewrite extension to import the rules from the .htaccess file. Other than that it is really no different than deploying to any other server.
You can also use your company's local DNS to point to the server if you wish to access it via https://my-app.company.com.
May sure you all are one in common network
sudo php artisan serve --host 0.0.0.0 --port 81 (you can change the port if you want)
Other people will be able to access with you'r IP address http://your-pc-id-address:81
I am brand new to laravel applications. I have completed a fresh install of laravel and would now like to see it run live. I have used the artisan serve and got it to run locally, but would like to see it on my remote amazon server. I have adjusted permissions on the storage, bootstrap, cache directories to 777(i know 777 is dangerous), but when i go to the ip address, it always give me a 500 error. I have also adjusted in the apache config, in sites available, to point at the public folder of my project. What other steps are necessary to serve this from my remote server? Are there other directories where permissions need to be adjusted?
I have recently installed PHP, MySQL Server, and Apache web server. I played around with some PHP scripts locally on the PC to insert some entries to MySQL Database.
Noob question so please be patient with me:
How do I get my web service out to the internet, by self hosting? Say I already have a domain for example mydomain.com How do I make it so that when someone not within my network can access mydomain.com/something and can send some data so my server gets it and do anything with that data?
Webhosting
You have to have some form of webhosting. You pay for hosting and you can upload your PHP files to their servers. They will usually also have database servers you can use.
Your domain name has to point to those servers via DNS so the internet can reach your application. I'd suggest you search the internet for popular hosts that provide the tools your need for this.
Self hosting
Another possibility is to open your network up to the world, but this is not recommended unless you have network administration experience due the security trouble that comes with it.
In short: forward a port through your router to the machine running your application. The website portforward.com has instructions on how to do this but keep in mind that misconfiguration could lead to vulnerabilities in your network.
In order to make you site public
1. you need host
2. you need domain
there are bunch of hosting sites you should get one first.
This link explains very well about self hosting
https://www.boutell.com/newfaq/creating/hostmyown.html