x404.co.uk http://www.x404.co.uk/forum/ |
|
Apache - PHP - MySQL http://www.x404.co.uk/forum/viewtopic.php?f=4&t=12604 |
Page 1 of 1 |
Author: | Fogmeister [ Wed Feb 16, 2011 10:32 pm ] | |||||||||
Post subject: | Apache - PHP - MySQL | |||||||||
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 ...
...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? |
Author: | Fogmeister [ Wed Feb 16, 2011 10:35 pm ] |
Post subject: | Re: Apache - PHP - MySQL |
WWWWWWWWWWWWWOOOOOOOOOOOOOOAAAAAAAAAAAAAAAAHHHHHHHHHHH!!!! It only fracking works!!! I think the browser hadn't refreshed the file properly. IT FRICKING WORKS! |
Author: | forquare1 [ Thu Feb 17, 2011 7:01 am ] |
Post subject: | Re: Apache - PHP - MySQL |
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. |
Author: | Fogmeister [ Thu Feb 17, 2011 7:46 am ] | |||||||||
Post subject: | Re: Apache - PHP - MySQL | |||||||||
LOL, yes I did ![]() 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. |
Author: | EddArmitage [ Thu Feb 17, 2011 10:24 am ] |
Post subject: | Re: Apache - PHP - MySQL |
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. |
Author: | Fogmeister [ Thu Feb 17, 2011 10:58 am ] |
Post subject: | Re: Apache - PHP - MySQL |
Thanks for that. Didn't know that about w3schools. Will see if I can find an alternative PHP resource. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |