Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: JohnyBeGood (---.hsd1.wa.comcast.net)
Date: October 11, 2017 06:47AM

Hello,

As the topic says I'm trying to get it to work. I copied old PHP 5.3.10 from one of the older versions and was ableto fix error up this one with apache:
[11-Oct-2017 04:35:22 UTC] Apache variable "${INSTALL_DIR}" is not defined.

Any idea how to fix it?

Options: ReplyQuote
Re: Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: Otomatic (Moderator)
Date: October 11, 2017 09:15AM

Hi,

> I copied old PHP 5.3.10 from one of the older versions
NO.

Install addon wampserver3_x86_addon_php5.3.10.exe

Do not forget that before installing the PHP addon 5.3.10, you must return to the initial state before the folder is copied.

Read WAMPserver 3 - All you need to know

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 2 time(s). Last edit at 10/11/2017 09:48AM by Otomatic.

Options: ReplyQuote
Re: Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: JohnyBeGood (---.marinko.us)
Date: October 11, 2017 09:54PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> > I copied old PHP 5.3.10 from one of the older
> versions
> NO.
>
> Install addon
> [url=http://wampserver.aviatechno.net/files/php/wa
> mpserver3_x86_addon_php5.3.10.exe]wampserver3_x86_
> addon_php5.3.10.exe[/url]
>
> Do not forget that before installing the PHP addon
> 5.3.10, you must return to the initial state
> before the folder is copied.
>
> Read
> [url=http://forum.wampserver.com/read.php?2,138295
> ]WAMPserver 3 - All you need to know[/url]


Hello,

Thank you! That's what I was missing. Somehow I never came across that in my searches.

Another question, I've created virtualhost ie. "johny.com" and my folder resides in C:\wamp\www\johny.com
when I open it in the browser ie. [url]http://johny.com[/url] it opens but not www.johny.com
Tried adding www.johny.com to the hosts file but its not doing anything.
Any idea?

TIA!

Options: ReplyQuote
Re: Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: Otomatic (Moderator)
Date: October 11, 2017 10:22PM

Hi,

If the ServerName is johny.com the url of the site is 'http://johny.com/'

If you want it can be also opened as 'http://www.johny.com/' you need to add a ServerAlias directive in the VirtualHost
ServerAlias www.johny.com

Remember that in order for VirtualHost changes to take effect, you must restart Apache
- Left-Clcik Wampmanager tray icon -> Apache -> Service administration -> Restart service

Remember that for changes to the hosts file to take effect, you must restart the DNS.
- Right-Click -> Tools -> Restart DNS

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: JohnyBeGood (---.marinko.us)
Date: October 12, 2017 12:04AM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
>
> If the ServerName is johny.com the url of the site
> is 'http://johny.com/'
>
> If you want it can be also opened as
> 'http://www.johny.com/' you need to add a
> ServerAlias directive in the VirtualHost
> ServerAlias www.johny.com
>
> Remember that in order for VirtualHost changes to
> take effect, you must restart Apache
> - Left-Clcik Wampmanager tray icon -> Apache ->
> Service administration -> Restart service
>
> Remember that for changes to the hosts file to
> take effect, you must restart the DNS.
> - Right-Click -> Tools -> Restart DNS
Thanks again for the reply!

So in C:\wamp\bin\apache\apache2.4.27\conf\extra\httpd-vhosts.conf I added as suggested just below ServerName

<VirtualHost *:80>
ServerName johny.com
ServerAlias www.johny.com

but it would not open simple image file ie. [www.johny.com]
I made sure and restarted DNS, Apache and all other services.

It worked only after I added 127.0.0.1 www.johny.com
to hosts file: C:\Windows\System32\drivers\etc\hosts

My question is, did I do it right by modifying hosts file?



Edited 1 time(s). Last edit at 10/12/2017 12:07AM by JohnyBeGood.

Options: ReplyQuote
Re: Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: Otomatic (Moderator)
Date: October 12, 2017 09:22AM

Hi,
> My question is, did I do it right by modifying hosts file?
Yes.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Trying to get PHP 5.3.10 to work with v3.1.0_x86
Posted by: JohnyBeGood (---.marinko.us)
Date: October 12, 2017 09:52PM

Otomatic Wrote:
-------------------------------------------------------
> Hi,
> > My question is, did I do it right by modifying
> hosts file?
> Yes.
Thank you!

Options: ReplyQuote


Sorry, only registered users may post in this forum.