apache2.4

Apache shutdown - Couldn't grab mutex

醉酒当歌 提交于 2019-12-04 09:02:43
For some reasons unknow to me, Apache is crashing. This is the apache log at the moment of the crash: [Sat Jun 02 02:38:05.196006 2018] [mpm_prefork:emerg] [pid 1122] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.196006 2018] [mpm_prefork:emerg] [pid 1116] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.198767 2018] [mpm_prefork:emerg] [pid 1115] (43)Identifier removed: AH00144: couldn't grab the accept mutex [Sat Jun 02 02:38:05.199523 2018] [mpm_prefork:emerg] [pid 3924] (43)Identifier removed: AH00144: couldn't grab

Change localhost directory for Yosemite Apache 2.4

元气小坏坏 提交于 2019-12-04 07:46:29
问题 I have clean installed Mac OSX Yosemite but I cant configure the Apache 2.4 like I have always done on older OSX versions. Here is what I want to do : set the "localhost" directory to "/Users/username/Public/". But, everything I tried won't work, I always get a "Forbiden, can't access to /" or I get the default "It works!" page... How to simply reroot my localhost ? Thx EDIT (thanks to Krister Andersson for the answer) For Mac OSX 10.10 Yosemite I also post the changes I had to do to keep

How can I get Gitlab 6.5 to show its icons under a Apache 2.4 proxy?

陌路散爱 提交于 2019-12-04 06:42:03
问题 I cannot fix the icons on Gitlab bring proxied by Apache 2.4. My failure may be because I am not using passenger (passenger provided its own set of problems that were much deeper), but I took all the steps in running it under a proxied /gitlab . I also ran: sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/gitlab I restarted Apache as well. No improvement. The icons were still missing (or I should say the font woff file returns status 200 to the

htaccess If…Else always selects Else

匆匆过客 提交于 2019-12-04 00:36:39
I set an environment variable in httpd-vhosts.conf SetEnv EARLY_VAR 1 I try setting special rules based on its value in .htaccess <If "%{ENV:EARLY_VAR} == '1'"> SetEnv TEST_VAR if_branch </If> <Else> SetEnv TEST_VAR else_branch </Else> I expect TEST_VAR environment var to equal if_branch . In PHP var_dump(getenv('EARLY_VAR')); // string '1' var_dump(getenv('TEST_VAR')); // string 'else_branch' I also tried setting EARLY_VAR in .htaccess above the If/Else, both using SetEnv and SetEnvIf . Always the Else branch is executed. Why is this? Apache 2.4 Without using expression i.e. if/else

Can't configure the rewrite log

[亡魂溺海] 提交于 2019-12-03 10:07:11
I'd like to enable the rewrite log to debug some rewrite rules that are giving me problems. So I added these lines at the end of my httpd.conf file: <IfModule mod_rewrite.c> RewriteLog "/logs/rewrite.log" RewriteLogLevel 4 </IfModule> Next thing I did was restart Apache. It causes an error however, and won't start. This is what I get in the XAMPP Control Panel: 13:14:56 [Apache] Error: Apache shutdown unexpectedly. 13:14:56 [Apache] This may be due to a blocked port, missing dependencies, 13:14:56 [Apache] improper privileges, a crash, or a shutdown by another method. 13:14:56 [Apache] Check

How to show Directory Index in Apache 2.4 with custom Document Root

有些话、适合烂在心里 提交于 2019-12-03 09:56:38
i have problem in Apache 2.4 in Ubuntu 13.10. I try to change Document Root to /home/fandi/public_html And all working fine. But i try to create folder in my public_html/ i get an error like this : [Sat Jan 25 10:59:50.149441 2014] [autoindex:error] [pid 1093] [client 127.0.0.1:39901] AH01276: Cannot serve directory /home/fandi/public_html/report_php/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive I must create file index.html , index.php and other index.xxx file. In default

Installing apache 2.4 and php 5.5 on ubuntu 12.04

穿精又带淫゛_ 提交于 2019-12-03 09:00:59
问题 I'm trying to set a test enviroment with apache 2.4 and php 5.5 on a vm with ubuntu 12.04, fist thing is to add the repositories apt-add-repository ppa:ptn107/apache apt-add-repository ppa:ondrej/php5 Then installing apache 2.4 apt-get install apache2-mpm-worker checking apache version: # apache2 -v Server version: Apache/2.4.6 (Ubuntu) Server built: Sep 23 2013 07:23:34 Installing PHP 5.5 apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5

Laravel The stream or file “/storage/logs/laravel.log” could not be opened: failed to open stream: Permission denied

走远了吗. 提交于 2019-12-03 00:42:26
I'm running Laravel app on server (Ubuntu 16.04). I have an error The stream or file "/var/www/mydomain.com/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied I've already google my question. I found this answer , but it wasn't helpful. I can't set 777 permission for storage (it's dangerous), as was suggested by many other answers I found. Any other suggestions? UPDATE: sudo chgrp -R www-data storage bootstrap/cache sudo chmod -R ug+rwx storage bootstrap/cache was helpful This commands were helpful: sudo chgrp -R www-data storage bootstrap/cache sudo chmod

Installing apache 2.4 and php 5.5 on ubuntu 12.04

 ̄綄美尐妖づ 提交于 2019-12-02 23:13:07
I'm trying to set a test enviroment with apache 2.4 and php 5.5 on a vm with ubuntu 12.04, fist thing is to add the repositories apt-add-repository ppa:ptn107/apache apt-add-repository ppa:ondrej/php5 Then installing apache 2.4 apt-get install apache2-mpm-worker checking apache version: # apache2 -v Server version: Apache/2.4.6 (Ubuntu) Server built: Sep 23 2013 07:23:34 Installing PHP 5.5 apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5-dev php5-imap php5-mcrypt Checking php version php -v PHP 5.5.8-3+sury.org~precise+1 (cli) (built: Jan

Change localhost directory for Yosemite Apache 2.4

余生颓废 提交于 2019-12-02 16:45:36
I have clean installed Mac OSX Yosemite but I cant configure the Apache 2.4 like I have always done on older OSX versions. Here is what I want to do : set the "localhost" directory to "/Users/username/Public/". But, everything I tried won't work, I always get a "Forbiden, can't access to /" or I get the default "It works!" page... How to simply reroot my localhost ? Thx EDIT (thanks to Krister Andersson for the answer) For Mac OSX 10.10 Yosemite I also post the changes I had to do to keep things running. In "/etc/apache2/users/", I created a file named by my username like this "myUsername.conf