tonyspiro / gulp-mamp

Gulp MAMP allows you to configure, start and stop your MAMP server from the terminal.
11 stars 4 forks source link

Does not start the apache server, only mysql. #6

Closed supermoos closed 8 years ago

supermoos commented 8 years ago

With Mamp 3.5 it does not seem to work. The apache instance is never started, the mysql instance is though.

stalinkay commented 8 years ago

+1

stalinkay commented 8 years ago

@tonyspiro @supermoos the issue is caused by a missing mod_example.so and possibly some php versions and results in the following error:

httpd: Syntax error on line 83 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/MAMP/Library/modules/mod_example.so into server: dlopen(/Applications/MAMP/Library/modules/mod_example.so, 10): image not found

mod_example.so does not ship with the current version of mamp as such it should not be included in the http.conf.template

/Applications/MAMP/conf/apache/httpd.conf of a clean mamp install works perfectly

/Applications/MAMP/conf/apache/original/httpd.conf contains mod_example.so so this is also flawed.

I think the gulp-mmap template should be using the clean file from mamp 3.5, I don't know if that is backward compatible.

httpd_gulp_mamp_0.0.4.conf.txt httpd_mamp_3.5.conf.txt

tonyspiro commented 8 years ago

Please open up a PR and I'll merge.

stalinkay commented 8 years ago

Cool.

stalinkay commented 8 years ago

@tonyspiro, It seems this issue was already resolved with #4 on github. Yet installing it via npm install gulp-mamp results in an outdated file with the following lines:

LoadModule example_module modules/mod_example.so
LoadModule php5_module        /Applications/MAMP/bin/php/php5.6.2/modules/libphp5.so

Compared to the following on github:

LoadModule php5_module        /Applications/MAMP/bin/php/php5.6.10/modules/libphp5.so

Try bumping the version and publishing it again.

The file below works fine. I can't make a pull request because it exactly the same file. No change to commit.

httpd.conf-template.txt

tonyspiro commented 8 years ago

@stalinkay The newest version has been published to npm. Let me know if you have any issues.

stalinkay commented 8 years ago

@tonyspiro All is well. Thanks.