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
Related
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 am using Ubuntu 18.04 on AWS EC2 instance free tier, running websites on Apache server, NodeJS with PostgreSQL database. All deployments are done perfectly and web-apps works fine without any exception or error details.
However I am facing an annoying issue: this instance is stopping frequently without any exception or error logs. After rebooting instance everything starts working fine but after some time it automatically stops either in few hrs. on same day when rebooted instance or in 1-2 days after that.
Below are some Apache logs (var/log/apache2) I tried to analysed but couldn't found out what is causing this exactly:[there is error log is looks related to this:
**[Sun Jul 05 14:11:30.444362 2020] [mpm_event:notice] [pid 1007:tid 140440680164288] AH00491: caught SIGTERM, shutting down]** ]
[Sun Jul 05 13:10:44.389403 2020] [mpm_event:notice] [pid 1007:tid 140440680164288] AH00489: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Jul 05 13:10:44.389524 2020] [core:notice] [pid 1007:tid 140440680164288] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 05 13:10:55.517856 2020] [proxy:error] [pid 1009:tid 140440540890880] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:55.517921 2020] [proxy_http:error] [pid 1009:tid 140440540890880] [client 27.97.147.181:32952] AH01114: HTTP: failed to make connection to backend: localhost
[Sun Jul 05 13:10:55.969159 2020] [proxy:error] [pid 1008:tid 140440582854400] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:55.969223 2020] [proxy_http:error] [pid 1008:tid 140440582854400] [client 27.97.147.181:25642] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://xx.xx.xx.x6x/
[Sun Jul 05 13:10:59.352669 2020] [proxy:error] [pid 1009:tid 140440549283584] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:59.352711 2020] [proxy_http:error] [pid 1009:tid 140440549283584] [client 27.97.147.181:12476] AH01114: HTTP: failed to make connection to backend: localhost
[Sun Jul 05 13:10:59.687423 2020] [proxy:error] [pid 1008:tid 140440574461696] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:10:59.687463 2020] [proxy_http:error] [pid 1008:tid 140440574461696] [client 27.97.147.181:26001] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://xx.xx.xx.x6x/
[Sun Jul 05 13:11:26.091717 2020] [proxy:error] [pid 1009:tid 140440557676288] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:11:26.091772 2020] [proxy_http:error] [pid 1009:tid 140440557676288] [client 27.97.147.181:38107] AH01114: HTTP: failed to make connection to backend: localhost
[Sun Jul 05 13:11:26.420448 2020] [proxy:error] [pid 1009:tid 140440464520960] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:4200 (localhost) failed
[Sun Jul 05 13:11:26.420481 2020] [proxy_http:error] [pid 1009:tid 140440464520960] [client 27.97.147.181:58238] AH01114: HTTP: failed to make connection to backend: localhost, referer: http://xx.xx.xx.x6x/
[Sun Jul 05 14:11:25.939273 2020] [proxy_http:error] [pid 1009:tid 140440557676288] (104)Connection reset by peer: [client 27.97.43.52:50804] AH01102: error reading status line from remote server localhost:4200, referer: http://domain-name.com/sockjs-node/iframe.html
[Sun Jul 05 14:11:25.980501 2020] [proxy:error] [pid 1009:tid 140440557676288] [client 27.97.43.52:50804] AH00898: Error reading from remote server returned by /__webpack_dev_server__/sockjs.bundle.js, referer: http://domain-name.com/sockjs-node/iframe.html
[Sun Jul 05 14:11:30.444362 2020] [mpm_event:notice] [pid 1007:tid 140440680164288] AH00491: caught SIGTERM, shutting down
[Sun Jul 05 14:13:35.011864 2020] [mpm_event:notice] [pid 995:tid 140269259320256] AH00489: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Sun Jul 05 14:13:35.156051 2020] [core:notice] [pid 995:tid 140269259320256] AH00094: Command line: '/usr/sbin/apache2'
I had seen this type of issue before and it was DNS issue.
after lots of searches, I found out that the DNS of my domain was not registered correctly.
suddenly i am getting this error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster#kibakibi.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
and in apache error logs
[Fri Jan 19 12:42:15.226845 2018] [core:error] [pid 19115] [client 5.255.250.144:60384] End of script output before headers: index.php
[Fri Jan 19 12:42:17.217114 2018] [:error] [pid 19098] [client 5.188.10.11:51242] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:17.217148 2018] [core:error] [pid 19098] [client 5.188.10.11:51242] End of script output before headers: index.php
[Fri Jan 19 12:42:17.221895 2018] [:error] [pid 19098] [client 5.188.10.11:51242] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:17.221921 2018] [core:error] [pid 19098] [client 5.188.10.11:51242] End of script output before headers: index.php
[Fri Jan 19 12:42:20.958247 2018] [:error] [pid 19113] [client 54.36.148.28:59462] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:20.958275 2018] [core:error] [pid 19113] [client 54.36.148.28:59462] End of script output before headers: index.php
[Fri Jan 19 12:42:20.963483 2018] [:error] [pid 19113] [client 54.36.148.28:59462] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:20.963510 2018] [core:error] [pid 19113] [client 54.36.148.28:59462] End of script output before headers: index.php
[Fri Jan 19 12:42:21.772834 2018] [:error] [pid 19089] [client 66.249.66.21:41503] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:21.772862 2018] [core:error] [pid 19089] [client 66.249.66.21:41503] End of script output before headers: index.php
[Fri Jan 19 12:42:21.777434 2018] [:error] [pid 19089] [client 66.249.66.21:41503] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:21.777458 2018] [core:error] [pid 19089] [client 66.249.66.21:41503] End of script output before headers: index.php
[Fri Jan 19 12:42:21.911961 2018] [:error] [pid 19093] [client 84.201.133.27:54553] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:21.911994 2018] [core:error] [pid 19093] [client 84.201.133.27:54553] End of script output before headers: index.php
[Fri Jan 19 12:42:21.917152 2018] [:error] [pid 19093] [client 84.201.133.27:54553] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:21.917178 2018] [core:error] [pid 19093] [client 84.201.133.27:54553] End of script output before headers: index.php
[Fri Jan 19 12:42:21.974311 2018] [:error] [pid 19090] [client 5.188.10.11:53661] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:21.974334 2018] [core:error] [pid 19090] [client 5.188.10.11:53661] End of script output before headers: index.php
[Fri Jan 19 12:42:21.979110 2018] [:error] [pid 19090] [client 5.188.10.11:53661] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:21.979133 2018] [core:error] [pid 19090] [client 5.188.10.11:53661] End of script output before headers: index.php
[Fri Jan 19 12:42:22.944860 2018] [:error] [pid 19115] [client 54.36.149.63:42200] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:22.944888 2018] [core:error] [pid 19115] [client 54.36.149.63:42200] End of script output before headers: index.php
[Fri Jan 19 12:42:22.949539 2018] [:error] [pid 19115] [client 54.36.149.63:42200] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:22.949562 2018] [core:error] [pid 19115] [client 54.36.149.63:42200] End of script output before headers: index.php
[Fri Jan 19 12:42:23.190276 2018] [:error] [pid 19091] [client 100.43.81.113:55308] EasyApache PHP config file not found: /php.conf.yaml
[Fri Jan 19 12:42:23.190302 2018] [core:error] [pid 19091] [client 100.43.81.113:55308] End of script output before headers: index.php
[Fri Jan 19 12:42:23.194975 2018] [:error] [pid 19091] [client 100.43
I just rebuild the easy apache php settings and everything started working again.
(if you are on local just restart the apache if it does not work reinstall the apache and php services).
this is so that I get an error when I work with preatashop, and I get a 404 error and I can not possibly see the error.
error on my hosting are here:
[Tue Mar 18 16:29:31.837809 2014] [:error] [pid 381031] [client 188.181.88.9:42136]
SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:23:45.421181 2014] [:error] [pid 375394] [client 183.81.54.21:40210] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=52745cf84f136fef00d2738ad3be8887&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:22:34.397894 2014] [:error] [pid 373007] [client 183.81.54.21:39642] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=52745cf84f136fef00d2738ad3be8887&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:20:13.975016 2014] [:error] [pid 368791] [client 188.181.88.9:38718] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=c743f4f33c0588a21fa3880e5772bf6c&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:19:35.680863 2014] [:error] [pid 368791] [client 183.81.54.21:38415] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:19:32.283604 2014] [:error] [pid 367335] [client 183.81.54.21:38408] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:18:58.956017 2014] [:error] [pid 371329] [client 183.81.54.21:38290] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/admin123/index.php?controller=AdminModules&token=52745cf84f136fef00d2738ad3be8887&configure=blockadvfooter&tab_module=others&module_name=blockadvfooter
[Tue Mar 18 16:18:54.456715 2014] [:error] [pid 369337] [client 188.181.88.9:38293] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:18:33.148207 2014] [:error] [pid 369336] [client 183.81.54.21:38191] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:18:24.373591 2014] [:error] [pid 359359] [client 183.81.54.21:38139] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:18:18.820409 2014] [:error] [pid 368791] [client 183.81.54.21:38121] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:17:52.208217 2014] [:error] [pid 369336] [client 183.81.54.21:37992] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group, referer: http://www.shop-bo.dk/index.php
[Tue Mar 18 16:17:45.449577 2014] [:error] [pid 368791] [client 183.81.54.21:37955] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:17:32.821418 2014] [:error] [pid 369336] [client 183.81.54.21:37852] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:16:23.042423 2014] [:error] [pid 367335] [client 183.81.54.21:37511] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:15:57.751759 2014] [:error] [pid 367335] [client 183.81.54.21:37445] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:15:49.707305 2014] [:error] [pid 361467] [client 188.181.88.9:37419] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
[Tue Mar 18 16:15:38.862260 2014] [:error] [pid 369137] [client 183.81.54.21:37391] SoftException in Application.cpp:601: Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
I have set to be user-friendly URL - htacces
my .htaccess its here:
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
SetEnv HTTP_MOD_REWRITE On
RewriteEngine on
RewriteCond %{HTTP_HOST} ^demo4leotheme.com$
RewriteRule . - [E=REWRITEBASE:/prestashop/leo_mobile/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^demo4leotheme.com$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /prestashop/leo_mobile/index.php?controller=404
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
Your error.log shows something important:
Directory "/home/jesperbo/public_html/shop-bo.dk/modules" is writeable by group
Fix this error by changing your permissions using this chmod command:
chmod g-w /home/jesperbo/public_html/shop-bo.dk/modules
I installed and set up BitNami Redmine Stack and created the repository:
svnadmin create /var/svn/repository0/
I use basic authentication.
Part of httpd.conf:
<Location>
DAV svn
SVNParentPath /var/svn
AuthName "Subversion Repository"
AuthType Basic
AuthUserFile /etc/svn-auth.passwd
Require valid-user
Satisfy Any
AuthzSVNAccessFile /var/svn/authz
</Location>
Part of svn-auth.passwd:
htpasswd -c -m /etc/svn-auth.htpasswd someuser
someuser:$apr1$bTN...
authz:
[/]
* = r
[repository0:/]
someuser = rw
When I go through this url: http://remote-linux-host:81/svn/repository0/ I get the following:
I enter my credentials and see:
Forbidden
You don't have permission to access /svn/repository0/ on this server.
For this url http://remote-linux-host:81/svn/ I get:
<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>
What I have in error.log:
...
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:17 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:20 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Failed to load the AuthzSVNAccessFile: /var/svn/authz:22: Option expected
[Wed Dec 12 15:16:38 2012] [error] [client ..ip...] Access denied: 'someuser' GET svn:/repository0
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] (20014)Internal error: Can't open file '/var/svn/format': No such file or directory
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not fetch resource information. [500, #0]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem [500, #2]
[Wed Dec 12 15:16:46 2012] [error] [client ..ip...] Could not open the requested SVN filesystem [500, #2]
I made some small changes in the authz file:
[groups]
developers = someuser
[repository0:/]
#developers = rw
Now, when I go through this url again http://remote-linux-host:81/svn/repository0/ I get the following:
<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>
What am I doing wrong?
I gave read/write access for the user who runs the Apache and now everything is OK.