Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Here it is.. native MacOSX-style Apache compiled with PHP4 and MySQL support

Here it is.. native MacOSX-style Apache compiled with PHP4 and MySQL support
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Oct 3, 2000, 08:01 PM
 
Here are complete (hopefully) step-by-step instructions for downloading, building and installing MySQL, Apache, and PHP4. These instructions will replace the built-in Apache web server with a binary compiled for PHP4 support.
http://homepage.mac.com/LightyearDesign/MacOSX/

Enjoy, and let me know of any glaring errors :-)

     
Senior User
Join Date: Jul 2000
Status: Offline
Reply With Quote
Oct 3, 2000, 11:51 PM
 
No errors that I can see of. Great page too. But... what I really want... is to run PHP4 as a DSO. I can't seem to get this to work. I've been trying since 4.0 as official.

Just so people know, I have compiled it succesfully as a DSO, however, when running Apache with PHP4 DSO, there are library error which prevent it from running.

This happened on OSXS and was was hoping that it would be fixed on OSXPB, but this is not the case.

Anybody have a clue on how to fix this error?
     
matvon  (op)
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Oct 4, 2000, 05:45 AM
 
Just so people know, I have compiled it succesfully as a DSO, however, when running Apache with PHP4 DSO, there are library error which prevent it from running. to fix this error?
Can you describe the error? I might be able to help you if I have the specifics.

     
Gee4orce
Guest
Status:
Reply With Quote
Oct 4, 2000, 09:59 AM
 
Yeah, great. IF you've got 'make' on your system (hint: it's not in Public Beta).
     
Forum Regular
Join Date: Oct 1999
Location: London
Status: Offline
Reply With Quote
Oct 4, 2000, 02:03 PM
 
Actually, GeeForce, he notes that you need the Developers Tool on his main page (not obvious from the link he provided). Check out MacAddict's guide to getting them from the Dawin opensource.


I have a correction, though:

In the MySQL directions, you need to specify the path for "mysqlfixes.tgz" in the line "tar xvfz PATH/mysqlfixes.tgz"

Question: does it have to be tar-ed inside the "mysql-3.23.24-beta.tar.gz" directory (and thus moved there -- something not stated in the instructions)? Or can it be run from its place in the "Temporary" directory?

     
matvon  (op)
Fresh-Faced Recruit
Join Date: Sep 2000
Status: Offline
Reply With Quote
Oct 4, 2000, 02:08 PM
 
Question: does it have to be tar-ed inside the "mysql-3.23.24-beta.tar.gz" directory (and thus moved there -- something not stated in the instructions)? Or can it be run from its place in the "Temporary" directory?
[/B]
You should cd into the mysql directory, then tar xfvz ../mysqlfixes.tar.gz so that the files in the tarball will unpack inside the mysql directory. I'll correct that on my page. Thanks :-)

     
Senior User
Join Date: Oct 2000
Location: Dallas, TX
Status: Offline
Reply With Quote
Oct 4, 2000, 04:34 PM
 
slightly off-topic: has anyone had any luck installing php4 on Mac OS X *Server* 1.2? I give up. I finally got php3 installed, but it doesn't recognize the mySql database, and any other types of install don't work, either as a module or otherwise. I've found instructions on severa different sites, but they don't work... it took me a week to find out why apache 1.3.12 wouldn't install- a Web Objects patch on the cd needed to be installed... ugh...
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: cannes france
Status: Offline
Reply With Quote
Oct 4, 2000, 06:02 PM
 
i have a fresh unmodified install of macosX beta , and i install the developer.pkg from my DP4 CD , and i follow every damn line of your tutorial .

result : nothing!!!!!

mysqld -> error
apachectl start -> error

i'm so sad


please make a php_mysql_apache.pkg


thanks
     
Forum Regular
Join Date: Oct 1999
Location: London
Status: Offline
Reply With Quote
Oct 4, 2000, 06:09 PM
 
