Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php and mac

Status
Not open for further replies.

disfasia

Programmer
Apr 20, 2001
378
CA
i want to know if there is any way to work with php on a mac? this might sound silly to some of you, but i am very new to this world...

thanks
disfasia
 
no. PHP is only supported on *nix and Windows systems.

The MAC servers and/or the ability to install PHP on a MAC system has not been developed for many reasons (that I know of).
 
It DOES exist! I've also been looking for it. About a month ago i found:

WebTen (
Download the trial (this contains php3) and if you want php4 download the php4-update.

WebTen works fine with me! After the trial (30 days?) WebTen only runs for 2 hours. You will have te restart WebTen to get another 2 hours of fun! (no problem i think).

Greetings,

Nage
 
thanks so much Nage!

i will download immediately!...

regards,

disfasia
 
Nage,
I have one more question..I had a difficult time deciding what i ought to download since the explanations on the site you gave me are rather brief and somewhat vague at times. I have the itools and the php4 but i cannot open them on my mac? is there something i ought to be doing that i am not to open them?

thanks again,
disfasia
 
disfasia,

First of all you don't need iTools, you must have WebTen 3.0 (link:
Second, if you have MacOS 9.1 you will have to download the MacOS 9.1 patch (link: else your Mac will crash when starting WebTen (forgot to say that!)

If you installed WebTen, MacOS 9.1 Patch and PHP4.0 your WebTen is ready to use!

Greetings,

Nage
 
Thanks for the info. I downloaded webten and php and i have webten running, but cannot figure how to get php4 to run from it. i am very new to this, sorry to both you. and again thanks for your help!

disfasia
 
Hi,

Did you test if php works? No? Make a file 'info.php' that contains:
<?
echo phpinfo();
?>


Put this file in WebTen's websites folder and run it (
If php works you will see all sorts of information about PHP (look at for an example). Else you will have to reinstall...

Greetings,

Nage
 
I think I am doing something very wrong here,Nage. I made the file as you said and put it in the web folder, but i made the file in simple text. i get the log_format in the web ten scren but cannot figure out out to run the info.php file. I am sorry for the trouble but I am just beginning with this business ... thanks for all your assistance!

disfasia
 
Hi,

Doesn't matter... :)

The problem is that I'am not home right now. I try to do it by memory:

Put info.php in 'WebTen:Websites:192.168.0.1' (or something) and type in your browser:
If your browser returns an error (error in line 2!) or just the info-page you'll know that it works. If you see:
<?
echo phpinfo();
?>

PHP doesn't work and you will have to reinstall WebTen.

Greetings,

Nage
 
so i need to make a folder labelled 192.168.0.1? and is it ok for me to use simple text to write the echo code?

also...what do i do with web ten actually? i cannot seem to see what functions it has thus far since what i am doing is dealing with files in its folder, but not with it directly...
thanks
disfasia
 
ok, i had a microsoft program that was blocking the use of this program on my computer (microsoft personal web server)...so i turned it off...so far so good...then i tried the operation again and i got a forbidden, you don't have permission to access info.php on this server...i have installed twice the program...what do you think?

thanks

disfasia
 
oh, and i forgot what should i put for the domain name in the preferences? thanks
d
 
another note here, when i run the test.php i see in the access log

10.0.1.2 - - [08/Jun/2001:16:26:35 +0100] &quot;GET HTTP/1.1&quot; 403
355

is this ok? should i be seeing something in the browser?

thanks,
disfasia
 
I have installed webten for the ninth time and am not sure what is wrong. in the webten v.3.0 folder there is:

alias webten users
alias webten
folders:plug-ins
logs
websites
tenon libraries
log
ftp
sites
tenon
documentation modules
support
php3
webten settings
webmail

In the websites folder there is an errorcatcher folder and one with my computer name and the webten program...i have put the info.php in the websites folder, in the computer folder and tried everything and i still get the same error message when i call up localhost:

Forbidden
You don't have permission to access / on this server.

I am really tearing out my hair on this one as I spent all yesterday trying to get this to work...any ideas are greatly appreciated...
regards,
disfasia

 
Hi,

Sorry for my late reaction.

The best thing to do is to follow the manual (use the quick-start-guide). This means you will have to go to the web-configuration: and login...

I've got a DNS-server running and you probably don't! You must use the manual to start WebTen without a DNS-server.

Greetings,

Nage

ps. You don't have permission? Do you have SSL running? Turn it of in the webten_admin!
 
thanks again Nage! I found the problem: the program will not allow me to change the name of my computer and uses the bogus.com as the default regardles of what i do. I can access the program via bogus.com luckily but cannot figure out how to make the name change stick since the pref seem whacked a bit...
thanks for all your help!
disfasia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top