ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

Mac testing server.



  306 TD Slut
any recommendations?

i just installed (i think i did it properly) Xampp, but when i tried to see a.php file it wouldnt load..? I'm not sure I installed it corectly.
 

sn00p

ClioSport Club Member
  A blue one.
have you started up the xampp version of apache? (instead of the "built in" version)
 
  306 TD Slut
Thats the bit that confused me, I'm not to keyed up on this side of things.

I dont know how to go to the terminal shell and login as the administrator? is that simply just log into the machine as admin? in which case there is only one login on this machine.

how do you call in a command? lol!
 

sn00p

ClioSport Club Member
  A blue one.
Thats the bit that confused me, I'm not to keyed up on this side of things.

I dont know how to go to the terminal shell and login as the administrator? is that simply just log into the machine as admin? in which case there is only one login on this machine.

how do you call in a command? lol!

Applications/Utilities/Terminal

Then when it's open, type:

Code:
sudo su

(it''s ask for you admin password and the terminal will then become a super user.)

Then type:

Code:
/Applications/xampp/xamppfiles/mampp start

should be good to go then!
 
  306 TD Slut
That all seems to have been entered ok now.

I am using dreamweaver (i know, i know! Purely for code view though) i think this is where I am going wrong, in the set up stages, where it asks for the URL of the root folder, which i'm guessing should be http://localhost? its saying dreamweaver cannot use this prefix to display live data, and when i go to preview the index.php it just shows NOT FOUND and in the url bar its showing http://localhost/index.php.
 

sn00p

ClioSport Club Member
  A blue one.
That all seems to have been entered ok now.

I am using dreamweaver (i know, i know! Purely for code view though) i think this is where I am going wrong, in the set up stages, where it asks for the URL of the root folder, which i'm guessing should be http://localhost? its saying dreamweaver cannot use this prefix to display live data, and when i go to preview the index.php it just shows NOT FOUND and in the url bar its showing http://localhost/index.php.

dunno!

you should just be able to type:

Code:
http://localhost

as the URI and you should see the xampp page. Were there any errors reported when you started apache from the command line?
 
  306 TD Slut
Yeah I get the Xampp page.

seems to be all running OK:

Macintosh:~ Mark$ sudo su
Password:
sh-3.2# /Applications/xampp/xamppfiles/mampp start
Starting XAMPP for MacOS X 0.7.2...
XAMPP: XAMPP-Apache is already running.
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for MacOS X started.
sh-3.2#


I just changed the Xampp settings from PHP 5 to PHP 4 and it doesnt mention the prefix bit, and says it was tested sucessfully, but shows NOT FOUND
 

sn00p

ClioSport Club Member
  A blue one.
Yeah I get the Xampp page.

I just changed the Xampp settings from PHP 5 to PHP 4 and it doesnt mention the prefix bit, and says it was tested sucessfully, but shows NOT FOUND

Humn. strange....dunno, should just work!

I would install it myself and give you a hand mate, but I'm f**king shattered (long day!) and I'm falling asleep and my brain is utterly frazzled from today.
 

sn00p

ClioSport Club Member
  A blue one.
Yeah I get the Xampp page.

seems to be all running OK:

Macintosh:~ Mark$ sudo su
Password:
sh-3.2# /Applications/xampp/xamppfiles/mampp start
Starting XAMPP for MacOS X 0.7.2...
XAMPP: XAMPP-Apache is already running.
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for MacOS X started.
sh-3.2#


I just changed the Xampp settings from PHP 5 to PHP 4 and it doesnt mention the prefix bit, and says it was tested sucessfully, but shows NOT FOUND

What is saying not found then?! Not quite sure what the problem is that you are having?

if you put in test.php in the folder where xampp keeps its web files - with the following code in it:

Code:
<?php
phptest();
?>

then enter the following url:

Code:
http://localhost/test.php

What happens?
 
  306 TD Slut
with the test.php file i get this:

Fatal error: Call to undefined function: phptest() in /Applications/xampp/xamppfiles/htdocs/test.php on line 9

it wont let me save it in the applications/xampp folder, says access denied,

okay, no worries matey, i appreciate all the help you have already given.

I just restarted all the components and got this, it mentions invalid arguement:

Stopping XAMPP for MacOS X 0.7.2...
XAMPP: Stopping Apache with SSL...
/Applications/xampp/xamppfiles/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for MacOS X 0.7.2...
XAMPP: Starting Apache with SSL (and PHP4)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for MacOS X started.
 
Last edited:

sn00p

ClioSport Club Member
  A blue one.
okay, no worries matey, i appreciate all the help you have already given.

I just restarted all the components and got this, it mentions invalid arguement:

Stopping XAMPP for MacOS X 0.7.2...
XAMPP: Stopping Apache with SSL...
/Applications/xampp/xamppfiles/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for MacOS X 0.7.2...
XAMPP: Starting Apache with SSL (and PHP4)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for MacOS X started.

Don't worry about that. The error is when it's killing the daemon. It's starting up fine from the look of that.

I think if you just put a php script in the folder where xampp serves from then you will find it's all working!
 

sn00p

ClioSport Club Member
  A blue one.
with the test.php file i get this:

Fatal error: Call to undefined function: phptest() in /Applications/xampp/xamppfiles/htdocs/test.php on line 9

okay, no worries matey, i appreciate all the help you have already given.

I just restarted all the components and got this, it mentions invalid arguement:

Stopping XAMPP for MacOS X 0.7.2...
XAMPP: Stopping Apache with SSL...
/Applications/xampp/xamppfiles/bin/apachectl: line 70: ulimit: open files: cannot modify limit: Invalid argument
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for MacOS X 0.7.2...
XAMPP: Starting Apache with SSL (and PHP4)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for MacOS X started.

It's working! :)

I mean't to type phpinfo()

Told you, it's late and I'm tired!
 

sn00p

ClioSport Club Member
  A blue one.
Super!

:D

Now the obvious question, why install xampp?! I assumed it was because you wanted php5 as I think the standard apache server in OS X in php4...but that obviously isn't the case!
 
  Rav4
MAMP? That works perfectly.

Anyway, for what I think you are trying to do, macs do it out the box :)
 

sn00p

ClioSport Club Member
  A blue one.
Anyway, for what I think you are trying to do, macs do it out the box :)

Yeah, they do!

I assumed he wanted PHP5 or something, which is why I carried on helping with xampp.

Maybe he's got another reason, I guess a possible one is that it allows apache, mysql etc to only be started when he wants from a command line with a single command - rather than having to go through the preferences pane turning on web sharing and mysql.
 
  306 TD Slut
I only need it for testing PHP.

I couldnt see the php includes without it? unless there is a way of doing it without xammp?
 

sn00p

ClioSport Club Member
  A blue one.
I only need it for testing PHP.

I couldnt see the php includes without it? unless there is a way of doing it without xammp?

I can't remember by default whether apache is configured for PHP, but even if it isn't, it's a two minute job to turn it on.

It's about the first thing I do on a new OS X machine!
 
  306 TD Slut
just read up on how to do it, removing the # signs from a few lines in terminal in the apache configuration file.
 


Top