i Cant make PHP work in Jaguar!

macfreak88

Bring me Tiger!
Hi!,

Since i installed Jaguar cant get PHP working. Before it was working perfectly.

But now it´s just shows the the text source of it, instead of the page.
I tried to re-install just as it said in the PHP Howto on this site. But it doesn´t work.

hmmm pleez help me with this!
 
You don't have to DL anything. Just uncomment this line in the httpd.conf file

LoadModule php4_module libexec/httpd/libphp4.so

Then you want to add these lines.

AddType application/x-httpd-php .php
AddType application/x-httpd-php3 .php3


I added it under the addtype of the .shtml files. Save then restart Apache.
 
I have it up and running now :D. But how do i enable MySQL, I was just making e new account on the computer when it said "Youre already have a user with that name".

I know i have deleted one but not right i think but how do i get rid of it so i can make a new fresh one?, If i get support on this what shall i do next :)
 
Hay Excalibur how do i do that? Get into the httpd.config file. I don't play with the terminal much.

Twister
 
twister, if you want to edit/look at Apache's httpd.conf file then type the following into the terminal:

cd /private/etc/httpd/
ls


Now, if you just wanna look at the file type:

pico httpd.conf


... but if you want to edit the file then type:

sudo pico httpd.conf


You should now see the glory which is your web server configuration!:D Take time looking through it because there are a lot of things which are easily editable (it's so well documented).

If you do make any changes using pico then once you've exited pico, in your terminal type:

sudo apachectl restart


to restart Apache. If you get an error message (aborted restart), then you have misconfigured something, so you'll have to go back and correct what you did.;)
 
But i had an account that was named mysql but deleted it in the terminal and it stil says it´s there , how do i get id of that?

So i can add a new fresh one?
 
Sorry, I don't know.

A stupid question:
Have u deleted it from Acoounts management on prefs panel?

or try to delete it by using NetInfo manager.
 
I have now installed MySQL.

But now i want to install a poll and i have to config som stuff.

But i dont know what to type.

$POLLDB["dbName"] = "DB name";
$POLLDB["host"] = "Localhost";
$POLLDB["user"] = "User";
$POLLDB["pass"] = "password";


What shall i type?, what is my db name? and what is my host etc?. Please help i´m a real newbie on this.And tell me about security stuff.
 
$POLLDB["dbName"] = "DB name";
$POLLDB["host"] = "Localhost";
$POLLDB["user"] = "User";
$POLLDB["pass"] = "password";

DB name is the name of your new database (read a mysql manual)
localhost is your machine
user is the person who hav access to mysql (root by default)
password is the password (blank by default)

there's a web tool to manage your mysql server:

http://www.phpmyadmin.net/

nothing to install, only a php administartion tool for your web server.
 
Originally posted by twister
Hay Excalibur how do i do that? Get into the httpd.config file. I don't play with the terminal much.

Twister

through the terminal you can type in...

sudo pico /etc/httpd/httpd.conf

or you can open it in textedit or BBedit if you prefer.

Sorry for the delay there.
 
Back
Top