Symfony2 ERR_EMPTY_RESPONSE - php

I'm trying to put my application on a new server, the configuration is the same as the development server and at the development server it runs fine. But when I go to the live server, the first page works fine but the second page shows an ERR_EMPTY_RESPONSE error. This has never occurred to me.
The server is an amazon ec2 Debian 7 server with apache2.2.22 and PHP 5.4.4-14+deb7u7, there is no mysql database because the application connects to a mssql database within the same cluster. The symfony version is 2.4.2
I've searched the internet for a solution but all you get that's it's apc and a known bug at apc but I don't use apc for this application. I also don't use the following modules:
APC
xCache
suhosin
xDebug
The apache logs doesn't show anything weird and the Symfony2 logs also.
I'm kind of lost here so if anyone knows a solution please tell.

I did a complete reinstall of the server and that did the job, no clue where it went wrong the last time...

Related

PHP development without xampp

I have machine on which I lack admin privileges. I was not able to install xampp server on it. So I tried portable version of xampp. But I was getting error while starting Apache server and MySQL. The log file is not getting created.
Also many tutorials online use NetBeans which is also I am not able to install due lack of admin privileges.
I have postgres and apache tomcat working on my machine, which I used for Java Spring development. I also have eclipse installed on my machine. So I was thinking if I can manually configure eclipse, postgres, tomcat to develop php without installing xampp or netbeans.
Is it possible? If yes how do I do it? Is there any tutorial / link / webpage explaining the same?
If you can install jetbrains PhpStorm it has a built in server but due to lack of privileges i think it is not posiible though, so here are two links i have for you, hope you will able to find an answer..
https://www.eclipse.org/articles/article.php?file=Article-EclipseDbWebapps/index.html
https://www.enterprisedb.com/postgres-tutorials/how-connect-postgres-database-using-eclipse-and-netbeans
if you use php framework like laravel, cakephp etc.
Those have own development server to run application.
and for the database you can use sqlite database.
that not require xampp server

Symfony2.4 forms working on local computer but not on distant server

