Symfony project works on live server but not on wamp - symfony

I am assigned a symfony project. It is my first project, so I transfered the symfony files from live server to local wamp (win 7) in order to do some tests. While the site works in live and demo server ( I transfered it by myself) in my local wamp it throws error 500. So I suppose there is a problem with my server and not the project itself. php log file shows nothing. Also I have enabled rewrite module, php accelerator and minimum requirements are met. How can I debug it? I would like to give more info but unfortunately I can't even find what causes error 500... Any help is much appreciated...

Try this :
composer run-script post-update-cmd
See this : Symfony2 updating bootstrap.php.cache
Your bootstrap.php.cache was build on UNIX and won't work in Windows + it contains absolute paths.

Related

How do I run an ASP.NET website on a server with XAMPP?

I am trying to create a web server with XAMPP to host an ASP.NET website. However, I am unable to do so. As I understand it, ASP.NET apps cannot be served out-of-the-box with XAMPP. I have found that in order to get Apache to work through XAMPP that mod_aspdotnet needs to be installed and configured. I am following the instructions for mod_aspdotnet by Shehroz Kaleem at https://xehroz.tumblr.com/post/43884721903/how-to-run-aspnet-on-xampp, but I am running into issues. First off, the current version of mod_aspdotnet (https://sourceforge.net/projects/mod-aspdotnet/files/latest/download) is in a zip file that does not include an installer inside of it (or at least, I can't find one). This makes installing it a problem. So, in order to fix that issue, I have resorted to attempting to use the previous version (2.2.0.2006) that is not a zip file, but a directly installable .msi. The problem with this installer, however, is that it does not recognize C:\xampp\apache as a "valid path to an installed instance of Apache." This install location from XAMPP is suggested in the aforementioned instructions by Shehroz Kaleem. Does anyone have any experience setting up a web server for ASP.NET using XAMPP? Is there something that I am doing wrong?

Unable to start debugging on the web server. The remote server returned an error: (404) Not Found. Error when starting debug in Visual Studio

I have set up project to be run on IIS for some time ago and when I did press F5 it did connect no problem. But recently this stopped working and I did get this error when I press F5 / press Debug->Start debugging:
Unable to start debugging on the web server. The remote server
returned an error: (404) Not Found.
Here is my settings:
I am not sure what happened, probably some VS updates or Windows updates, but I've tried to google everywhere and nothing had worked. Attach to process works fine as before, but this simpler way stopped doing the trick.
Update:
Have tried Process Monitor to figure out what is going wrong and it looks like w3wp tries to access path MyProjectFolder\debugattach.aspx and the result is "NAME NOT FOUND". Don't know if this is the root of the problem though.
It appears that one of my colleagues has edited the web.config and added request filtering where he has removed the "DEBUG" verb. This disallowed debugging on F5.
After adding it (or removing request filtering) everything works fine.
P.S. A lot of other possible problems with similar error is described here
In my case (Windows 10 & Visual Studio 2017) I had to install ASP.NET 3.5 and ASP.NET 4.7 under the Internet Information Services.
Click here to see the solution
Old post but I recently had this issue and making sure that the following settings were enabled in 'Programs and Features' (Windows 10) fixed the issue for me:
This happened to me because I was using the Rewrite module to redirect to https. I was running https://localhost/WebSiteName, but had put my machine name in the https binding in IIS Mgr, Default web Site, Bindings. When I removed the machine name it worked.
Recently I have faced the same issue in VS2013 Professional, instantly I get error 'Unable to start debugging on web server". I observed that whenever my current page is MVC view (.cshtml) file and I start debugging , the error window prompts every time. As switch the current document in my project to controller (.cs) file, and starts debugging, it works properly.
So my workaround is to debug my code I have to be on (.cs) file not on (.cshtml / web.config) file. Hope that helps!
Another reason for this problem is that you don't run visul studio Run as administrator.
My issue was related 405 as attached below
My issue got resolved after making my projects properties(Web and Build) as given below
see this also
HTTP Error 404.3-Not Found in IIS 10 as it helped me (HTTP Activation need to be enabled in Windows features)

Migrating Symfony Project from Windows to Server in Linux

Once my web application is running on local, I want to pour it into a server. Whenever I upload it, I'm having problems with the routing staff.
I guess it is searching on local routes (in full paths) instead of server ones.
So this is the error given:
Warning:
file_get_contents(C:\xampp\htdocs\MyApp\src\MyBundle/Resources/views/Default/index.html.twig):
failed to open stream: No such file or directory
Obviously, it is mixing Windows routing(computer) with Linux paths (server).
I have been looking for the config files or whatever, searching in the routing files but nothing changed.
*Edit: I am currently using 2,8 version of Symfony
First, you should make sure you’re not uploading the app/cache directory, or that you’re clearing the cache after uploading.

Is nuget.server supported on mono 3.2.6?

I am trying desperately to get a nuget gallery hosted on Apache with mono. I have mono and apache configured and a new empty .net 4 web app with nuget.server created and copied to the linux server. I got as far as getting the site up and running so the Default.aspx is displayed when browsing to the site. However I can't get anything beyond that to work. If I try to view available packages via the link on the main page (I copied some nupkg files into the Packages directory), I get the following error:
Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: Requested URL: /nuget/Packages
On IIS, the routemagic.dll seems to be the key in making the /nuget path work. However that simply isn't happening in Mono. I have no idea if this is simply not a supported service on mono or if I'm doing something wrong.
All permissions are correct. I am calling mod-mono-server4 since the nuget.server was built with .NET 4.
Any help or direction would be most helpful.
If you need it i made a little nuget server with php. It works on apache with mod_rewrite or IIS: http://www.kendar.org/?p=/dotnet/phpnuget :)
It supports security, push, odata queries, gallery and Nuget Package Explorer (https://npe.codeplex.com/) with 5 (five) minutes setup on Apache.
Actually it works on text file db and i'm doing the verifications for the MySql implementation.

How to delete web modules from virtual server in glass fish 3.1.2

I developed a web service. When i want to publish it on the server, then i get the following error
cannot Deploy TemperatureConverterServiceClientEAR
Deployment Error for module: TemperatureConverterServiceClientEAR: Error occurred
during deployment: Exception while loading the app : java.lang.Exception: WEB0113:
Virtual server [server] already has a web module
[AndroidBackendAuthentication.war] loaded at [/AndroidBackendAuthentication];
therefore web module
[TemperatureConverterServiceClientEAR#AndroidBackendAuthentication.war] cannot be
loaded at this context path on this virtual server. . Please see server.log for
more details
I went to directory C:\glassfish3\glassfish\domains\domain1\eclipseApps and delete all the files. I also went to
Then i click on the server. In the default Web module option i have following entries
How can i delete these modules from here. Whenever i tried to deploy webservice i get this message. How can i get rid of this message? I also delete the deployed module from the Application option after which this default Web module option become empty. But then if i try to deploy any webservice , i get the error. Please help
Thank you.
you shold undeploy the old web moudle
use the flow command to do this:
./bin/asadmin --port $port undeploy $app
$port means the "glassfish admin port". when you use start-domain you will see it
$app means the name of the old moudle you want to undeploy, you can use ./bin/asadmin --port $port list-applications commands to see all the web moudles had been deployed to this domain
I had the same problem and I found exist:
go into server/glass fish server (node)/application. And there You've got app blocked Your work. Just delete it, and ready :)
I was having the same problem. I was able to fix it by restarting glassfish. Go to services->Servers. Right click on glassfish and restart. Hope that helps.

Resources