I am new to laravel, I have installed the laravel on my local server(Xampp) with composer. I have a small project that is build in the laravel now I am getting trouble to run that project on the xampp.
Thanx in advance
Just point your folder in apache.conf to your laravel public folder and you will be able to run your project in windows.
Follow this guide to do so:
How do I change the root directory of an apache server?
Please read the docs about the installation for any other problems you may have.
http://laravel.com/docs/5.1/installation
Related
I tried many strategies to deploy two Laravel apps in shared hosting. What I have done so far is
created a folder inside public_html folder (vocalpublic) and put all the Laravel public folder files in there.
All the other Laravel project files except public folder have placed outside the public_html folder (example.co.uk)
I have many addon domains, and in this case, I created one (example.co.uk) which was created a folder outside the public_hml folder, and that's where I drop laravel files.
Final result:
Thanks for the viewers.
I found the solution. The PHP version of my server is 7.1 max but my Laravel 7.2 need at least PHP 7.2 version. So what I did was downgrade the Laravel app into version 5.8, and everything works fine.
Thanks.
I have a laravel project running on Linux server without any issue. The files are in /public_html directory and "laravel" directory is out of public_html. It has mySQL 5.6 and PHP 7.1. The project works completely fine.
Now, we have decided to move this on windows server. I have setup same PHP and mySQL on new windows server. I have double checked and this is correct.
I have imported entire database to windows and files have been moved as below:
The files from /home/abcuser/public_html/ directory to
C:\HostingSpace\abc.com\wwwroot
The files from /home/abcuser/laravel directory to
C:\HostingSpace\abc.com\laravel
The IIS has site path as below:
C:\HostingSpace\abc.com\wwwroot
I set all required permissions to these directories and updated database connection in .env file.
I am now getting blank page with no error message. Do I still need to make any changes in code? Did anyone has experienced the same?
Finally got this fixed..
I had to enable some PHP extensions. What I did is:
Checked the list of disabled PHP extensions from IIS of concerned
site.
Checked whether the particular extension is enabled in oldserver where
it is working.
And Enabled it as needed.
I am trying to setup an existing laravel project in my localhost. I am using Linux Mint along with Valet Linux 2.0
Valet linux works fine as I am able to setup new laravel project which works fine. But now I am trying to setup an existing laravel project. Project is running, all links are working. But none of the static files like js, css, images are loading. I am getting 500 status code for all static files. Not able to understand what is going wrong, I have checked .htaccess also.
I will be thankful if anyone can help.
I was having the same issue with Valet.
Try to move your static files from root folder to public folder.
This fix worked for me.
I installed laravel in my pc but forgot the directory I installed in.How can I find where I installed it if it's possible?I used composer to install laravel but I have forgotten the directory.
This is the default directory of laravel in windows
C:\Users\YourPcName\AppData\Local\Composer\files\laravel
This will be a little bit mad, but try search "artisan" text on search window. and it'll show laravel project folders.
Thats not a laravel problem.
But generally people are using wamp64/www or xampp/htdocs
Or cmd automatically opening c:/users/name.
If you can't find, just setup filesearcher programs.
I am a newbie when it comes to Laravel 4.
I would like to ask if there is a way to install Laravel 4 without internet?
If there is a way to do this, can you include a link or a tutorial on how to do this?
Thanks!
I would like to ask if there is a way to install Laravel 4 without internet?
Well you need The Internet to do the initial download of Laravel - but you can then move it to another computer that has no internet access:
Download the Laravel framework from here (either via git - or just 'download' the zip file) into your project folder.
Run composer install - which will grab all the associated vendor dependencies that Laravel needs to run.
Copy the entire 'project folder' (including the vendors directory) to another computer
You can read more about Laravel installation from the official documentation. Basically once you have it working - you can then just 'copy' it to whereever you need it.