Installing CodeIgniter 4 on Amazon AWS Cloud 9 server - php

This question is about CodeIgniter 4, please do not mark my question as already answered with questions related to CodeIgniter 3. Thank you.
I try to make a fresh install of CodeIgniter 4 on an Amazon AWS EC2 Cloud 9 server.
I encountered some problems.
First, I configured the Apache server on port 8080 as explained on this page : https://lucidar.me/en/aws-cloud9/how-to-...d9-server/
The, I install CodeIgniter 4 with composer and configure it following this instructions: https://codeigniter4.github.io/userguide...ith-apache
My first problem is that I do not have a apache2/conf/httpd.conf file. Is it the /etc/apache2/sites-enabled/000-default.conf ? Any way, I think the rewrite module is natively enable on my server.
The Apache server works but not CodeIgniter. I got the following errors:
Warning:
require(/home/ubuntu/environment/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php):
failed to open stream: No such file or directory in
/home/ubuntu/environment/public/index.php on line 37
Fatal error: require(): Failed opening required
'/home/ubuntu/environment/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php'
(include_path='.:/usr/share/php') in
/home/ubuntu/environment/public/index.php on line 37
I do not have vendor/codeigniter4/framework/system/bootstrap.php files in the Config folder.
Any idea about what I missed?

Related

What is the right way to run downloaded project developed by yii to my local server

Recently, I have downloaded a project developed in yii but when I tried to run this project to my local server using XAMPP, I got the following errors.
Warning:
require(C:\xampp\htdocs\yii2-tutorial-master\web/../vendor/autoload.php):
failed to open stream: No such file or directory in
C:\xampp\htdocs\yii2-tutorial-master\web\index.php on line 7
Fatal error: require(): Failed opening required
'C:\xampp\htdocs\yii2-tutorial-master\web/../vendor/autoload.php'
(include_path='C:\xampp\php\PEAR') in
C:\xampp\htdocs\yii2-tutorial-master\web\index.php on line 7
I want to know if there are some procedures to do it.
Thanks in advance.

How to install Zendframework 1 in xampp

So i'm new in zendframework and i want to try zf version 1 , i cannot find a good documentation for this. i'm having an error when i try to run the downloaded file in xampp
here's the screen shot of my folder structure
I install zend framework using composer zendframework/zenframework
then here's the error
Warning: require_once(Zend/Application.php): failed to open stream: No such file or directory in D:\xampp\htdocs\Zend\public\index.php on line 17
Fatal error: require_once(): Failed opening required 'Zend/Application.php' (include_path='D:\xampp\htdocs\Zend\library;D:\xampp\php\PEAR') in D:\xampp\htdocs\Zend\public\index.php on line 17
you should read and understand step-by-step from here :
https://framework.zend.com/manual/1.11/en/learning.quickstart.create-project.html
Or,
https://framework.zend.com/manual/1.12/en/learning.quickstart.html
first try to understand the application structure.
As you are new in Zend framework, I think this is the best place to start.

Repo not working in localhost using laravel

I am new to this but I am trying to view a repository through localhost and I am receiving this php error in the mamp log:
PHP Warning: require ..... failed to open stream: No such file or directory in .......autoload_real.php on line 58
PHP Fatal error: require(): Failed opening required
....autoload_real.php on line 58
On Line 58 is the following:
function composerRequireec02cd7cea0c14cd8638fe929f5e7e81($file)
{
require $file;
}
I think it might have something to do with the laravel version but i'm not sure. The other thing is that when I try to see errors in the laravel log there is no log in app/storage
First give the read permission to storage and bootstrap directory in your laravel project and then reload your laravel project in browser.
It seems to work now after doing composer-dump autoload then a composer update, although I was looking for more of a global answer as to why this might be happening (i.e. outdated laravel version etc.). But thanks everyone!

Installing Laravel resulted in unable to find the socket transport ssl

Hi I am trying to install laravel on my server.This is what I did.First I installed composer and tryed running this command in cmd:
composer create-project laravel/laravel RestPHP
After running it I got this this message:
I tryed googeling about this error but could not find anything concrete regarding this error I am very new to php.
After this I tryed a more manual approach.I downloaded laravel and put it in my htdocs folder , then I tryed openning it like this:
http://localhost:8585/laravel/public/
But I got this message:
Warning: require(E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap/../vendor/autoload.php):
failed to open stream: No such file or directory in E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'E:\Projects
IDE\PHPStorm\xampp\htdocs\laravel\bootstrap/../vendor/autoload.php'
(include_path='.;E:\Projects IDE\PHPStorm\xampp\php\PEAR') in
E:\Projects IDE\PHPStorm\xampp\htdocs\laravel\bootstrap\autoload.php
on line 17
I have my htdocs route at:
E:\Projects IDE\PHPStorm\xampp\htdocs
Both cases seem to be some for of php configuration problem , since I have 0 knowledge of that I could not find a solution.
Could someone please provided me with a step by step solution?
UPDATE
I managed to enable socket transparency ssl and after trying to run the command I get this:
I have also installed git but I still get the same error.What can I do?
Try enabling php_sockets and open_ssl in your php ini

Cache access issue while installing preproduction on symfony

I am currently trying to install a preproduction branch on my dedicated serveur.
I installed a Symfony version in the /web/preprod directoty of my symfony production project. I managed to link correctly the front controller and the routes, and now I am calling an action in the preprod branch.
I am getting this error message :
Warning:
require_once(/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod_new/jms_diextra/proxies/CityDom-APIBundle-Controller-GangController.php):
failed to open stream: No such file or directory in
/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod/jms_diextra/controller_injectors/CityDomAPIBundleControllerGangController.php
on line 13
Fatal error: require_once(): Failed opening required '/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod_new/jms_diextra/proxies/CityDom-APIBundle-Controller-GangController.php'
(include_path='.:/usr/share/pear:/usr/share/php') in
/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod/jms_diextra/controller_injectors/CityDomAPIBundleControllerGangController.php
on line 13
The preprod cache folders are on permission 777.
Not all action aren't working, but this one doesn't.
See Setting up Permissions in this section. Go with the setfacl command.

Categories