How to move laravel projevt from Wamp to lamp centoS 7 - php

I need to move existing laravel 5 project to linux centos 7. I'm going to install lamp, copy source files and database backup and move them to new centos 7 server. Is there anything I should take into account? I moved a lot of pure PHP webpages but never laravel projects. Help appreciated :)

You should pay attention to the following:
PHP and mysql version. Laravel 5 tends to break with certain PHP versions
Having document root as /public folder
Make sure to have the bootstrap and the storage folders writable
Make sure to clean the cache upon migration

Related

Dockerize existing Laravel vs creating new projects + copy files

I am struggling with new Dockervel environment on Monterey. Before going further, I would like to have some general advice.
Before Monterey (on Mojave), I use HomeBrew and Composer to create Laravel projects and adding dependencies. I have 10 existing projects like that.
After doing a clean install of Monterey, I decided to go for Docker. I successfully created a new project and also installed phpMyAdmin (into 2 containers mysql & phpmyadmin).
Now I need to move these 10 "old" Laravel projects from my backup to Docker on Monterey.
So I moved the first old project and dockerized it but ran into version issues which I assume I might be able to fix (I have another post specifically on these issues).
Is it the best way to do this to upgrade the 10 old projects to Docker? I presume that at the end I will have 10 containers (one for each project) plus the 2 php/phpMyAdmin. Will I be able to have several docker containers running at the same time and be able to view them in the browser as localhost/project1, localhost/project2... and so on?
I also tried to install a new project and copy all the specific files into it from the backup but that is very cumbersome. Is that an option?
Is there another easier solution?

How to download and run an existing Zend Site?

I have not every used, or even installed the Zend Framework.
I have inherited a website built in the ZF and only have FTP access to the deployed version that is live.
Is it possible to simply download the files that are live and run then locally within XAMPP, as i have tried this but ther server has lots of short cut director mappings and no ZEND?
I am assuming not, so can i install Zend and then download the site to my local machine for it then to work?
Any assistance on this would be helpful as have no idea about it, whether i need source files or not.
Thanks
Shaun
once you have the project downloaded in xampp. make sure you have composer installed and configured.
delete the vendor folder inside your project then run
composer install
under the root of your application.

Publish Laravel Project and Project Deployment on LAMP

I am now developing a PHP website using Laravel 5 framework. I published the website through Git clone to the server. However, after visiting the URL, the website only shows its structures, which is shown as: http://mikemikezhu.me/laravel/laravel_trial/
The index.php in the public folder cannot be parsed, and only the folder structure is displayed. My server is running Centos 7 system. The web server is Apache and the PHP version is 5.4.16. I am wondering whether it is because the PHP version is too old to run the Laravel. Or is there any other ways to publish the website correctly? I am not going to use Forge and Envoyer bacause they are not free of charge.
Check if you have the correct PHP version for your application with the command:
php -v
If you are using Laravel 5.0 you need PHP >= 5.4, PHP < 7
If you are using Laravel 5.1 you need PHP >= 5.5.9
If you are using Laravel 5.2 you need PHP >= 5.5.9
If you are deploying the app with Git, check if the folder permissions are correct and compatible with the Apache user.
Firstly make sure the whole directory structure including files is owned by the apache user - using the chown command.
you'll want to point your vhost to the public folder, not the project route
https://laravel.com/docs/5.0/errors shows you how to enable debug and logging - great for seeing why it might not be working
I'd update to at least PHP 5.6 as #amieiro mentions

How to create multiple laravel projects in wamp 2.4 (Windows 7 32 bit)

New to Laravel and PHP Programming. I have successfully installed Laravel 4 framework on my wamp. Now, I would like to import an existing Laravel project (configured using Apache and compiled with VC11) into my own local wamp 2.4 (PHP 5.4.16). So, my question would be
1. Is it possible for wamp to host 2 laravel projects on the same machine?
2. If yes to (1), then what would I need to configure this or is there a guide/tutorial on this?
3. If no to (1), would I need to reconfigure the original settings of the existing laravel project for it to work on my wamp?
Not a solution using WAMP so if that is vital to your setup then this answer would be unhelpful, however an alternative would be to use vagrant. This allows you to run a development environment that closely mirrors that of your deployment environment, which will save you from hassle when deploying as to why things aren't working and supports multiple sites.
I believe laravel have their own official, easy to use vagrant files called homestead.
The simple answer is this: Wamp have a www directory in c:\wamp\www\ so you can simply create two project, for example c:\wamp\www\project1 and c:\wamp\www\project2 and import the project with Composer.

how to copy php files from working directory to local www folder from intellij 13

I have always been using netbeans to develop php project but wanted to give a try to see how intellij Ultimate (version 13 in this case). After installing the php plugin, and created a simple web application project, I got lost. Turns out to some hours of googling and trial and error I couldn't find that small thing that could say check to copy the the files to remote location or remote server etc.
I am running fedora 19 with apache2 so my root directory is /var/www/html/phpproject. I am hoping to see my files from /media/blacksensei/Repo/work/intellijworkspace/phpproject/src copied to that folder so that I can have access to it via http://localhost/phpproject.
Can anyone explain this process simply for me.
Thank you
I'm not php developer. But what I see that it is quite simple:
Create Run/Debug configuration for PHP Web aplication
Tap + in Before launch section
Choose Upload to Remote Host and configure it
You can find more details here - http://www.jetbrains.com/idea/webhelp/uploading-and-downloading-files.html#d438110e553

Categories