Unable To Install Symfony Windows 7 - php

I am trying to install Symfony, but unable to find how can we start with symfony with Xampp. I have already tried on google but there is no proper solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.

Symfony is not a CMS.
If you need to run a symfony app locally, all you have to do is to copy all files into a project subdirectory inside your Xampp (for example htdocs/symfony).
I assume existing project will have a database, so be sure to import your database locally or use external database. You need to tweak your symfony config file: http://symfony.com/doc/current/configuration.html

I am trying to install Symfony, but unable to find how can we start with >symfony with Xampp. I have already tried on google but there is no proper >solution for installation and configuration of Symfony.
As I want to edit a project which is already developed using symfony CMS.
Hi, for begin Symfony is not a CMS but a framework ^^, it's a little bit (alot) different.
For install Symfony WHY use google O_o ----> http://symfony.com/doc/current/setup.html
After, why Xampp ? for windows use Wamp who do the local server it's more performing :/
And if you want you don't have necessary to install symfony if it's an existing project -> just clone it (if he is on github) ... and just open the complete folder with your IDE or text editor.
You can modify the file without problems, (just you can have a prob for use command php bin/console.
Good luck i hope it's answering all you questions :)

Related

How to include a Project from a server into a Laravel sail docker image

I am totally new to PHP / Laravel / Linux / composer / docker etc.
However I do have the task: go retrieve some code files from an internal server and make a docker container out of it. The project is written in PHP 7.1.3 and uses the Laravel framework.
I've copied the whole https folder from the server which I think contains everything I need.
I also was able to create the example app from the Laravel documentation and also I made a brand new Laravel project. However, is there any chance to "generate" a new project using all the code files I have right now?
I even have a composer.json and composer.lock file, which in my opinion should "list" every component I would need in my docker installation, right?
What also bugs me is that I can't even get the project working on my dev machine...
I think you should do this step by step. But let me first answer some of your questions.
If "https" folder contains similar folder structure like fresh Laravel installation, it is likely to be all of it. But we can not be sure about it.
As far as i know there is no way to generate new project out of your files. First of all you need to know which Laravel version project uses. It must be stated at composer.json.
In you composer.json file lists required packages for you project. When you install them this packages are installed folder called vendor
Here is my suggestions;
As you stated it seems you are very new about these topics if someone give these task to you its not a smart way to teach this kind of topics.
I think you have to start with running project in your local machine. If you get errors than ask them in a new question. Most likely you need database and you need to know running migrations seeds etc.
When you manage to run the project you can start dockerizing your project. If your project is build with newer versions of laravel you can easly use sail otherwise you can build own dockerfile or upgrade laravel to newer versions.
Your problem is too broad, i think you cannot find answers to such question.

How to download and run an existing Zend Site?

I have not every used, or even installed the Zend Framework.
I have inherited a website built in the ZF and only have FTP access to the deployed version that is live.
Is it possible to simply download the files that are live and run then locally within XAMPP, as i have tried this but ther server has lots of short cut director mappings and no ZEND?
I am assuming not, so can i install Zend and then download the site to my local machine for it then to work?
Any assistance on this would be helpful as have no idea about it, whether i need source files or not.
Thanks
Shaun
once you have the project downloaded in xampp. make sure you have composer installed and configured.
delete the vendor folder inside your project then run
composer install
under the root of your application.

Create form file in PhpStorm using Symfony plugin

I'm currently working on a tutorial for PhpStorm with Symfony... but I'm stuck :/
https://knpuniversity.com/screencast/phpstorm/forms#play
I cant create a form file with the Symfony plugin (like at the very beginning of the tutorial link), when I press Cmd + N on the appbundle and the click on form (with the Symfony logo...) nothing happens - PhpStorm doesn't respond and create a new file...
Can anyone help me with that please?
I reinstalled the plugin already and rebooted and so on...
You have to set your project as symfony project first:
file > settings > langages & framework > Symfony and then enable it
I am assuming that you are editing files locally and then uploading them to a webserver - rather than editing the webroot directly. If the latter then my suggestion is unlikely to help.
I was able to fix it by;
Closing the project in Symfony.
Creating a new project from my existing remote files, in a new local repository
Downloading the files from my development server to my local repository (my dev server is actually a VM hosted on my development machine, but I don't think that is important).
Allowing phpstorm to do its normal startup stuff recognising namespaces
Enabling the symfony plugin in File/Settings/Languages & Frameworks/Symfony
I did not need to restart phpstorm although the plugin says you need to to enable plugin for the project
This fixed the problem for me, and also fixed a certain amount of Symfony specific 'autocomplete' which wasn't working for me either.

Trying to run a Symfony project on my computer

I'm trying to run a Symfony project that I cloned from a GitHub. I've never used Symfony before but I'd like to run the project.
I read you needed to run frontend_dev.php so I ran that in to my browser:
C:\Users\Computer\Desktop\Project\WebInterface\web\frontend_dev.php
But just got a blank page with some PHP on it. I believe I may have to set up a web server but I'm not sure and figured I'd ask here first.
If I wanted to run the project from my computer, would I just download an Apache server and drop it in the root directory? What variables and files would I need to change to get it working properly? Do I need to forward any ports?
Symfony 1.x branch is not supported anymore. Use Symfony 2.
Anyway, concerning your question: here is the doc for 1.4: Day 1: Starting up the Project

Can projects using PHP framework operate standalone?

I am interested in the PHP framework, especially by symfony and ZendFramework, but I am not sure of one thing: I saw the need to type command lines to create a project with these frameworks. Ok, but once the project is finished, is it possible to move files to another server without installing anything (except for Apache)?
Thank you in advance
Ps: No report, but do StackOverflow uses a framework?
It is absolutely possible to run a symfony or zend framework application without installing the framework on the server. Symfony has a special mechanism to pack everything into one folder. If you use zend framework you basically have to copy the "Zend" folder to your "lib" directory and you are ready to go.
As far as I know, StackOverflow is build on ASP.net and C# running on several windows servers.
Firstof, most of those commands are needed for development only. But also you do not have to have the commands in your global path, it's also possible to execute the scripts directly.
In case of symfony that would be something like
./symfony-framework/data/bin/symfony
if you installed symfony to symfony-framework.
I believe stackoverflow is based on .NET MVC or plain ASP .NET - http://meta.stackoverflow.com will give you that answer
With Zend Framework, it is possible. The Zend_Tool part, which sets up the basics of your project is just addition. You can, but you don't have to use it at all. You can just write the project from scratch yourself, just stick to the standard project architecture.
Anyway, once the project is ready, it does not need any command line setup, other than mayby setting correct file system permission if your project needs to write some files.
I can't say about symphony, but I assume it also can be just copied to the target server.
I don't know, how about ZF, but project made with Symfony can be easily moved to another server just by copying files. However it will be difficult to maintain your project without commands. Also you have to copy all Symfony's core files to your server, but it will be better to install Symfony there before.
About Symfony:
Usually, you develop locally on your dev environment (using Wampserver or MAMP for example). You will require access to the command line to run symfony commands, specially for complex tasks like ORM tasks. So you have to install symfony on that environment.
According to the official doc the recommended installation method is through SVN (either the trunk or a tag) inside your project folder.
When you'll push the files from your dev environment to another (using project:deploy if you can), all the required files will be pushed.
So there is no need to install (in the sense of "run" or "execute") anything on the live environment server. The only "installation" method that requires an access to the command line is the PEAR install method, which is not recommended.
The only problem that I had when I deployed an application was a user permission problem on the cache folder, but that's easy to fix by changing the folder permission.

Categories