1

I have a old symfony 1.4 project to upgrade in my current company. I have a complex situation. I am not able to install a local server ( Apache ) in my system. Not able to create another environment in client system also ( MNCs always sucks. Even need permission from client to change my Netbeans theme ).

So I thought about running the code in PHP built in server. Luckily I have PHP v5.6.25 installed in my system where code available. Also I know, only symfony v2.6 or above support 'server:run' method. I could run PHP built in server using the command PHP -S localhost:8000 in my system.

My question is, is there any way I can use the PHP built in server to run Symfony 1.4 project in my system.

Thanks in advance.

6
  • i recommend a vagrant or docker for running it. Commented Aug 3, 2018 at 6:42
  • As long as you are in the web directory, you should be able to run php -s site_name:8000. We are currently doing that for a old project as well Commented Aug 3, 2018 at 6:47
  • @fucethebads: Installing something is not ideal solution in my case. Sorry..... Commented Aug 3, 2018 at 7:14
  • @jc1arke : I have already tried it. But end up with some fatal errors: failed opening required files in autoload file. Any idea about this situation. Commented Aug 3, 2018 at 7:25
  • 1
    If you are tasked with upgrading this Symfony app, your company should provide the necessary means to do so. Otherwise they are just setting you up to fail. I suggest to talk to your superior about it. Commented Aug 3, 2018 at 9:54

1 Answer 1

1

Try first to run your server in another files with just a Hello World. If this works, it should works in web/app directory. For your error with autoload watch your composer

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.