Questions tagged as 'apache'

0
answers

PHP Connection Pool: PDO with PostgreSQL, what to use?

Thinking of the following scheme: Linux Server (Can be Ubuntu Server) + PHP using PDO + PostgreSQL + Apache HTTP Server + Some connection pool I would like some pool hint (which is trustworthy) to manage the connections to the database. I...
asked by 13.05.2016 / 03:37
1
answer

Problems configuring routes on apache2 server with laravel 5.1

I was doing a local project and it always ran with php artisan serve and everything was fine now that I'm uploading the project to a digitalocean machine I'm having problems with the routes the following error is happening: I think...
asked by 15.05.2016 / 19:00
1
answer

Malfunctioning of the site after change in .htaccess

For a site that has a friendlier url I've removed the .php using the following commands within .htaccess : RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] It worked perfectly for the...
asked by 04.05.2016 / 20:17
1
answer

All Apache requests pointing to the same directory

I configured a VHost for my project as follows: 1 - I added a line to the file /etc/hosts containing local address, url and alias 127.0.0.1 meuprojeto.com meuprojeto 2 - I added the meuprojeto.conf file to /etc/apache2/sites-enabl...
asked by 25.04.2016 / 17:29
0
answers

php class Singleton of thread type

I have a class that accesses the service layer of my application. This class is a singleton. Through the service, it accesses the data evenly, so that my application has the expected behavior. The problem is, I see the need for my class to also...
asked by 10.03.2016 / 21:29
2
answers

How to have multiple domains using the same shared hosting?

I have a shared hosting account, and I need to add one more domain to it. The only way to do this where I'm hosting my site is through domain mapping , where I can have multiple domains pointing to the same site unless I open another account an...
asked by 16.03.2016 / 18:47
0
answers

How to access / localhost /?

I installed Apache2 with Mysql and Phpadmin on a notebook with Ubuntu 15.10. I did this using a user with an administrator profile. Now, I want to access / localhost / with another user but I can not, with the following response:    For...
asked by 08.02.2016 / 14:18
0
answers

Error 500 or 502 in the Ajax call to a PHP file

I have the following problem, I have a report screen that makes an Ajax call that returns all items to me. However when the report has few records it returns everything correctly, Ajax makes the request receives the information and plays on the...
asked by 01.02.2016 / 14:30
1
answer

Error installing apache2

When executing the command sudo apt-get install apache2 the following error is returned: Os pacotes a seguir têm dependências não satisfeitas: apache2 : Depende: apache2-bin (= 2.4.7-1ubuntu4.9) mas não vai ser instalado E: Não foi poss...
asked by 17.02.2016 / 14:48
1
answer

How to reuse my .htaccess

I have the following file RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php I can access the page without the extension. I would like to know how to pass the following url...
asked by 05.02.2016 / 18:03