• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

Configuring PHP with Apache24 on Windows error

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

Homercidal

Licensed Sensual Massage Therapist.
HBT Supporter
Joined
Feb 10, 2008
Messages
33,269
Reaction score
5,710
Location
Reed City, MI
I'm playing with setting up a new Web and Email server. I'm going with Windows this time and debated installing one of those all-in-one binaries and get Apache, PHP, MySQL all the same time. I decided not to and instead install and configure each one by hand.

So at this point it's all good, except after installing PHP, I install PHPMyAdmin in the ServerRoot, and when I browse to that location I get a "403 Forbidden" error.

The PHPMyAdmin files are installed under the serverroot. I can browse files on my serveroot and the virtual domain I set up within it as well. I've copied the index.php file from the PHPMyAdmin directory into the serverroot directory for kicks and I still get the error.

I've set Require all granted in the hpptd.conf file for those directories, and I placed index.php as allowed in there as well. File permissions indicate that anyone can read and execute in the serverroot as well.

I'm kind of stumped. I think I have an issue with allowing php files, but I can't see where to configure it besides the httpd.conf file. I've visited a bunch of sites that explain the new permission statement in httpd.conf, and it seems to work fine for html docs, but not for php.

Any ideas?
 
@Homercidal,
Pro or home version of windows? I've had trouble in the past with permissions for some software unless it is the pro version. the other thing to check is if "localhost" is being blocked by your firewall. It's been a while since I've played with these, but that's about all I remember for now.

More Edits: Also in the past putting linux stuff on windows I had to put "Localhost" in the HOSTS file if not already there.
 
Honestly if you are going to go Windows, you should use Microsoft products, not badly ported stuff for windows. But that is neither here nor there.
Judging what you have used thus far, why not just install WinLAMP? It has all the pieces you are currently using, and comes with a pretty much click-n-forget installer for all three.

That said, try to see if you can open a image file at that same site, any random one. If not then it's still a permissions issue. If you can, then perhaps you do not have execute permissions set.
 
Any update on this?

I haven't had a chance to get back into it. I can browse web page files. I'll try image files as well.

The reason I didn't do LAMP (or WAMP, since it's Windows, not Linux) is because I WANT to learn how things are put together.

The one thing that bothers me is that there are plenty of how-tos out there that step you through the process, but none of them go through a step, then give testing instructions so you can head off any issues as you go. Sometimes you find out after it's all installed but by then it's much more difficult to find the problem.

I currently have a Slackware server set up, but it's not complete and it's out of date and I wanted to update it. Just thought Windows would be easier to deal with since I'm still pretty green in using Linux.

Maybe after I get a better feel for how all the pieces are put together, I may upgrade to Linux Server of some flavor.

I'll probably have a chance to get back into this in a little while. I have some actual work I am doing and it will distract me when I should be concentrating. For now I can post here and there while I'm doing work.
 
Well, by using the same apps that you used in Linux you really did not solve any of the issues moving to Windows, save maybe a better gui.

Lemme know what you find, be happy to help with your current, always a chance I might learn something new too ;p
 
Well, by using the same apps that you used in Linux you really did not solve any of the issues moving to Windows, save maybe a better gui.

Lemme know what you find, be happy to help with your current, always a chance I might learn something new too ;p

This is true, but while I fumble around in Linux to do basic tasks, I can easily move around in Windows. This essentially cuts the amount of fumbling and lets me focus on the part I want to understand the most.

Whatever I did yesterday to give rights to Apache24 ended up making the serverroot and virtual domains show the error now. Time to backtrack.
 
if you want something easy try wamp or xampp, Ive ran servers for going on 11 years, always linux with shell commands and a friend shows me a demo of wamp and it was actually a faster response than linux, took me literately 30 minutes to set up, oh and hmail for the email, talk about easy
 
So I got Apache serving the default pages again. It was a missing "/" in the document path. As I suspected, something stupid.

Now back to getting PHP to work...
 
Well, I'm not getting a Forbidden error now. I have 2 php frontends loaded.

If I browse to localhost/phpmyadmin/index.php I get a blank page.
If I browse to localhost/phpwebadmin/index.php I get a warning that hmailserver requires PHP5. I have 7 loaded...
 
So apparently there is more to configuring PHP then the how-tos I have read so far described. Some important things were missing. Finally found what was wrong. So I now have PhpMyAdmin set up. Time to get back to hMailServer and configure it to use MySQL and lock down the security settings. I'm hoping to be able to take this home and set it up this weekend. If I can verify the Webserver is functioning and the basic security is in place, then I can swap it with my old server and finish the rest of the email stuff later.
 
You might consider looking into Zimbra for a simple email box, works pretty well, and is not horribly complicated.
 
I have a simple email server. I want a full featured IMAP server with security options and virtual mailboxes, antivirus, spam service, etc.

It's exactly what hMailServer is. Unfortunately, to get all of the options I want I have to install a few other pieces of software as well. Getting all of those configured to work together is the learning part.

Had a guy come in and ask me to troubleshoot his Garmin GPS. Took all morning. Turns out the Micro USB Chip holder wasn't being locked down properly. Makgin backups of his topo maps for him so he doesn't lose all of his data. Pretty cool device. It can track the radio collars of several dogs while he's hunting bear and show them on the map screen.
 
Back
Top