Questions tagged as 'apache'

1
answer

Install certificate .CER.PEM Linux Centos7

I need to install a certificate for a webservice in Apache (Centos7). The files they sent us are these: xxx.cer.pem xxx.pfx Can anyone tell me how I can install these certificates? Thanks!     
asked by 05.12.2016 / 20:07
1
answer

How do I Restart apache on a web server? [closed]

I made some settings in php.ini from my site that are not working, and they told me that I needed to restart apache to work, but I do not know how to proceed with this reboot. Can someone give me a way to do it?     
asked by 30.07.2016 / 18:02
1
answer

allowing access to the webserver only with android

I have a folder in my webserver called webserver, inside it I have several php files that mount the json that is sent to my app that I am mounting. But I wanted to block this folder to not be accessed by any browser, only by android. Is i...
asked by 05.07.2016 / 13:45
1
answer

block image link to other sites

I have the following folder in the root of my site: Arquivos/Fotos/goto1.jpg If I type in the browser the link with my site (www.mysite.com/Arquivos/Photos/goto1.jpg) the photo opens, and is it possible to block it? I mean let the photo onl...
asked by 26.07.2016 / 14:18
1
answer

Problems implementing a method that sends email

import java.util.Properties; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.commons.mail.DefaultAuthenticator; import org.apache.commons.mail.EmailException; import org.apache.commons.mail.SimpleEmail; import j...
asked by 05.04.2016 / 16:51
1
answer

Error in libpython, installing Trac, running with apache 2.4

I'm installing Trac with Apche2.4 mod_python, but when I start the service the following error appears: [:error] [pid 7937:tid 140094741256064] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'. [:error] [pid 7937:tid 14...
asked by 22.03.2016 / 19:22
1
answer

Document root Apache 2 can not find laravel routes

Based on the assumption that we are on a linux server we have the following senary. the document root pointed to <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot /var/www/html/laravel/public ServerName site.com.br hence w...
asked by 08.05.2016 / 16:02
3
answers

How do you configure phpmyadmin on linux?

I gave apt-get install phpmyadmin and linux installed it in the etc folder; I ran in the browser http://localhost/phpmyadmin and gave 404 error. I changed and threw the phpmyadmin folder into the www directory, but it...
asked by 21.01.2016 / 16:10
3
answers

php file_exists function - relative and absolute path

In PHP applications, when I use absolute path, everything works perfectly, but when I use relative path, it does not work. An example: in my application I have to use this: file_exists("/var/www/html/meus_projetos/dgnetwork/public_html/mode...
asked by 31.10.2015 / 18:43
1
answer

Redirect 301 adding many "/" s at the end

I'm facing the following problem with a combination of more than .htaccess in my project. I have the following structure siteprincipal.com.br (não é WordPress) and inside a subdomain with another WordPress site site2.siteprincip...
asked by 12.10.2015 / 17:40