apache-config

.htaccess : Location not allowed here

你说的曾经没有我的故事 提交于 2019-12-04 00:06:23
I am getting a "Location not allowed here" error with this .htaccess . Does anyone have any idea on how I should fix this? <Files 'login'> AuthName NTLM AuthType NTLM NTLMAuth on NTLMAuthoritative on NTLMServer <censored> NTLMBackup <censored> NTLMLockfile <censored> require valid-user Satisfy all </Files> <Location /alarms/[0-9]+/acknowlege> Order deny,allow Deny from all Allow from localhost </Location> Location isn't valid in .htaccess See: http://httpd.apache.org/docs/2.2/mod/core.html#location http://httpd.apache.org/docs/2.2/mod/core.html#files Notice how Files says that you can have it

xdebug not loading. not found in phpinfo() after apache restart

依然范特西╮ 提交于 2019-12-03 11:21:22
问题 I've been scouring every resource I could find, but came up empty. I get the dreaded "Waiting for Connection" message in NetBeans 6.9 when I start a debug session. After much reading, most folks are able to get phpinfo() to display that it loaded the xdebug module. Not so with me. I downloaded the source through SVN using this call svn co svn://svn.xdebug.org/svn/xdebug/xdebug/trunk xdebug I switched to the xdebug directory and then ran phpize on the source sudo /Applications/MAMP/bin/php5

How can I prevent tons of apache processes spawning when I start apache and proceeding to kill my machine?

假装没事ソ 提交于 2019-12-03 01:27:02
问题 I have a highly trafficked application on one debian machine and apache has started acting strange. Every time I start apache, tons of apache processes are spawned, the app doesn't load at all, and very quickly the whole machine freezes and must be powercycled to reboot. Here is what I get for top immediately after starting apache: top - 20:14:44 up 1:16, 2 users, load average: 0.48, 0.10, 0.03 Tasks: 330 total, 5 running, 325 sleeping, 0 stopped, 0 zombie Cpu(s): 12.0%us, 21.4%sy, 0.0%ni, 65

Is it possible to use variables in httpd.conf

你说的曾经没有我的故事 提交于 2019-12-03 01:08:43
Is there a way to use variables of some sort in an apache httpd.conf file? I'd like to define a value and use it throughout a block, as in define myvar somename #or whatever the syntax would be alias /my/path "/some/path/${myvar} #or whatever the syntax would be noodl Yes, kind of. You can get environment variables substituted in to the config file at start up with the ${ENVVAR} syntax. It's up to you to figure out how to set those variables before starting up the server. http://httpd.apache.org/docs/2.2/configuring.html#syntax Note that these variables will persist so any scripts in languages

xdebug not loading. not found in phpinfo() after apache restart

穿精又带淫゛_ 提交于 2019-12-03 00:51:10
I've been scouring every resource I could find, but came up empty. I get the dreaded "Waiting for Connection" message in NetBeans 6.9 when I start a debug session. After much reading, most folks are able to get phpinfo() to display that it loaded the xdebug module. Not so with me. I downloaded the source through SVN using this call svn co svn://svn.xdebug.org/svn/xdebug/xdebug/trunk xdebug I switched to the xdebug directory and then ran phpize on the source sudo /Applications/MAMP/bin/php5/bin/phpize Password: grep: /Applications/MAMP/bin/php5/include/php/main/php.h: No such file or directory

Restart httpd after changes in the httpd.conf

我们两清 提交于 2019-12-02 21:41:15
Do I need to restart httpd after changes in the httpd.conf file for changes to take effect? Yes. HTTPD.conf is read on apache start-up, so for any changes to take affect you need to restart it. Raghunandan J Yes you need to restart the server by sudo service httpd restart You can check errors in your config files by apachectl -t Changes may take some time to reflect. You can have apache re-read its config files without restarting by sudo apachectl graceful (or apache2ctl on debian). From the Apache docs : Gracefully restarts the Apache httpd daemon. If the daemon is not running, it is started.

PHP mail() function does not work on web-host

依然范特西╮ 提交于 2019-12-02 20:08:35
问题 I'm having issues sending emails using the php mail() function. I know the php script I have works because I have an identical copy of it on another web-hosting company and it works there. I think it has to do with the web-hosting company itself. Do any of you know what I need to do in order to make it work? Is there something I need to tell them to install? I think they're running on Apache. Thanks, Amit For clarification purposes, here is the mail-script. <?php $to = 'my@email.com';

How can I prevent tons of apache processes spawning when I start apache and proceeding to kill my machine?

只愿长相守 提交于 2019-12-02 14:49:50
I have a highly trafficked application on one debian machine and apache has started acting strange. Every time I start apache, tons of apache processes are spawned, the app doesn't load at all, and very quickly the whole machine freezes and must be powercycled to reboot. Here is what I get for top immediately after starting apache: top - 20:14:44 up 1:16, 2 users, load average: 0.48, 0.10, 0.03 Tasks: 330 total, 5 running, 325 sleeping, 0 stopped, 0 zombie Cpu(s): 12.0%us, 21.4%sy, 0.0%ni, 65.7%id, 0.2%wa, 0.1%hi, 0.7%si, 0.0%st Mem: 8179920k total, 404984k used, 7774936k free, 60716k buffers

How to support “AddType x-mapp-php5 .php” on my development machine

和自甴很熟 提交于 2019-12-01 05:29:22
问题 My ISP requires me to put the following in my .htaccess files: AddType x-mapp-php5 .php But that breaks my development machine. I don't really understand what that directive is for, but I'm sick of commenting it out for dev, and uncommenting it whenever I need to upload a new version. Is there some way of supporting it in dev? 回答1: You could try the <IfModule> Apache directive to distinguish your development machine from the production machine. E.g. the following would work if you're running

What is the mac equivalent of “/etc/apache2/sites-available”?

蹲街弑〆低调 提交于 2019-11-30 18:19:48
I am installing Koha from source. Generic unix directions indicate the following step after sudo make install sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha huh? My apache2 directory contains no sites-available, only /private/etc/apache2/extra /private/etc/apache2/httpd.conf /private/etc/apache2/magic /private/etc/apache2/mime.types /private/etc/apache2/original /private/etc/apache2/other /private/etc/apache2/users I am supposed to be able to Browse to http://servername:8080/ to run Koha, where I take it "servername" is specified in koha-httpd.conf as follows: ##