Questions tagged as 'apache'

2
answers

What is the best Xampp / PHP version to update and what is the difference?

I want to update my XAMPP Version: 1.8.3, plus PHP Version 5.5.15, but I have some doubts: What is the best version to upgrade, if it is (5.5.38, 5.6.24 & 7.0.9)? Whether this will affect my codes or not? Is there any difference between...
asked by 25.10.2016 / 13:54
1
answer

How to release access to a specific FOLDER or FILE using .htaccess?

I have a .htaccess in my development environment. Now I need to release a directory from the site, actually a specific PHP file. I am using this code in .htaccess, I am releasing several extensions, if I release the PHP extension, it acces...
asked by 06.04.2015 / 17:38
2
answers

How to change the www (DocumentRoot) folder to another partition in Apache 2.4 (Ubuntu 14.04)?

I tried to change the Document Root by changing the default.conf files in sites-available. However I get the message that I am not allowed to access localhost. Could anyone tell you the exact procedure? I may have forgotten something. - Ap...
asked by 28.04.2014 / 02:15
2
answers

Which way to save images to a server?

I know the answer to this question is not accurate, but I am asking because of the alerts I received from a client hosting (DV medium) The system I developed saves the images as follows: /uploads/nome-do-modulo/ano/mes/dai/nome-imagem-encrip...
asked by 07.07.2015 / 14:16
1
answer

How to check for Apache configuration errors before restarting?

Several times I needed to restart Apache after making some settings, I was displeased to receive a failure message because of a configuration error. A colleague here on the site once informed me that there was a command in Apache that it was...
asked by 21.06.2017 / 16:05
3
answers

How to hide the directory paths in the url with htaccess?

How do I make all site urls shorten by hiding all directory paths? For example: www.meusite.com/models/scripts/arquivo.php www.meusite.com/view/templates/arquivo.php www.meusite.com/view/templates/especifica/arquivo.php And I want you to...
asked by 12.11.2015 / 17:50
1
answer

How to configure security for dedicated servers and VPS?

I'm having problems with the security settings for virtualized (VPS) and dedicated servers. What do I need to do to protect my Linux server with Apache against major security threats such as rootkits, exploiting common open ports, root loggin...
asked by 08.06.2015 / 18:45
2
answers

How to define a variable in the configuration of a Virtual Host, to avoid repetition?

I always get annoyed when I see that my virtualhost ends up being configured like this: <VirtualHost :80> ServerName meusite.local ServerAlias www.meusite.local DocumentRoot /var/www/meusite/public ErrorLog /var/www/m...
asked by 10.08.2018 / 22:45
2
answers

How to disable Godaddy server cache?

I have a problem with server caching on Godaddy. I do not know if this is with all Godaddy clients with shared server or just with my account. It turns out that I make changes to a file and upload it, but the change is only reflected after a...
asked by 23.05.2014 / 06:05
1
answer

Wordpress with friendly URLs - Apache error - How to solve?

I'm having problems with Wordpress with friendly URLs. It simply does not work even using the .htaccess file suggested by the Wordpress support site. cat .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase...
asked by 14.06.2014 / 19:03