johansatge / pawnee

🪶 An Apache GUI for OSX.
MIT License
94 stars 14 forks source link

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

Open bo01ean opened 9 years ago

bo01ean commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 ?