I'm having a frustrating problem with all the forms of a Symfony2 website for a couple of days now.
In fact, every form are OK when my coworkers and I work on the project on our local computers (we're all on PC, Windows 7 64bits or 8.1 64bits, using WAMP 64bits too and having PHP v5.4 and Symfony v2.4.3 set on it). But when we want to test on our distant dev environment, there is no form that works properly: in the Symfony profiler, the problem seems to reside in the fact that no POST parameters go through the process of submitting the form. But once again, this situation only appears when the project is hosted on the distant server.
I have checked the configuration of the server because I thought it was a config issue, but everything looks just the same as what we have on our WAMPs.
I have also checked my config.yml file, just to see if something could be wrong in it, but I can't see any kind of "local-only" configuration.
Moreover, I've found a very few people telling that they encountered the same problem on the internet, but they never explained how they did to go through that.
As I said, I am currently on this issue for days now, and every suggestion and clue will be very welcome!
Thank you for your time,
[Edit 1] This is a complementary information: the only difference between our local and remote configuration is that, on the remote server, the "short_open_tag" thing is enabled and, due to some provider restrictions, can't be disabled.
So I enabled it on my WAMP (and restarted it) to see if to see if the forms would keep working. And they do work with short_open_tag enabled on my local machine, so I assume that the problem is not from there.

Error when connecting to database Zend, MySQL, MAMP, Mac, OSX

I have just purchased a MacBook Air and am having trouble setting up my development environment. On windows I used WAMP with fairly few problems, and on OSX I'm using MAMP.
the windows development environment is working as needed, and I'm using an exact copy to start out on the mac
When I visit the phpMyAdmin page I am able to log in, and make changes to the database.
My application is based off of the Zend Quickstart tutorial, so I am using the error controller that comes with that (I haven't changed it)
My application will work up until the point I call to connect to the database:
$dbAdapter->getConnection(); results in:
"An error occurred
Application error"
As you can see there is no information about the error. Typically an error will have a code and description, whatever is causing this error is not providing any information.
Please help! Thanks.
EDIT: The answer was indeed that my virtual host was not set up correctly, and left the environment variable undefined, which caused the application to run as if in production. This caused the application to attempt to access a database that doesn't exist on my local dev env. Thanks so much for the help!
Current OSX has built in php, apache. you need to install mysql. for few months I'm using Zend server community edition. You may try this. its easy to install and maintainable through GUI

NewRelic install on centos and cpanel

I'm trying to install NewRelic on my website, I use PHP, cPanel(VPS/dedicated) and Centos (64bit) for my server, I've installed the server monitoring part right on my server but when I try to install the 'app' part on my server I can't get that to install, I followed the instruction links http://newrelic.com/docs/php/new-relic-for-php
but to no success, has anyone got any ideas as to why this maybe? I have restared httpd and appache multiple times and given it some time to propogate etc..
The problem of this is having WHM installed and many PHP services installed, you should try this guide I found:
New Relic for PHP w/cPanel
We have few dedicated servers on HostGator. Few months back we had installed "NewRelic" on our server for monitoring, later we started having issues and here is what HostGator Tech Team said
"While it's possible to configure a cPanel server to use a non-cPanel
PHP version, it's complicated to configure and we will not support it
or set it up. PHP gets compiled from source by cPanel normally and it
should be left this way, as it interacts with a number of other
components on the server in complicated ways, as you found out today.
We recommend completely removing the custom "Newrelic" repository as
well as the packages it installed in order to avoid further
compatibility problems."
and here is what "NewRelic" team said
"I wasn't trying to suggest that Hostgator's assertion was wrong. I
was just trying to figure out which instructions to go over with you."
Make sure to check compatibility before installing it. Installation instruction can be found at http://www.networkredux.com/answers/view/Hosting/Control_Panels/WHM/cPanel/162
New Relic Needs to document this cpanel compatibility better, I know it's my fault for not researching but while using a hostgator dedicated server with cpanel/whm I got new relic up and running. . then my server became a huge mess if improperly configured files and a few days of reading and learning to get it straightened out - I understand my fault entirely but a big ass CPANEL/WHM <- CAREFULL sign might have helped :P

MySQL problem reconnecting (mysqld.exe) keeps giving error

Need some guidance figuring out what went wrong. I've been using mysql, phpmyadmin for just under a year on my home computer while I develop a webapp. 3 days ago I updated my windows vista with all the "wonderful" microsoft updates, security patches, etc...and now it's broke. I tried uninstalling all the upgrades, but there are 4 of them I can't unistall because microsoft says their "operating system" updates and can't be unistalled.
My system is: windows vista, php 5+, mysql 5.1, Apache 2+.
I can run my web app and it queries the database without any problems. However, when I run phpmyadmin to get into the database I get an error: "mysqld.exe has stopped working" and phpmyadmin crashes. I tried going to the command line for mysql to do a mysqldump to backup my database and it gives me an error "2013, could not connect to the server". If I restart the computer the webapp will work again. Basically, php can query the database, but if I try to get at the database through phpmyadmin, or the command prompt the mysqld.exe error occurs and blows mysql out.
Any ideas what's going on here? Any ideas how to get around this to backup the db, so I can reinstall mysql?. I'm really lost where to start. I don't really know if the updates caused the problem, or if the 4 updates that can't be unistalled are really the problem.
Any tips will be appreciated. thanks.
You could try using XAMPP. It has PHP, MySQL, Apache, and other stuff all in one easy to use package.
After a software/ hardware drivers update, it may happened that the service mysqld.exe crashes at each launch (usually with message: mysqld.exe encountered an error and needs to close)
Check the solution described here (it worked for me) if you wish to avoid mysql reinstall.

Categories