Laravel 5: blank page - php

I installed fresh copy of "Laravel 5" on my local machine via Laravel Installer, and it just working fine, but when I upload this copy to server, I get blank page, (using git)
system info:
1. server: ubuntu 12.04
2. php: PHP Version 5.6.11-1+deb.sury.org~precise+1
3. laravel: version 5.1.7
4. my local machine OS: OSX yosemite 10.10.4
notes:
1. "/storage" has read/write permissions (777)
2. another installation of Laravel (v 4.2) installed on the server & working fine
any help?

Make sure you set proper permissions on storage and bootstrap/cache folders - check them directly on remote.

Try run composer install.
We usually don't put the vendor (framework) folder inside git/svn, so you probably forget to "install" laravel.

Sometimes you may get the error while you didn't configure your database through .env file.

first check php version in live server
server: ubuntu 12.04
php: PHP Version 5.6.11-1+deb.sury.org~precise+1
laravel: version 5.1.7
my local machine OS: OSX yosemite 10.10.4
Laravel require 5.5 and greater version
so compare both server and laravel require version then it definately works.

Related

It is possible to use different PHP versions in lampp [duplicate]

I'm developing one web application, using PHP eclipse IDE.
For an instance i want to switch from one PHP version to another version which resides in different location.
Below is my working environment :
1) Having Centos OS
2) PHP 5.1.6 have installed already while installing centos OS
3) Above PHP is installed in /usr/bin/ path
4) I have installed LAMPP in /opt/lampp
5) In LAMPP present PHP 5.2.6 version
I want to configure local web server such that lampp should choose PHP 5.1.6 (which resides in /opt/lampp )
I am not aware of this switching of PHP version.
Please suggest me how should i configure this switching of PHP version in my local web server.
Which configuration file should i choose for modifying this change.
Thanks a lot !!!
-Pravin
http://gggeek.altervista.org/2007/07/21/running-multiple-php-versions-on-a-single-apache-install/
This guide is a great guide and will get you started!
Another alternative would be to install Xampp, as I believe they provide a batch file that helps you switch versions of PHP in a second.

Laravel local insists PHP 7.1.5 even though WAMP running PHP 5.6.32

I have a WAMP installation and selected PHP 5.6.32 as the version to run.
When I run php artisan serve, the phpinfo() call returns PHP 7.1.5 Development Server
My host has PHP version 5.6.32 installed and I'd like to get Laravel working locally with something other than PHP 7.
What can I do here as the deployment to my host isn't working.
I'm running Laravel version 5.5.32
Yes you need to go down in Laravel Version 5.4 or lower,
https://laravel.com/docs/5.4
** Or you need to upgrade your WAMP PHP to 7 which is required for Laravel 5.5
If you read the docs it will tell you what is required in order to run version of Laravel. It is indicated in to very top of the page under requirements
Good luck with the development

How to set php version for composer when having multiple xampp versions?

I have two xampp versions in my machine one have php version 5.4 and other having 7.1(recently installed.) I usually use composer command to download laravel. previously i get laravel version 5.0.X when i download because of my php vesrion(5.4) but even after installing new xampp(having php version 7) composer is downloading laravel 5.0.x only. When i check my php version it is showing 5.4 now how can i choose or connect latest php version to composer so that i will get latest laravel version.
Finally i found the solution. I changed my composer path to new php version and now getting what i want.
I set my Environment variables as follow:
change name of respective document xampp that contains your project I want to launch.
my system context

How to install Symfony 2.6 with wamp server in windows 8 successfully?

I am new to web development and I tried to install Symfony to my Laptop.. I have already installed fallowing softwares.
Windows 8 ( 64x )
wamp Server 2.4 (includes php5.4.12 & mysql5.6.12)
MySql Server 5.6 (This is not useless but I have installed)
I added C:\wamp\bin to path in System Variable
When I was trying to install Symfony I had to download Composer first So I downloaded Composer-Setup.exe from here
Then I run the wamp Server and went to PHP Extensions then Enabled php_curl and php_openssl also.
I did run Composer-Setup.exe file and selected Do not install shell menus and continued.
set C:\wamp\bin\php\php5.4.12\php.exe as the path to php.exe file
Finally I got following Composer Download error message
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The openssl extension is missing, which means that secure HTTPS transfers are impossible.
If possible you should enable it or recompile php with --with-openssl
Have I done wrong steps ? How can I solve this issue. Please help me to solve this and install Symfony 2.6 with wamp server 2.4 in Windows 8.
Note: This method does not use the composer but is equally effective
First ensure that PHP is available to your Path environment/system variable, if not add it.
Once you have added php to your environment variable restart your computer and open cmd and cd to your web root directory (project directory)
In cmd run the following:
$php -r "readfile('https://symfony.com/installer');" > symfony
This will download a file named symfony into your project directory (i.e. directory from where cmd is run)
Install the latest version of symfony as follows:
$php symfony new my_project_name
OR
Install/use the most recent version in a specific branch say 2.8
$php symfony new my_project_name 2.8
OR
Install/use specific version version within a specific branch
$php symfony new my_project_name 2.8.3
Note: steps 4, 5, or 6 will take some time, depending on your Internet speed to download Symfony
Is there a specific reason you want to install a WAMP stack? In my experience it's much easier and flexible to use Vagrant to provision a virtual machine with the right specs
Portable: just run vagrant up on another machine, wait a few minutes, and you're done
Allows you to keep the configuration of your developer's machines and the target server the same
Fixing a broken package just requires you to run vagrant up --provision later
Many packages like composer are written more with *Unix-systems in mind and will be easier to maintain and install.
Simply put, configuring an entire server directly on your machine is tedious work and isn't longer necessary. The Vaprobash project is a good example of how to get started

Laravel Generator Can't be install on php 5.3 & 5.4

I tried to install https://github.com/JeffreyWay/Laravel-4-Generators
on my local machine using wamp
on php 5.3.13 but it asked me for minimum requirement 5.4
I installed 5.4 package from wampserver but still can't install it
the install command
composer require way/generator
Thanks
If you are in windows as I guess you are
Open Control Panel -> system -> Advanced tab -> Enviroment Variables
Choose path from down area
Click edit
Change the path for php from C:\wamp\bin\php\php5.3.13 to C:\wamp\bin\php\php5.4.0 or whatever php 5.4.x version that you have
Please note if you have wamp installed in some other directory rather than the default one please check folder in explorer before you edit it
and I think it should be fine with you now

Categories