Issues installing Symfony 2.8 on a Linux - php

I have spend weeks trying to install Symfony on Linux...
I create a new project (Applications) .... And I wasn't able to access it with my browser.
I created a new folder, cut-paste all the files in it and deletted the folder create by Symfony. I was able to access it with my browser (using srv-web-03/Applications/).
If I try srv-web-03/Applications/web, I can see all the file and folders in it.
If I try srv-web-03/Applications/web/something, I have a 404 error.
If I try srv-web-03/Applications/web/app.php/something, I have a blank page.
I editted the file app.php to be like app_dev.php : no change.
When I look at my apache log files I have this error :
"PHP Fatal error: Class 'Symfony\Component\Debug\Debug' not found in /var/www/html/Applications/web/app.php on line 14"
I try that http://symfony.com/doc/2.8/book/installation.html#book-installation-permissions, but the result is the same.
last thing : I'm... Let say I'm a dumbass with Linux... It doesn't help.
thank you in advance

Related

I don't know how to display my own pages with Symfony using MAMP

I'm currently learning symfony.
I would like to display a page I created with MAMP in a browser, but I can't get it to display even if I type in the URL I registered in routes.yaml.
I don't know what the problem is, so I'm having trouble.
Can you please help me?
What I have tried:
Create a controller
php bin/console make:controller
edit route.yaml
home_page:
path: /home_page
controller: App\Controller\HomeController::index
do this command
composer require symfony/apache-pack
Type "localhost:8888/mysite/home_page" into Google Chrome 
Even after doing these, I still get
"Not Found
The requested URL was not found on this server.
The directory created is located at MAMP/htdoc.
Type "localhost:8888" and "localhost:8888/mysite" into browser to view the index.html I have placed.
However, when I enter "localhost:8888/mysite/home_page", I cannot open the twig that I created with "php bin/console make:controller". I can't open twig.
I'm sorry for my bad English. Please help me.
Try with
localhost:8888/mysite/index.php/home_page

Class 'BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider' not found

I am developing a website on Laravel (both frontend and backend).
I installed the baklysystems/laravel-chat-messenger extension on my laptop project files, following every single installation step and it works fine. The chat works very well, I just made some style changes. However, when uploaded the files to GoDaddy hosting, I got the following error:
Class 'BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider' not found
(1/1)Error
Class 'BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider' not found
in ProviderRepository.php line 208
Do any of you have any idea why is this happening?
Protip: I just uploaded the new files and made the modifications on the files that already where there, like for example including in providers in my config/app.php the line:
BaklySystems\LaravelMessenger\LaravelMessengerServiceProvider::class,
Thanks in advance

Undefined variable notice when trying to use Spotify API PHP Wrapper

I hope you are well. I am brand new to coding and have spent a lot of time trying to find a solution to my question, without much luck.
I was trying to utilize Spotify's API with PHP but ran into thus far unsurmountable hurdles. Please see steps taken below:
1.) I downloaded the Spotify PHP Wrapper library here https://github.com/jwilsson/spotify-web-api-php, and saved it in the same directory as my app. I then created a composer.json file as below :
{
"require": {
"jwilsson/spotify-web-api-php": "^1.0.0"
}
}
2.) After creating and saving the composer.json file, I ran "composer install" in terminal in the same directory as where the composer.json file was stored, which led to the creation of a composer.lock file and a vendor folder.
3.) I then moved the composer.lock, composer.json and vendor folders to my online hosting service (ecowebhosting) via firebug, so that I can run and test the code. I also created a .php file that I moved to the server as well.
In my .php page, i declared the required files as such (below) and ran a sample query form the Spotify API PHP Wrapper documentation on github, to confirm whether or not I successfully loaded the library (the autoload.php folder was automatically created in the "Vendor" folder, after I performed step 2 above):
require 'vendor/autoload.php';
$tracks = $api->getAlbumTracks('1oR3KrPIp4CbagPa3PhtPp');
print_r ($tracks);
When I run the code above, I get the error below:
Notice: Undefined variable: api in /home/sites/amanka.com/public_html/content/SmallApps/ListeningPod/home.php on line 8 Fatal error: Call to a member function getAlbumTracks() on a non-object in /home/sites/amanka.com/public_html/content/SmallApps/ListeningPod/home.php on line 8
This error causes me to think that I have not installed the Library correctly. Please any ideas where I might be going wrong?
Thanks a lot

Laravel 4 Setup: Driver [file] not supported

I'm trying to set up an existing site that was built using Laravel 4 on my server. I've gotten stuck at an error: Driver [file] not supported. It's throwing the error from Illuminate/Support/Manager.php.
I've tried using boilerplate Laravel files for the Manager.php file, as well as the SessionManager.php file, but it still won't work. I've also tried to figure out if file is registered as a driver, but when I try to insert the code for it, I get lost because of undeclared functions.
When I try to change the default session driver in app/config/session to anything else, it just throws other errors at me. Yet this is the same way the site was originally set up on its own server, so I don't understand why it isn't working. Can anyone help me out?
I was stuck in same problem, solved it. After changing any configuration config cache must be cleared using php artisan config:cache. Hope it helps.
What is your php version?
Try to clean the session dir
app/storage/sessions
then try to clean autoload file
cd [YOUR LARAVEL ROOT DIR]
composer dump-autoload
and update composer package to be sure vendor folder is ok
cd [YOUR LARAVEL ROOT DIR]
composer update

Got Fatal error CodeIgniter CI_Controller not found

I got following error on every controller
Fatal error: Class 'CI_Controller' not found in /<path>/system/core/CodeIgniter.php on line 233
The root folder has also its same separate codeigniter system (all ci structure) folder. the site in root in working but when i copy the another ci structure in sub folder i got mentioned fatal error. please help me.
Check your database config in application/config/database.php it's one of the major time consuming error message I faced with CI. Because the error message was simply misleading. So, check the DB config first.
I had a similar problem when trying to run a migration that is within a folder, it appears that my 'git' is with a conflict in the directory separator.
I was trying to run on command line:
$ php index.php tools/migration
fix it temporarily with the command:
$ php index.php tools migration

Categories