just started working on Ubuntu 22.04
I just installed lamp stack on my Ubuntu pc and it is working fine
but the problem is when i clone a repo from GitHub
when i try to run the project by a browser i see a
"localhost is currently unable to handle this request." 500 server err
i can create a simple file in projects directory and run it with no errors
and i can't either use localhost/phpmyadmin i basically get the same error
heres my ls -la log result for var/www/html
drwxr-xr-x 3 root root 4096 Jun 3 16:00 ..
-rw-rw-r-- 1 www-data www-data 10671 Jun 3 16:31 index.html
-rw-rw-r-- 1 root root 20 Jun 3 15:32 info.php
lrwxrwxrwx 1 root root 21 Jun 3 16:01 phpmyadmin -> /usr/share/phpmyadmin
drwxrwxr-x 10 mrmirzaee mrmirzaee 4096 Jun 3 17:13 Todo
Heres my error.log file for apache2 while trying to open localhost/phpmyadmin
[Fri Jun 03 18:30:05.279825 2022] [php:error] [pid 82981] [client ::1:44972] PHP Fatal error: Uncaught Error: Call to undefined function mb_strpos() in /usr/share/phpmyadmin/libraries/classes/Url.php:263\nStack trace:\n#0 /usr/share/phpmyadmin/libraries/classes/Url.php(213): PhpMyAdmin\\Url::getArgSeparator()\n#1 /usr/share/phpmyadmin/libraries/classes/Url.php(176): PhpMyAdmin\\Url::getCommonRaw()\n#2 /usr/share/phpmyadmin/libraries/classes/Core.php(752): PhpMyAdmin\\Url::getCommon()\n#3 /usr/share/phpmyadmin/libraries/classes/Core.php(339): PhpMyAdmin\\Core::linkURL()\n#4 /usr/share/phpmyadmin/libraries/classes/Core.php(366): PhpMyAdmin\\Core::getPHPDocLink()\n#5 /usr/share/phpmyadmin/libraries/classes/Core.php(994): PhpMyAdmin\\Core::warnMissingExtension()\n#6 /usr/share/phpmyadmin/libraries/common.inc.php(131): PhpMyAdmin\\Core::checkExtensions()\n#7 /usr/share/phpmyadmin/index.php(15): require_once('...')\n#8 {main}\n thrown in /usr/share/phpmyadmin/libraries/classes/Url.php on line 263
and heres the access log for that ::1 - - [03/Jun/2022:18:30:05 +0430] "GET /phpmyadmin/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36" ::1 - - [03/Jun/2022:18:30:56 +0430] "-" 408 0 "-" "-"
the same log files while opening my projects :
access log : ::1 - - [03/Jun/2022:18:35:12 +0430] "GET /Todo/ HTTP/1.1" 500 185 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36"
error log : [Fri Jun 03 18:35:12.880098 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(E:/xampp/htdocs/todo/bootstrap/config.php): Failed to open stream: No such file or directory in /var/www/html/Todo/Bootstrap/init.php on line 3 [Fri Jun 03 18:35:12.880251 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(): Failed opening 'E:/xampp/htdocs/todo/bootstrap/config.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/Todo/Bootstrap/init.php on line 3 [Fri Jun 03 18:35:12.880319 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(E:/xampp/htdocs/todo/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/Todo/Bootstrap/init.php on line 4 [Fri Jun 03 18:35:12.880337 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(): Failed opening 'E:/xampp/htdocs/todo/vendor/autoload.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/Todo/Bootstrap/init.php on line 4 [Fri Jun 03 18:35:12.880385 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(E:/xampp/htdocs/todo/libs/helpers.php): Failed to open stream: No such file or directory in /var/www/html/Todo/Bootstrap/init.php on line 5 [Fri Jun 03 18:35:12.880433 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: include(): Failed opening 'E:/xampp/htdocs/todo/libs/helpers.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/Todo/Bootstrap/init.php on line 5 [Fri Jun 03 18:35:12.880457 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880470 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "host" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880482 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880492 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "db_name" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880506 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880537 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "user" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880548 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Undefined variable $db_config in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880558 2022] [php:warn] [pid 82977] [client ::1:44978] PHP Warning: Attempt to read property "pass" on null in /var/www/html/Todo/Bootstrap/init.php on line 7 [Fri Jun 03 18:35:12.880730 2022] [php:error] [pid 82977] [client ::1:44978] PHP Fatal error: Uncaught Error: Call to undefined function diePage() in /var/www/html/Todo/Bootstrap/init.php:10\nStack trace:\n#0 /var/www/html/Todo/index.php(3): include()\n#1 {main}\n thrown in /var/www/html/Todo/Bootstrap/init.php on line 10
IDK why it's returning so much errs i literally use the same project on my windows xampp
I would suggest to check the PHP version and use a compatible one. You can use command php --version on linux. I see that you are trying to run PHPmyadmin, its advised to go through its version notes and check which PHP versions it supports.
I Fixed the problem
despite my project's problem which a false addressing in files was causing it
the PhpMyAdmin was not Responding because I hadn't installed an E called mbstrings as you can see in errors there is an undefined function mbstrops() which actually needs the mbstring Extension to run correctly i just installed the package which was compatible with my php version (8.0.1) and i got everything working correctly
in order to see how to install mbstrings Extesion see this :
Askubuntu
I have moved laravel projects before on shared hosting but not to university CentOS server.
I have put laravel public folder files inside public_html and I have put all other laravel project files under blog folder.
Root
-blog
-entire project files
-public_html
-all the public files
I changed 2 lines in index.php
require __DIR__.'/../blog/bootstrap/autoload.php';
$app = require_once __DIR__.'/../blog/bootstrap/app.php';
As you can see I have added /blog
I have access to SSH shell, and below are the list of errors:
PHP Warning: include(/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 10:43:58 2017] [error] [client 137.195.14.30] PHP Warning: include(): Failed opening '/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 10:43:58 2017] [error] [client 137.195.14.30] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', Array)\n#5 /home/cs/username/blog/vendor/lara in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 11:54:48 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 11:54:48 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 11:54:48 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', Array)\n#5 /home/cs/username/blog/vendor/lara in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 11:58:06 2017] [error] [client 92.98.49.227] PHP Warning: require(/home/cs/username/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:06 2017] [error] [client 92.98.49.227] PHP Fatal error: require(): Failed opening required '/home/cs/username/public_html/../bootstrap/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:09 2017] [error] [client 92.98.49.227] PHP Warning: require(/home/cs/username/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:09 2017] [error] [client 92.98.49.227] PHP Fatal error: require(): Failed opening required '/home/cs/username/public_html/../bootstrap/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:12 2017] [error] [client 92.98.49.227] PHP Warning: require(/home/cs/username/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:12 2017] [error] [client 92.98.49.227] PHP Fatal error: require(): Failed opening required '/home/cs/username/public_html/../bootstrap/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:14 2017] [error] [client 92.98.49.227] PHP Warning: require(/home/cs/username/public_html/../bootstrap/autoload.php): failed to open stream: No such file or directory in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 11:58:14 2017] [error] [client 92.98.49.227] PHP Fatal error: require(): Failed opening required '/home/cs/username/public_html/../bootstrap/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/index.php on line 22
[Thu Jun 08 12:05:35 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:05:35 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:05:35 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 12:05:38 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:05:38 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:05:38 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 12:05:46 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 12:05:46 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 12:05:46 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 12:07:33 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:07:33 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:07:33 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 12:55:51 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:55:51 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 12:55:51 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 12:56:05 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 12:56:05 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 12:56:05 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 12:56:11 2017] [crit] [client 92.98.49.227] (13)Permission denied: /home/cs/username/public_html/app/Http/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 13:13:58 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:14:09 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:14:14 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:21:42 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:21:52 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:21:54 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:21:55 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:21:58 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:22:01 2017] [alert] [client 92.98.49.227] /home/cs/username/public_html/public/.htaccess: Options not allowed here
[Thu Jun 08 13:22:20 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:22:20 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/public_html/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/public_html/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:22:20 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 13:29:56 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', in /home/cs/username/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729, referer: http://www2.macs.hw.ac.uk/~mf156/
[Thu Jun 08 13:35:34 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:35:34 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:35:34 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', Array)\n#5 /home/cs/username/blog/vendor/lara in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 13:35:40 2017] [error] [client 92.98.49.227] File does not exist: /home/cs/username/public_html/public
[Thu Jun 08 13:35:45 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:35:45 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:35:45 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', Array)\n#5 /home/cs/username/blog/vendor/lara in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
[Thu Jun 08 13:36:48 2017] [error] [client 92.98.49.227] PHP Warning: include(/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php): failed to open stream: Permission denied in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:36:48 2017] [error] [client 92.98.49.227] PHP Warning: include(): Failed opening '/home/cs/username/blog/vendor/composer/../../app/Http/Kernel.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /home/cs/username/blog/vendor/composer/ClassLoader.php on line 444
[Thu Jun 08 13:36:48 2017] [error] [client 92.98.49.227] PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class App\\Http\\Kernel does not exist' in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php:729\nStack trace:\n#0 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(729): ReflectionClass->__construct('App\\\\Http\\\\Kernel')\n#1 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(608): Illuminate\\Container\\Container->build('App\\\\Http\\\\Kernel')\n#2 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(564): Illuminate\\Container\\Container->resolve('App\\\\Http\\\\Kernel', Array)\n#3 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(709): Illuminate\\Container\\Container->makeWith('App\\\\Http\\\\Kernel', Array)\n#4 /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php(248): Illuminate\\Foundation\\Application->makeWith('App\\\\Http\\\\Kernel', Array)\n#5 /home/cs/username/blog/vendor/lara in /home/cs/username/blog/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 729
If public_html/ is your web root directory, then you might want to place ALL your Laravel files inside of the web root directory. Laravel should know how to use its own public folder. You shouldn't have to change the autoload paths.
For permissions to other important Laravel directories, please read this:
"Directory Permissions
After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run. If you are using the Homestead virtual machine, these permissions should already be set."
good afternoon
SSO does not work (client IE 9, FireFox 38)
error.httpd.log
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1944): [client 172.20.204.231] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1944): [client 172.20.204.231] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1279): [client 172.20.204.231] Acquiring creds for HTTP/itsm-dev#TEST.DOMAIN.COM.UA
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1698): [client 172.20.204.231] Verifying client data using KRB5 GSS-API
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1714): [client 172.20.204.231] Client didn't delegate us their credential
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1742): [client 172.20.204.231] Warning: received token seems to be NTLM, which isn't supported by the Kerberos module. Check your IE configuration.
[Sun Feb 15 10:06:02 2015] [debug] src/mod_auth_kerb.c(1139): [client 172.20.204.231] GSS-API major_status:00070000, minor_status:00000000
[Sun Feb 15 10:06:02 2015] [error] [client 172.20.204.231] gss_accept_sec_context() failed: No credentials were supplied, or the credentials were unavailable or inaccessible (, Unknown error)
export KRB5_TRACE=/dev/stdout
kinit -V -k -t /etc/krb5.keytab -p HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
Using default cache: /tmp/krb5cc_0
Using principal: HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
Using keytab: /etc/krb5.keytab
[16729] 1424007693.340272: Getting initial credentials for HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
[16729] 1424007693.342682: Looked up etypes in keytab: (empty
[16729] 1424007693.342729: Getting initial credentials for HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua
[16729] 1424007693.342780: Looked up etypes in keytab: (empty
kinit: Keytab contains no suitable keys for HTTP/itsmproxy.test.domain.com.ua#test.domain.com.ua while getting initial credentials
klist -kte /etc/krb5.keytab2
Keytab name: FILE:/etc/krb5.keytab2
KVNO Timestamp Principal
---- ----------------- --------------------------------------------------------
5 01/01/70 03:00:00 HTTP/itsm-dev#TEST.DOMAIN.COM.UA (arcfour-hmac)
where could be the problem?
On Linux side you are using mod_auth_kerb which supports Kerberos authentication but your client sends NTLMSSP. This is unsupported.
If you want to have NTLMSSP working, you'd better to use mod_auth_gssapi and GSSAPI NTLMSSP modules from https://github.com/simo5/mod_auth_gssapi and https://fedorahosted.org/gss-ntlmssp/
I made a project in laravel and when I migrated to a live server it gives me 500 internal error.
This is the first time I try to install laravel.
The problem occurs when I run rm -rf public_html AND ln -s laravel/public/ public_html
This is the error log:
[Sat Nov 08 12:57:46 2014] [notice] Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 12:58:01 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:03:27 2014] [error] [client IP ADDRESS ] File does not exist: /home/%STACK%/public_html/500.shtml
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
[Sat Nov 08 13:07:00 2014] [error] [client IP ADDRESS ] File does not exist: /home/%STACK%/public_html/500.shtml
[Sat Nov 08 13:09:02 2014] [error] [client IP ADDRESS ] SoftException in Application.cpp:357: UID of script "/home/%STACK%/public_html/index.php" is s$
[Sat Nov 08 13:09:02 2014] [error] [client IP ADDRESS ] Premature end of script headers: index.php
Change the permissions of your app/storage folder to 755 if that doesn't works change it to 777. If you are running nginx on the server check /etc/nginx/nginx.conf file and check the first which states the user running nginx and then
chown -R www-data:www-data /your/document/root/public_html/
change www-data by the user name you found in config file you can also validate it by running ps on terminal
I'm getting the following error on my svn repository
<D:error>
<C:error/>
<m:human-readable errcode="13">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
I've followed the instructions from the How to Geek, and the Ubuntu Community Page, but to no success. I've even given the repository 777 permissions.
<Location /svn/myProject >
# Uncomment this to enable the repository
DAV svn
# Set this to the path to your repository
SVNPath /svn/myProject
# Comments
# Comments
# Comments
AuthType Basic
AuthName "My Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# More Comments
</Location>
The permissions follow:
drwxrwsrwx 6 www-data webdev 4096 2010-02-11 22:02 /svn/myProject
And svnadmin validates the directory
$svnadmin verify /svn/myProject/
* Verified revision 0.
and I'm accessing the repository at
http://ipAddress/svn/myProject
Edit: The apache error log says
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] (20014)Internal error: Can't open file '/svn/myProject/format': Permission denied
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not fetch resource information. [500, #0]
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not open the requested SVN filesystem [500, #13]
[Fri Feb 12 13:55:59 2010] [error] [client <ip>] Could not open the requested SVN filesystem [500, #13]
Even though I confirmed that this file is ugo readable and writable.
What am I doing wrong?
I had to give permissions to apache to the directory above my repo: ie /svn
I used the command
sudo chown -R www-data:webdev /svn
Perhaps the permissions of the files and subdirectories in /svn/myProject weren't changed. Did you change them recursively?