feathertail: (Default)
Tachyon Feathertail ([personal profile] feathertail) wrote in [community profile] linux4all2011-07-20 05:33 am

PHP development server troubleshooting!

Okay, this is like my fifth time trying to get LAMP set up on Ubuntu, and yes, that includes using XAMPP. (All I want to do is practice my PHP so I can write WordPress plugins! *sob* Why does the world's easiest language have to be so hard to set up?)

*cough* Anyway. I used these instructions this time, after uninstalling XAMPP and what were hopefully all traces of my last attempt at doing this. I'm not using Netbeans -- gedit is okay with me -- and I didn't get any error messages or anything, so I thought I'd actually gotten it set up and set to use /home/feathertail/PHP as the document root.

I put a test file in there, browsed to /localhost and got this:
Forbidden

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

Apache/2.2.17 (Ubuntu) Server at localhost Port 80
And for some reason it has the XAMPP logo as its favicon.

Can anyone point me in the direction of finally solving this once and for all?
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2011-07-20 12:18 pm (UTC)(link)
What are the permissions for this file?
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2011-07-20 05:57 pm (UTC)(link)
Damn. It's been so long since I last installed LAMP that I can't remember what problems I used to have with it.

I haven't installed it since I did a clean install of Natty, actually. I'll try to do it this weekend using the same tutorial as you and see if I can replicate your problem. If nobody's found a solution and you haven't heard of me by Monday, poke me :)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2011-07-20 04:07 pm (UTC)(link)
The XAMPP favicon may just be the result of browser caching: I've noticed that browsers tend to cache favicons heavily, on the assumption that these aren't going to change, since they so rarely do.

If the other things on the page indicate that they're not running on XAMPP, I wouldn't worry about the favicon, and would focus on the /localhost thing.
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2011-07-24 07:58 pm (UTC)(link)
OK, install done, and everything is working swimmingly, which is good for me, but not so much for you :/

I must say this is not the most helpful tutorial I've ever worked with. For one thing, the very first command didn't work XD

Did you go through all the steps, especially reloading the Apache server? What are the permissions on ~/PHP?