Laravel 5.3 update to remote apache server - apache

I have an Ubuntu machine in Azure with my Laravel project and it works good. Today, I used Laravel Auth on my localhost environment and it works too. I save the data in a local database.
Now I need to update my Laravel project in Azure. It is just update the project or I need some configuration on virtual machine to work with the local database?

The only thing you should focus is you have an Ubuntu instalation, either it is on DigitalOcean, AWS or Azure, all are same.
Secondly, consider installing Laravel Homestead on your local machine. That will assure you that the server and local development have all the same components, so you can be pretty sure that if it works on your localhost, it will work in your server.
As for your question, please conpare the verion of the components on your system (local) and server. If both are same, everything would be fine.

Related

Connect local SQL Server database from the containerized Asp.net Core Application

I have a very simple "hello world" kind Asp.net Core API Application (swagger included) where I click one API Controller and it fetches the data from the database and returns as JSON. I have tested that working on my system through the debugger and it all good to go inside docker.
I have created a docker file (not docker compose) and build the image finally run the docker container and checked the application is indeed accessible. However, the API Controller which fetches the data from the database, that endpoint failed.
I have tried all possible options like
https://medium.com/#vedkoditkar/connect-to-local-ms-sql-server-from-docker-container-9d2b3d33e5e9
How do I connect the local SQL Server database for the ASP.NET Core application running inside either local Docker or Kubernetes?
I have the latest docker version (20.10.2, build 2291f61) which supports host.docker.internal and that does not work either.
I have tried after disabling the firewall, have used the IP Address with port 1433, have used host.docker.internal and everywhere It gives same error to connect to the database.
Well, I tried to same IP Address and connect locally through SQL Management Studio and confirmed that I am doing any mistake in typo for username, password or SQL server, and database.
I am having an asp.net core API application where the connection strings store under appsettings.json.
None of the suggested approaches is working. Any different option/ clue?
Try to run the container in with host network
docker run --network host myimagename myappcontainer
This way myappcontainer will be able to access the mssql running on your machine.

Can I have NodeJS and Apache in the same server?

My boss gave me an Apache server and I need to upload files there through a web site that I'm developing, I'm using Angular 7 Cli for the frontend and NodeJS Express for the backend. I can recive all the files into my NodeJS server using "multer" but Node saves them into my computer. Is there any way to connect my Node Server to the Apache server, because I don't want to have a local server. Thanks a lot.

How can I create/host SQL databases locally?

Can anyone explain to me, in the simplest possible terms, whether it is possible to create/edit and host a SQL database locally on my PC?
I've so far managed to run PHP locally using XAMPP, but have been at a loss as to how I could implement SQL locally too.
For example, can I download phpmyadmin directly to my PC and use it to implement database features on my website without having to be connected to the internet?
It's possible. And you don't need to download any other software.
Fire up XAMPP and start the Apache and MySQL servers then go to your browser and enter http://localhost/phpmyadmin.
Once your MySQL server is up, you can easily access it from applications running locally with the necessary configuration (i.e host, username, password, port etc).

does ldap works in a offline environment?

Does LDAP server & phpldapadmin works in an offline environment?
I've successfully tested on a online environment it's works, however there is some issue encounter after i removed the internet connection.
Trying to use LDAP address book for outlook
any help?
I think it depends what you are trying to achieve and where is your LDAP server. But generally, LDAP directory servers are centralized, and an offline environment will not be able to access it.
It doesn't work in local network or offline, When you test your solution in local environment. When you publish your solution deploy in server then run on test production link it will works

installing svnbridge server on a different machine other than the server

I can see that there is a key called "TfsUrl" in the appSettings part of the Web.config file for SVNBridge. Is this possible? Can I install the SVNBridge on a different machine to the TFS server? We are a big company and the admin people don't want to install svnbridge on their server.
Thanks
Yes you can. However, I have found it to be very slow depending on where the SVNBridge server is. In my testing I installed the SVNBridge server locally and pointed it at my production server over a VPN. With this setup it would take up to 3 minutes to just open the repository in TortoiseSVN. With the SVNBrige server installed on the same machine as TFS the load time is almost unnoticeable.