Alas ...

Syntax error on line 209 of /Library/WebServer/Configuation/apache.conf : Invalid command 'LoadModule', perhaps mis-spelled or defined by a module no included in the server configuration

:-(

I think something is amiss with the MySQL install ... just a guess ...

But hey, I'm getting better understanding strange UNIX stuff ;-)
     
Senior User
Join Date: Oct 2000
Location: Dallas, TX
Status: Offline
Reply With Quote
Oct 4, 2000, 08:16 PM
 
It's nice to know I'm not the only one having these problems.

I agree, it would be great if someone with a better understanding of php/mysql could create binaries for the rest of us... I know the limitations of using someone else's binaries, but frankly, at this point, I could care less. I'm more of an author than a developer, and I've probably spent two weeks trying to get all this stuff installed! I've read at least half a dozen installations from the web, and none of them work... compile errors, missing files, ugh!
     
Senior User
Join Date: Oct 2000
Location: Dallas, TX
Status: Offline
Reply With Quote
Oct 4, 2000, 08:18 PM
 
It's nice to know I'm not the only one having these problems.

I agree, it would be great if someone with a better understanding of php/mysql could create binaries for the rest of us... I know the limitations of using someone else's binaries, but frankly, at this point, I could care less. I'm more of an author than a developer, and I've probably spent two weeks trying to get all this stuff installed! I've read at least half a dozen installations from the web, and none of them work... compile errors, missing files, ugh!
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: cannes france
Status: Offline
Reply With Quote
Oct 5, 2000, 01:20 PM
 
when i'm trying to launch apache:

Syntax error on line 209 of /Library/WebServer/Configuration/apache.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl start: httpd could not be started


when i'm trying to launch mysqld:
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


toooooo baaaad
     
Senior User
Join Date: Oct 2000
Location: Dallas, TX
Status: Offline
Reply With Quote
Oct 5, 2000, 01:30 PM
 
the 'Load Module' problem: you must have configured apache with php as a static module. Open the apache.conf file (or httpd if you reinstalled it) and comment out all the lines that begin with "Load Module" or "Add Module."

I installed the mysql binary (I am on OS X Server, though, so it won't work for you if you are on PB).

.b
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Oct 6, 2000, 12:30 PM
 
- you dont need to have the developer tools to compile the PHP/Apache support.

-however, the instructions are not completely kosher. Apache will fail to start because of bad loadModules. You probably need to go to the config directory in apache and remove the old apache.conf file and replace it with the default apache conf file that is installed with apache 1.3.12. Then Apache will work.

as for MySQL. I'm still investigating. The error when connecting to mysql.sock is because the mysqld daemon is not running. I tried to run the mysqld, and i get a security warning because its trying to run as root. I need to look further into this.



------------------
-The Timster
     
Dom
Guest
Status:
Reply With Quote
Oct 6, 2000, 06:04 PM
 
This actually finally worked for me.
You have first to remove the apache.conf file, and rename the apache.conf.default as apache.conf.
Don't forget to add the .php type by uncommenting the line starting with # AddType ... concerning .php extension. It's a good idea to make the .php3 extension recognized as being php4.

Concerning MySql, it actually seems to work. After the installation, type :
mysql_install_dbsafe_mysqld &
mysql

et voil !

I've just installed phpMyAdmin ... and created a database :-)

Thanks guys.


------------------
Dominique Peretti
     
Dom
Guest
Status:
Reply With Quote
Oct 6, 2000, 06:07 PM
 
Originally posted by Dom:

Concerning MySql, it actually seems to work. After the installation, type :
mysql_install_dbsafe_mysqld &
mysql
Oops, it should read :

After the installation, type :
mysql_install_db
safe_mysqld &
mysql



------------------
Dominique Peretti
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: cannes france
Status: Offline
Reply With Quote
Oct 8, 2000, 05:26 AM
 
how to make mysql run at startup???

thanks
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:13 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2