Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't start #25

Closed
dylanh724 opened this issue Feb 16, 2016 · 9 comments
Closed

Won't start #25

dylanh724 opened this issue Feb 16, 2016 · 9 comments

Comments

@dylanh724
Copy link

EDITED

Created dir *C:\Test*

npm install --save-dev gulp-connect-php

Browse to C:\Test\node_modules\gulp-connect-php\

I edited the index.js file to include a console.log("Starting.."); and that now shows ok (so it's doing something),

but when I go to the examples folder and run "node gulpfile", I see starting... and that's it. I browse to the default localhost:8000 and nada. Just in case I try localhost:8000/index.php and nothing (even though it should default to index).

So I edit gulpfile.js and add a "Started" console log msg, and that NEVER shows up. I am using 100% default example, minus the console message!

...Am I doing something wrong?

(Still a node newb, bare with me, but I've followed all the instructions)

@marcospgp
Copy link

+1

@cdit
Copy link

cdit commented Feb 25, 2016

You have to setup your environment variables.

Insert the path to your PHP directory into the "PATH" Variable and test it in console with "php -h". If you see php's syntax-help you should be fine.

@dylanh724
Copy link
Author

Path is already set to php5, is 7 required or something?

@dylanh724
Copy link
Author

(and that cmd works)

@cdit
Copy link

cdit commented Feb 25, 2016

No. You only need at least PHP 5.4 for the integrated Webserver. Can you start a Webserver by cmd via "php -S"?

EDIT: which example do you use exactly? Did you setup the default task in gruntfile.js? Can you post your gruntfile.js and package.json.

@dylanh724
Copy link
Author

yep php -S works great -- strange right? Screen:
http://imgur.com/E7Iwpjh

I'm on Windows 10 - anything special about w10?

@grmartin
Copy link
Collaborator

@dylanh724 Is this still an issue for you?

@grmartin
Copy link
Collaborator

grmartin commented May 8, 2017

This ticket will close on or near 17 May 2017 unless updated.

@grmartin
Copy link
Collaborator

Closing marking as invalid due to inactivity since 1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants