How can i change path to Laravel project? - frameworks

Change web root path to a website with crudbooster and Laravel
so, i have a website and the cms behind was done with crudbooster and larvel. when the website was created, the path for it was: /webroot/domainA/site/site/
I want to move this to /webroot/domainB/site/site but when i`m changing the path, whole website is down and not working unless i change back the original path to /webroot/domainA
Where can i change the path of the website to be the one I needed?
domainA - developer server
domainB - client server
This was a fiver.com project, and the person who did it not responding to my emails.

Go to the .env file and change the APP_URL

Related

How to remove "public" from the root directory access link?

i'am new to the hosting/c-panel stuff, and i got a laravel based app installed on my godaddy hosting, the problem is that the application require some files that are placed on the root directory of the server for example http://server.com/images/ajax-loader.gif and the file is placed just there
but when i type the link http://server.com/images/ajax-loader.gif it doesn't find it:
so i need to add a public like http://server.com/public/images/ajax-loader.gif like:
the problem is that the entire app needs to be modified to add a public for every file like that, so is there any way i can access the root folder without adding this /public/ ?
Have you contacted the hosting provider? Usually, they help with these kinds of issues.
Do other images from your 'images' directory load fine? If all images in the images directory do not load in the browser, that indicates either a permission issue or some .htaccess settings. Again needs to be checked at the hosting provider end.

can't connect local site to Iphone with XAMPP

Ive build my site on wordpress and using xampp
i want to test my new dev site on my remotely on my iphone and ipad via wifi
They're both connected to wifi
When i search iphone http://000.000.0.00 or http://000.000.0.00:80, :8080
it comes up with a link to a folder , which is my true path
when i click on this next sub folder , i loop back round to 127.0.0.1
As i guess iphone doesn't know where to find my site contents
I've tried renaming my wordpress site the with the http://ipaddress, :80, :80;80
ad it comes up with an error
ive found in my XAMPP index.php file
The footer seems to send me to 127.0.0.1/dashboard/
i can view this from my iphone
i've tried changing that footer on index.php to my site path
As well as deleting the file all together
Deleting the file allowed me to access more folders but not into the subfolder where my site remains
I've read through questions and tutorials but can't seem to find a solution
i was wondering if i've missed something or if i need to configure files in such a way , maybe to this index.php for XAMPP itself to get it to point at my site as a default
Thank you in advance
Check if your files are in htdocs or you have given correct path to your working directory in your httpd.conf file.
If the directory is correct and you have run your php pages already, I suggest you use ngrok for remote connection to your localhost.
https://ngrok.com/download
it is simple to use.
to run it go to the directory of ngrok in cmd and type ngrok http 80 while your XAMPP servers are running. It will provide a link that could be accessed through internet by any device.

XAMPP - how to set root folder of website in htdocs?

I installed XAMPP and created simple website (a folder 'website' in htdocs folder) that contains a link Info.
If I type localhost/website in browser I get a default homepage. But if I click the link, it goes to localhost/info (which does not exist), instead of localhost/website/info. I could use <a href="/website/info">, but it would be weird to refactor all the links when changing site name.
So what is the usual setting or solution that people uses when developing sites in XAMPP?
You have to change DocumentRoot in httpd.conf file to folder. In your example where you have website directory.
For more sites, you have to have more hosts and then set virtual hosts.
Here is link how to do that in Win. But point is the same in all OS.

how save file on server using HostingEnvironment.MapPath()

in this code iam trying to save text document on server / wwwroot folder. nothing happens :(!
if i am working on localhost and doing the same routine like this, everything works fine and i can save text document on local pc.:
If the same code works in your Dev machine and not working in Production, It should be folder Permission issue. I guess you have to change the folder permissions in server so that ASP.NET can write to that directory.
Checkout this link which explains how to do that.
Make sure you are not giving Write/Modify Permission to "Everyone"

Zend server deployment

I'm deploying sample Zend apps on Zend server, following official tutorials. No matter what I deploy the only thing that I can access is the hello world page (Hello world
says hello).
How can I access real application?
host/address/public and host/address/index.php or other permutations don't work...
When you create your zpk file with Zend Studio there is a deployment.xml file that specifies some vhost settings as well as various other dependencies and triggers.
If you double click this file within Zend Studio you will be presented with a gui that helps you create this file.
The two fields of importance to this question are "Application directory" and "Document Root". If you have a Zend Framework application the most likely settings for this are:
Application Directory: data
Document Root (main public directory): data/public
The document root is the most important part as it defines the directory where apache executes the first file.
You then export the project into a zpk and upload that within Zend Server.
Once uploaded you will be presented with a "Set Installation Details" screen. There you will define the virtual host directory name.
For a simple deployment to your localhost or your server IP you can have the following:
Display Name: Address App
Virtual Host: Default
Path: address
This will then deploy your application to: http://localhost/address or http://192.168.0.*/address
You can also deploy it with a url eg:
Display Name: Address App
Virtual Host: click "add new" then enter the url eg. myaddressapp.com
Path: leave blank
This will then deploy your application to: http://myaddressapp.com. IF you are not deploying to a live site you can fake the url by entering a record in your hosts file
Alternatively, I started writing a blog post a while ago on how to deploy to Zend Server in a VM. This does everything automatically so you dont have to rely on exporting and importing. Here is the work in progress of the post: https://docs.google.com/document/pub?id=1bR58tXWpkezomGiv9cnkySrXxKItoEUQ6E6V9a8n46A