Installing Apache,php,mysql on win10 box, help please

Not sure if this is the correct forum.

I’m following a tut at : here .
After many hours of frustration I decided to start again (I do not have internet access 24/7). I had all this on my old XP box but the setup was far different.

I have downloaded apache:httpd-2.4.18-win32-VC14 , php-7.0.4-win32-VC14-x86 . MYSQL-installer-web-community-5.7.11.msi

I need to add in Environment variables. PATH ENVIRONMENT (Control Panel | System Properties | Advanced | Environment Variables | System variables | Path).

Click “new”, I get a pop up box which asks for a name, is it ok just to use apache ?

Second, which of these is correct:
1 ;c:\php;c:\apache24;c:\apache24\bin;
2 c:\php;c:\apache24;c:\apache24\bin;
3. c:\php;c:\apache24;c:\apache24\bin

If none of the above please dont just answer with “none”, I would appreciate the correct answer.

Thats it for now thanks, and its nice to be back learning

Installing isn’t really a Server Config thing, but close enough I guess.

Are you sure you have the correct files?

I have Windows 10 and I installed “win64” and “x64” not “win32” and “x86”

Ah well, that’s what makes trying to solve installation problems remotely such a pain.

Anyway, you do not want “new”
You should highlight the “System variables” - “Path” and edit it by appended “C:\PHP” assuming that is where you installed it.

That would depend on whether you are installing on the 64 or 32 bit version of Windows 10.

2 Likes

First things first. I’m an old man and not exactly computer savvy, please treat me like a complete dummy.

Second, and probably the most important, I appreciate you taking the time to help.

I only picked the win32 because that is what is in the tut, I was using all x64 with my first install that didn’t work. I’m now thinking its this variable “path” thing I got wrong. I haven’t deleted anything out of "C:", just renamed the folders and started a new install, could quickly and easily go back to the previous install if you think best.

So I highlight “PATH”, I still only have a couple of options “edit” or “new”, so I take edit and are now in “edit environment variables”, again gives me a choice of edit, new, browse, or edit text… Looks to me that by going new it will append as you said, but is that correct ?

Wish I had learnt Linux years ago, could it be any worse than windows.

I have a 64bit version but so does the guy that wrote the tut. I originally picked all 64 stuff to download but my install didn’t work so I thought I would follow the tut as near as I could this time.

Thanks for your time

lol don’t bet on your being the only old timing man here.

You should be able to see your system type at
Start → Settings → System → about - next to System type

Then if you click on System info (at the bottom

1 Like

Thats exactly what I was saying, you just did it in an easier way.

Heres the problem as I see it:
I hit new and add “c:\php;c:\Apache24;c:\Apache24\bin” (exact what is within quotes) then click “OK”, hit “OK” for envirinment variables, hit"OK" for system properties, close the control panel reboot. Open control panel etc to PATH click edit and there is NO sign of any “c:\php;c:\Apache24;c:\Apache24\bin”, nothing.There’s no save button, I’ve tried just going back from the control panel to see if its there, I tried a restart, it just aint sticking.

I’m not sure at this stage if I should be shooting the computer or myself, or perhaps just a mild attack on both with a hammer might help.

Thanks for your help.

Don’t get frustrated. Installing PHP on a Windows x64 bit is actually a bit challenging than installing it on a x32 bit. I’ve installed it on both architectures so I know the struggle. I don’t recall what I did, but I spent hours and hours looking for a solution and I found it. But I don’t recall the steps I did or what I did. I did this a while back so I completely don’t remember as I have been installing LAMP and PHP on many many partitions that I forgot the steps to take to install it on some OS.

I think I did this on Windows 7 x64. In my Path, I don’t see any PHP locations so I don’t think that’s the answer. I have the files if you want. It might help, but I’m not sure how much. I do remember that you had to replace some files with Apache’s bin files (EDIT: Vice versa, replace Apache’s Bin files with PHP’s files) because they were outdated some how. I can give you both my Apache and PHP folder if you want. You might have to make backups of yours though if you want to try mine out.

Finally figured out how to get C:\php in there. It wont let me put in c:\php;c:\Apache24;c:\Apache24\bin (one line) so I tried putting them all in separately C:\php then C:\apache24, then C:\apache24\bin, but it will only let me have either C:\apache24 or C:\apache24\bin, so I’ve settled for C:\php and C:\apache24, 2 separate entries, just hope that works.

I’m not online 24/7, I’m working from my car as its the only place I can get an internet connection.

Thanks for your help

Switched back to my previous install of Apache (x64)

Seem to have things almost working, ran C:\apache24\bin\httpd.exe -w -e debug and results were:
Error from apache:

httpd.exe: Syntax error on line 523 of C:/apache24/conf/httpd.conf:
Cannot load c:/php/php5apache2_4.dll into server: The specified module could not be found.

Httpd.conf shows:

LoadModule php5_module “c:/php/php5apache2_4.dll”

This module/dll doesn’t exist in the php folder.
Instead I have php7apache2_4.dll, or php7.dll, should I alter/update the "LoadModule
in my httpd.conf file to reflect one of these dll’s in place of the php5apache.dlll or do I need to find/use the
“php5apache2_4.dll”.

I was just going to change it to the dll’s that I have but I’m never sure what damage it could do.

Thanks in advance

I have this at the bottom of my httpd.conf file and it works for me

PHPIniDir "C:/PHP"
LoadModule php7_module "C:/php/php7apache2_4.dll"
# AddModule mod_php7.c
AddType application/x-httpd-php .php .phar

* you may not need / want the “.phar”
http://php.net/manual/en/intro.phar.php

Thanks everyone for your help, I now finally have an up and running server. Now hopefully you will only need to put up with me on the php forum

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.