Questions tagged as 'apache'

2
answers

Apache Commons Email does not send email using Gmail

Click here to open the repository in the Maven Repository for Apache Commons Email. I have the following code that receives a recipient, subject and message from a form: @RequestMapping(value = { "/email_commons/send" }, method = RequestM...
asked by 29.10.2015 / 14:02
1
answer

Open project with Localhost - Ubuntu

I searched all day and asked for help from many people, but I did not find what I really wanted. I need a step-by-step tutorial on how to open a project with apache in Ubuntu. Apache2 is installed, mysql is installed and PHP5 is also insta...
asked by 13.07.2015 / 22:52
1
answer

php script without permission on root document

I would like to create a log with page visitor information, but the script is not writable. How to proceed?    PHP Warning: fopen (log.txt): failed to open stream: Permiss \ xc3 \ xa3o   denied in /var/www/html/index.php on line 30    ...
asked by 27.02.2015 / 23:30
1
answer

Call to undefined function pg_pconnect ()

I need to create a connection with a (already existing) database in PostgreSQL (Installed and working), using this code (which already existed already). File access_bd.php <?php function conecta() { $ip = $_SERVER['SERVER_ADD...
asked by 26.09.2014 / 17:05
3
answers

.htaccess configuration to access several PHP files within the same folder

I have been beating since yesterday with the configuration of my .htaccess , my original URL is like this (2 is the number of the page): www.example.com/categoria/produtos/2 Categoria is a folder within my public_html a...
asked by 06.08.2014 / 22:17
1
answer

Temporary redirect

I have an application that needs to change domain app.com.br I need to switch to app2.com.br However while I do not change the dns I need a temporary redirect for example app.com.br/path/teste -> app2.com.br/path/teste...
asked by 11.08.2014 / 17:23
2
answers

Shell_Exec (): How to keep process active when restarting apache?

The processes run by php's shell_exec () end up restarting apache. Is it possible to keep processes running uninterrupted when restarting apache? Below the code I'm using: $Command = "ksh -c '( trap \"\" 1 2 3 4 15; "; $Command .= "./sc_se...
asked by 31.08.2014 / 19:25
2
answers

Problem with friendly url

I am facing issues with friendly url on my site. My requests loop if I do this: RewriteEngine On Options +FollowSymLinks RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ sessao.php If I do this, I do not fall into the loop, but my...
asked by 04.03.2014 / 00:18
0
answers

image does not appear per rule in .htaccess

I have my .htaccess as follows: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -t [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.$...
asked by 15.06.2018 / 18:11
0
answers

Permission denied Laravel 5.5

I'm trying to create my first laravel project with vuejs. I installed apache on ubuntu 16.04 and navigated to the / var / www / html folder. I ran the following command: composer create-project laravel/laravel laravel --prefer-dist But when...
asked by 19.12.2017 / 00:39