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

Overwrites httpd.conf with invalid path after brew fails #2

Open
bo01ean opened this issue Mar 7, 2015 · 2 comments
Open

Overwrites httpd.conf with invalid path after brew fails #2

bo01ean opened this issue Mar 7, 2015 · 2 comments

Comments

@bo01ean
Copy link

bo01ean commented Mar 7, 2015

Love the concept!

Here is a bug I have found:
Checking configuration...
Server is running.
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using rooter.local. Set the 'ServerName' directive globally to suppress this message
Syntax OK

Setting php56...
/bin/sh: brew: command not found

Linking /usr/local/Cellar/php56/5.6.4...
Error: Could not symlink bin/pear
Target /usr/local/bin/pear
already exists. You may want to remove it:
rm '/usr/local/bin/pear'
To force the link and overwrite all conflicting files:
brew link --overwrite php56
To list all files that would be deleted:
brew link --overwrite --dry-run php56

Filechange detected.
Restarting server...
Checking configuration...
httpd: Syntax error on line 1 of /private/etc/apache2/httpd.conf: Cannot load /usr/local/opt/php56/libexec/apache2/libphp5.so into server: dlopen(/usr/local/opt/php56/libexec/apache2/libphp5.so, 10): image not found

Server is stopped.

Also, load module does not respect existing php module already in file.

@bo01ean
Copy link
Author

bo01ean commented Mar 7, 2015

httpd.conf looks like this:

1 LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
2
3 #
4 # This is the main Apache HTTP server configuration file. It contains the
5 # configuration directives that give the server its instructions.
6 # See URL:http://httpd.apache.org/docs/2.4/ for detailed information.
7 # In particular, see
8 # URL:http://httpd.apache.org/docs/2.4/mod/directives.html
9 # for a discussion of each configuration directive.
10 #
11 # Do NOT simply read the instructions in here without understanding
12 # what they do. They're here only as hints or reminders. If you are unsure
13 # consult the online docs. You have been warned.
14 #

@johansatge
Copy link
Owner

Hi,

thanks for your feedback !

@bo01ean the message looks weird, did you install Brew the usual way ?

Also, load module does not respect existing php module already in file.

Do you have an example of this issue ?

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

No branches or pull requests

2 participants