M
M
Mikha Pankratov2015-04-25 14:59:31
CodeIgniter
Mikha Pankratov, 2015-04-25 14:59:31

How to run CodeIgniter?

Good afternoon, guys, I can’t start CI for some reason / I don’t understand what I did wrong ...? Maybe some Apache module is missing.
So my actions are:
All according to this manu: www.masterinweb.net/lessons/php/nachalo_raboty_s_c...
Displaying a blank screen, index.php finds but does not load further.
apache-logserror.log

[Sat Apr 25 14:08:05.609147 2015] [:error] [pid 26955] [client 127.0.0.1:52169] PHP Warning: require_once(/home/maxim/work/ci/system/core/CodeIgniter.php): failed to open stream: Permission denied in /home/maxim/work/ci/index.php on line 202
[Sat Apr 25 14:08:05.609219 2015] [:error] [pid 26955] [client 127.0.0.1:52169] PHP Fatal error: require_once(): Failed opening required '/home/maxim/work/ci/system/core/CodeIgniter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/maxim/work/ci/index.php on line 202
[Sat Apr 25 14:08:06.154712 2015] [:error] [pid 26956] [client 127.0.0.1:52171] PHP Warning: require_once(/home /maxim/work/ci/system/core/CodeIgniter.php): failed to open stream: Permission denied in /home/maxim/work/ci/index.php on line 202
[Sat Apr 25 14:08:06.154762 2015] [:error] [pid 26956] [client 127.0.0.1:52171] PHP Fatal error: require_once(): Failed opening required '/home/maxim/work/ci/system/ core/CodeIgniter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/maxim/work/ci/index.php on line 202
[Sat Apr 25 14:08 :06.347213 2015] [:error] [pid 26957] [client 127.0.0.1:52173] PHP Warning: require_once(/home/maxim/work/ci/system/core/CodeIgniter.php): failed to open stream: Permission denied in /home/maxim/work/ci/index.php on line 202
[Sat Apr 25 14:08:06.347258 2015] [:error] [pid 26957] [client 127.0.0.1:52173] PHP Fatal error: require_once() : Failed opening required '/home/maxim/work/ci/system/core/CodeIgniter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/maxim/work /ci/index.php on line 202
[Sat Apr 25 14:08:06.531557 2015] [:error] [pid 26958] [client 127.0.0.1:52174] PHP Warning: require_once(/home/maxim/work/ci/system/core/CodeIgniter.php): failed to open stream: Permission denied in /home/maxim/work/ci/index.php on line 202
[Sat Apr 25 14:08:06.531604 2015] [:error] [pid 26958] [client 127.0.0.1:52174] PHP Fatal error: require_once(): Failed opening required '/home/maxim/work/ci/system/core/CodeIgniter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/maxim/work/ci/index.php on line 202

Doesn't work
require_once BASEPATH.'core/CodeIgniter.php';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
evnuh, 2015-04-25
@frmax

So the answer was immediately found from the logs - in black and white and it says that access is denied. Check the access rights of the web server user to the ci/system/core/CodeIgniter.php file. Most likely, .php files do not have execution flags. Type chmod +x should be tried on them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question