Reply to topic  [ 6 posts ] 
Apache - PHP - MySQL 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
OK, so I've been trying to get this set up for a couple of hours.

Once again I feel like I'm 99% there I just can't get the last 1%.

I followed these steps to install the packages...
http://strdoc.com/install-sshserver-apa ... min-ubuntu

I have connected to the MySQL server on my PC so I know that's working.
I have also connected to the apache server and edited the index.html to confirm I'm looking at it and I am.
I can also connect to the apache server from my laptop so I def know it's working.

Now, I'm not too fussed (at this stage) in connecting the web pages to the db but I would like to get the PHP working.

I've been looking at the W3 schools php stuff and may be being naive.

I have a file called index.php ...
Code:
<html>
<body>

<?php
echo "test";
?>

Hello world

</body>
</html>

...and when I browse to it I only get the "Hello world" bit coming through.

I've got further than ever before with trying to get this to work but I can't get the last 5%.

Is there something I need to do to get that last bit working?

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Wed Feb 16, 2011 10:32 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
WWWWWWWWWWWWWOOOOOOOOOOOOOOAAAAAAAAAAAAAAAAHHHHHHHHHHH!!!!

It only fracking works!!!

I think the browser hadn't refreshed the file properly.

IT FRICKING WORKS!

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Wed Feb 16, 2011 10:35 pm
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 6:36 pm
Posts: 5150
Location: /dev/tty0
Reply with quote
Did you ask yesterday about moving the web root?

I moved my web root to /web using one of the config files, then chmod'd and chown'd it so that it's group matched my users group, and had read/write/execute permissions for said group.


Thu Feb 17, 2011 7:01 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
forquare1 wrote:
Did you ask yesterday about moving the web root?

I moved my web root to /web using one of the config files, then chmod'd and chown'd it so that it's group matched my users group, and had read/write/execute permissions for said group.

LOL, yes I did :D

That was after I had manually installed Apache.

I then realised that you could install everything using the apt-get commands and it moved the root to /var/www so I just went with that.

I chmod'd it to rwx but didn't bother chowning it.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Thu Feb 17, 2011 7:46 am
Profile WWW
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 9:40 pm
Posts: 5288
Location: ln -s /London ~
Reply with quote
Just as a word of warning, and I know I regularly recommend w3schools (and still use them myself for things) but this makes interesting reading and is probably worth being a bit aware of.

_________________
timark_uk wrote:
Gay sex is better than no sex

timark_uk wrote:
Edward Armitage is Awesome. Yes, that's right. Awesome with a A.


Thu Feb 17, 2011 10:24 am
Profile
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
Thanks for that.

Didn't know that about w3schools.

Will see if I can find an alternative PHP resource.

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Thu Feb 17, 2011 10:58 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.