Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 21st, 2001, 11:00 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Building XAMP

Found some problems in the article.

1) Compiling MySQL.
I received errors when compiling with the settings provided.
"make[1]: ***No rule to make target "myinit.c", by my.init.lo. Stop.
Make *** [install recursive] Error 1"

I tried turing off assembler and it did compile. Ideas.

2)Compiling PHP
Your artilce quotes the location of the perl fix file wrong.
"...BuildingOnOSX/... not "...BuildingOnMacOSX/..."
I figured it out and got the file. But I am unable to run it.
At my user prompt it tells me "permission denied"
Using sudo I get "command not found"
I confirmed the fix_php.pl exists and contains the code listed.
I confirmed that perl in in /usr/bin/.
Ideas.

General===================================
Thank you for providing clear instructions an reasons why you use certain commands. I not entirely frustrated. Actually, it seemded to be easier to do in the public beta than the final version. I am sure this can be worked out so more OSX users can build powerful servers.

Thanks in advance for the assistance.

Reply With Quote
  #2  
Old May 22nd, 2001, 11:07 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Building XAMP

Running ./configure without the --enable-assembler flag should work just fine - it's an option that I like to include when I compile.

I am wondering why it doesn't work on your machine, however. Are you trying this on Mac OS X 10.0.3?


As for the problem with fix_php.pl, I left out a step. You need to add execute permissions to the script before you can execute it.

Type the following:
chmod +x fix_php.pl

Also, make sure that the fix_php.pl script is in the PHP source directory - it should be if you followed the directions exactly.

Reply With Quote
  #3  
Old May 22nd, 2001, 10:51 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Building XAMP

I am using 10.0.3.
got the fix_php.pl to work and PHP4.0.5 up and running.

Seems like the auto startup mysql isn't working. Can't find mysql in processes list, although it shows up in the startup console.

Tried sudo safe_mysqld and after using admin level password get the following...

Starting mysql daemon from /usr/local/var.... (Good!)
10522 the time and mysqld ended... (Bad!)

My guess is that it has either something to do with the previous version I had installed or the permissions on the directory.

Ideas?

Thank you once again for your quick response. I know that perl script thing will send a lot of people scratching.

Reply With Quote
  #4  
Old May 23rd, 2001, 03:24 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks

very good resource to point confused individuals to. Great job, devshed (and thanks macaddict for pointing it out).

Reply With Quote
  #5  
Old May 23rd, 2001, 07:03 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
MySQL

Thank you foran ecellent and easy to follow article.

I had a problem with mysql though. After installation which seemed to go OK the command
Code:
% chown -R mysql /usr/local/var

gave the response...
Permission denied
Operation not permitted
The following command to start MySQL gave a command not found.

The following installations went well. Interestingly the php info page did not display using MSIE 5.1 but did using OmniWeb.

Reply With Quote
  #6  
Old May 23rd, 2001, 06:19 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
final step - help pls

when I enter http://localhost/phpinfo.php into my browser, I get a connection failure occurred error.

-Running 10.0.3 on G4 500 (DHCP T1)
-Installations went smooth, and as described (except for MySQL: chown -R mysql /usr/local/var; permission denied)
-removed # from /etc/httpd/httpd.conf for ServerName localhost
-checked /etc/hosts file for localhost
-checked and restarted all applicable services

Any suggestions/ideas?

Thank you


Reply With Quote
  #7  
Old May 23rd, 2001, 09:03 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
This Rocks!!!

Thanks for the instructions. What's the next project?

Reply With Quote
  #8  
Old May 24th, 2001, 07:08 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
mod_ssl

Where I found instructions to compile mod_ssl in Mac Os X?

Thanks.

Reply With Quote
  #9  
Old May 24th, 2001, 04:16 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: MySQL

was it

sudo /usr/local/bin/safe_mysqld &

that gave the command not found?

As for
chown -R mysql /usr/local/var

try

sudo chown -R mysql /usr/local/var

Reply With Quote
  #10  
Old May 24th, 2001, 04:29 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: final step - help pls

Okay, found my own issue - I noted port 80 wasn't being used. Looked in the httpd.conf file, default port set to 8080 - DNS tried resolving the name, hence unable to connect - changed the port to 80, and all's well

-Jack

Reply With Quote
  #11  
Old May 24th, 2001, 09:20 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Apache problem

Thanks for the great tutorial. I was struggling to get MySQL running till I read this.

I've gone through it OK (though first time I used Apache 1.3.20) and when it came to getting Apache running I get this error:

/usr/sbin/apachectl start
dyld: /usr/sbin/httpd Undefined symbols:
_ap_ctx_get
/usr/sbin/apachectl start: httpd could not be started

If I use the GUI tool in system preferences - rather than the command line - to turn it on it greys out and never comes back. That error gets written to the console.

OK, I thought, I wouldn't be quite so smart and would use 1.3.19 - just like in the tutorial but it gives the same error.

I have 10.0.3 on a G3 400.

Reply With Quote
  #12  
Old May 25th, 2001, 12:40 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
gd with PHP

I'm stumped trying to get the gd libraries to work with PHP.

Has anyone gone down this path?

Basically I'm having trouble getting gd to find libjpeg6b.

Yours,

Gus

Reply With Quote
  #13  
Old May 25th, 2001, 11:38 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Apache works - why?

<p><pre><font color=#008000><xmp>[localhost:/tmp/apache_1.3.19] levinson% /usr/sbin/apachectl start</xmp></font></pre><p>
<!-- Code -->
<p><pre><font color=#008000><xmp>Processing config directory: /private/etc/httpd/users
Processing config file: /private/etc/httpd/users/levinson.conf
Processing config file: /private/etc/httpd/users/levinson.conf~
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl start: httpd could not be started</xmp></font></pre><p>

Reply With Quote
  #14  
Old May 25th, 2001, 02:02 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Apache works - why?

Run it like this:
sudo /usr/sbin/apachectl start

or start it from the Sharing control panel and it will work.

Reply With Quote
  #15  
Old May 25th, 2001, 09:25 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: This Rocks!!!

this is great, until now the best explanations where at www.macosxhints.com and over at webmonkey, but they are still dated.

this is by the best I've seen and easy to understand.

Thank you

1 question,
any reason why you didn't build with apache 1.3.20?

I did it under stupidity and probably didn't configure it correctly, hehe, gonna re-do apache this week.

Also, it seems that some php scripts are having problems with php 4.0.5, just a small warning to older script users.

thanks alot

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Building Apache, MySQL, and PHP on Mac OS X


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |