Questions tagged as 'apache'

2
answers

Analyzing resource consumption by script

I have a server with Ubuntu Server 12.04 LTS OS, on this machine I have apache2 with PHP5 and PERL installed, but it consumes a lot of CPU resources, I would like to know if it is a problem script anymore for this I would have which review one b...
asked by 26.09.2014 / 14:57
2
answers

How to make NGinx display error messages on screen in the same way that Apache does instead of '502 bad gateway'

NGinx and Apache display errors differently when there is a problem running a PHP script. Apache, when configured to display on screen, accurately displays the error, with file and line where it occurred, but NGinx typically only displays someth...
asked by 05.02.2014 / 17:42
1
answer

I can not get the domain name with php

I am facing a problem that is to get the domain name from my site. I tried the code: define('PROTOCOL', 'http://'); define('DOMAIN', (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '')); define('SUB_FOLDER', str_replace('public', '',...
asked by 05.05.2018 / 00:06
1
answer

Create bat to finish Service

I'm trying to create a .bat file to terminate and start a service in Windows. To do this I first end the process after restarting the service But the command inside the batch file (.bat) does not find the process that is taskkill /f /im...
asked by 23.05.2018 / 15:36
2
answers

Apache: prevent SSL redirection of a specific URL

My server (Apache 2x) is working properly with SSL certificate but I need to prevent only a single URL from accepting normal (HTTP only) connection. The current structure looks like this (it's messed up, due to tests already done) <Vir...
asked by 08.02.2018 / 16:48
1
answer

problem changing PHP environment variable

I installed php via xampp and I need to change this variable: NSL_LANG.Icreatedaphpfilewiththiscode:<?phpputenv("NLS_LANG=BRAZILIAN PORTUGUESE_BRAZIL.WE8MSWIN1252") or die("Falha ao inserir a variavel de ambiente"); phpinfo(); ?>...
asked by 26.01.2018 / 18:55
1
answer

Error 404 apache Tomcat

I'm new to web services, however lately I've gotten to develop my own, however I can not even do a hello world due to an error that Tomcat is returning me, it just does not find the URL, can you help me? package Login; import javax.ws.rs.core...
asked by 28.02.2018 / 22:43
1
answer

How do I force .htaccess to direct a subdomain into a folder?

I do not understand much of apache's .htaccess, so I would like to ask colleagues if it is possible what I will explain, I have a domain: mycard.com.br and a subdomain teste.mycard.com.br the folder domain / home / mycard / html already the subd...
asked by 21.11.2017 / 20:36
1
answer

Load page inside a div with Ajax

Good afternoon! I am trying to use Ajax to load a page inside a div that I have, but it is giving 403 error (Forbidden). In case I can not do this? Would I have to do it any other way? NOTE: The page I want to load is zendesk. $j.ajax({...
asked by 26.10.2017 / 18:54
1
answer

How to use the "php_admin_value" flag in virtualhost through PHP-FPM in a specific Virtual Host?

I decided to swap Apache2Handler with PHP-FPM on my server. After this change, I tried to run sudo apache2ctl configtest and got the following error:    AH00526: Syntax error on line 53 of /etc/apache2/apache2.conf :   Invalid co...
asked by 02.10.2017 / 16:34