Magento installation error on wamp n xamp server - magento

I'm getting error. I tried again and reinstalled too. My PHP server is on an updated version.
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/......../httpdocs/magento/vendor/magento/framework/App/Bootstrap.php on line 411

You might want to take a look at the server requirements for installing Magento 2, it might be that your PHP version is not high enough
http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements-tech.html

This is happening because your server does not meet Magento's minimum requirements. Here's an excerpt, or see here for more details:
Requirements
Composer (latest stable version)
Composer is required for developers who wish to contribute to the Magento 2 codebase or anyone who wishes to develop > Magento extensions
Web servers
Apache 2.2 or 2.4
In addition, the apache mod_rewrite module must be enabled. mod_rewrite enables the server to perform URL rewriting. For > more information, see our Apache documentation.
nginx 1.8 (or latest mainline version)
Database
MySQL 5.6
MariaDB and Percona are compatible with Magento because we support MySQL 5.6 APIs.
PHP
5.6.x
5.5.x, where x is 22 or greater
7.0.2, 7.0.6–7.0.x
There is a known PHP 7.0.5 issue that affects our code compiler; to avoid the issue, do not use PHP 7.0.5.
Not supported:
PHP 7.1
PHP 5.4
Required PHP extensions:
bc-math
curl
gd, ImageMagick 6.3.7 (or later) or both
intl
mbstring
mcrypt
mhash
openssl
PDO/MySQL
SimpleXML
soap
xml
xsl
zip

Related

linking firebase firestore with laravel

I want to test Firestore with laravel. But before i can use it, I need a couple of tools.
I'm stuck on gRPC. I installed it, it's working on my windows and I can install Firestore with Composer, but I can't get it to work with XAMPP. When I load a page I get:
Fatal error: Uncaught Google\Cloud\Core\Exception\GoogleException: The requested client requires the gRPC extension. Please see https://cloud.google.com/php/grpc for installation instructions. in /vendor/google/cloud-core/src/ClientTrait.php:75 Stack trace: #0 /vendor/google/cloud-firestore/src/FirestoreClient.php(115): Google\Cloud\Firestore\FirestoreClient->requireGrpc() #1 /app/firebase.php(18): Google\Cloud\Firestore\FirestoreClient->__construct() #2 /app/firebase.php(21): App\initialize() #3 /template.php(688): require_once('/Applications/X...') #4 /template.php(647): load_template('/Applications/X...', true) #5 /App in
/vendor/google/cloud-core/src/ClientTrait.php on line 75
It may be the case that the gRPC extention is not enabled on the php.ini file, you can enable it by:
On PHP version 7.2 and up: add extension=grpc on the php.ini file
On older PHP versions: add extension=php_grpc.dll on the php.ini file
And then restart XAMPP and the extension will be activated as showed in phpinfo() and it should work.
If this does not work, a workaround for the issue is to download the gRPC DLL and add it to your project's extentions manually. You can download the latest version on the PECL repository for gRPC (Choose a stable version), and extract the php_grpc.dll file to the extensions folder in XAMPP, which the path you can find on the php.ini.
After that, enable the extetion as described earlier and restart XAMPP again.
Let me know if this fixed your issue.

what is the solution for php_mysql.dll ext in laravel with php 7 and IIs7

I am using laravel latest framework (5.3.*) with IIS7 and php7. It is showing a warning for create project or any artisan command like
c:\inetpub\wwwroot\test>php atisan serve PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ v7.0\ext\php_mysql.dll' - %1 is not a valid Win32 application. in Unknown on line 0
I want to create my project with latest version of php and laravel but with php7 the php_mysql.dll is deprecated. How can I prevent the warning of php_mysql.dll?
Did you copy php.ini from a previous installation of PHP 5.x? It looks like you have copied the extensions and php.ini from a previous installation of PHP 5, compiled with a different version of VC or 32/64bit.
To solve the issue, you should just need to open your php.ini, and comment out or remove the line:
extension=php_mysql.dll

I can not deploy laravel 5.3 app to server

I tried an old method like changing server.php to index.php and then ran the app but I am getting error like error.
The domain.com page isn’t working
domain.com is currently unable to handle this request.
HTTP ERROR 500
I am using godaddy shared hosting.. the server.php has changed in laravel 5.3
Laravel 5.3 now requires a PHP version of >= 5.6.4. From the docs:
You will need to make sure your server meets the following requirements:
PHP >= 5.6.4
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP
Extension Tokenizer PHP Extension
Also note that Laravel 5.3 now requires a PHP version of >= 5.6.4
answered by camelCase

PHP 7.0.5: Use of undefined constant FTP_BINARY - assumed 'FTP_BINARY'

Upgrading to PHP 7.0.5 on Windows IIS (finally since the sqlsrv PDO drivers are available). I'm using Laravel 5.1 and when trying to connect to an FTP drive I get the following error from https://github.com/thephpleague/flysystem/blob/master/src/Adapter/Ftp.php#L19.
Use of undefined constant FTP_BINARY - assumed 'FTP_BINARY'
This is a PHP constant for the transfer, so shouldn't have a problem and there's nothing in the docs to say it's deprecated or anything. FTP_ASCII is the same. The only thing i've done is change the PHP version + SQL drivers.
Reference: http://php.net/manual/en/function.ftp-put.php
Turns out that FTP is not turned on in PHP7 by default and has an extension that php5.6 doesn't have:
PHP 7 FTP extension is not loaded in Windows 7

Laravel parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE

After installing laravel we get an error:
Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in C:\xampp\htdocs\laravel\public\index.php on line 50
Laravel 5.1 uses the ::class property to get string representations of a fully qualified classname. The error you're seeing is caused by this line
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
This language feature has been introduced in PHP 5.5 which is a requirement of Laravel 5.1. Your installed PHP version is probably older than 5.5. Try to update your PHP binary.
In case you are interested in why ::class is used, take a look at this answer
Same thing happened to me also. I found that web server was using my old PHP version 5. To solve it for me, I did this -
sudo a2dismod php5
sudo a2enmod php7.0
sudo service apache2 restart
Your php version is too low.
Try version 7.0 or later php.
Your PHP version on your Xampp is lower than 5.5.9 as specified in the Laravel 5.1 doc.
Simply uninstall your current Xampp software and download a fresh copy at Apache website with this specification 5.6.12 / PHP 5.6.12 .
Do not forget to collaborate with your host provider to ensure that your hosting account runs the required PHP version (>=5.5.9) during the deployment of your Laravel 5.1 app online.
I was facing the same error but error was in app/User.php line 10.
Actually, line 10 was ok but before line 10 I was missing some php syntax.
After correct the php syntax error It was fixed. So you have to check C:\xampp\htdocs\laravel\public\index.php on line 49 carefully I am sure there is something wrong. Just try to correct. It will be fixed.

Resources