Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macos-x-server digest, Vol 3 #454 - 17 msgs



>> I am having a hell of the time getting PHP My Admin to work... I
>> installed PHP with no problems under OSX from the command line, then
>> installed MySQL as well, again, no problems. I installed a script to
>> start MySQL automatically whenever the server reboots as well.. Again, no
>> problems.
>>
>> However, for some reason when I access PHPmyAdmin I get the following
>> errors:
>>
>> The host name is empty!
>> Warning: Cannot add header information - headers already sent by (output
>> started at
>> /Library/WebServer/Documents/myphpadmin/libraries/common.lib.php:694) in
>> /Library/WebServer/Documents/myphpadmin/main.php on line 16
>>
>>
>> As for the "host name", I have tried everything I can think of... from
>> 'localhost' to the host name of the box itself.
>
> how bout your dns setup? apache will need a hostname or it will run only on
> localhost which in some circumstances could lead to some problems.
>
> did you setup everything in httpd.conf?
>
> how bout other phps? do they work?
>
> can you connect to the database with mysql-client?
>
>>
>> As for the header info problem, according to the PHPmyadmin docs, I need
>> to make sure I do not have a space or slash, or line, etc., in front of
>> <?php or after ?>. I do not.
>>
>> The only other thing I can think of is a warning that is in the docs
>> which says that "Mac users need to be aware that "Suffit" which I use to
>> uncompress files in the GUI, will add a end of line character of ( "\r" )
>> to the files.. " So needless to say, PHP does not seem to like the "end
>> of line character on the Mac". I have checked this as well, and cannot
>> find any end of line character in any of the scripts. If they are there,
>> I am supposed to change the \r to a \n in my text editor BBedit). I
>> would do this if I could figure out where the \r is at in each file.
>>
>> Anyway... Any ideas?
You probably don't have any header problems at all.

Your trouble is that first error: The host name is empty!

Because header information (ex: header,setcookie, etc.) needs to be sent
prior to any printed output, when an error is thrown, it sends printed lines
to the browser. Get rid of the first bug and the header bugs should go
away.

Mitch Gould
email@hidden
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.