No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 09, 2014 11:13AM

Hello again,

It seems to me that there is no addons section on the wampserver website anymore. Is that true or the link is hidden somewhere? I am running the latest wamp 2.5 and I was looking to get some extra versions of Apache/php/mysql. (php5.6/6 perhaps)
Thank you.

PS: of course I can try to get them directly and hack in the codes, but I was wondering...

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: November 09, 2014 01:09PM

Currently there are no addons for WAMPServer 2.5

I have no idea if or when some may become available. BUT, like you say you can do it yourself !!!


HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMP ENVIRONMENT

Before you start

On Apache and PHP you will see the acronyms VC6, VC9, VC10 or VC11. This denotes the compiler version used to compile that program or dll.
Unfortunately you cannot mix the two when it comes to Apache and PHP as it is configured in WAMPServer, although some docuentation suggestst that VC10 and VC11 are compatible with each other, I make no guarantee of this.
So first you must find out which compiler was used to compile the Apache you are currently using, so you can get the PHP that was compiled with the same version of the compiler.
As time goes on this becomes more complicated as newer versions of PHP are not being compiled and linked with older versions of the compilers. VC6 seems to have been dropped a little while ago. So if you want to use a new PHP you will probably have to upgrade your version of Apache as well so you have a version that is compiled with at least VC9



The way PHP and Apache interact in the default WAMPServer install is that Apache launches the PHP Interpereter as a dll (php5apachex_y.dll) as this is a very close relationship i.e. not communication via a TCP port like PHP and MySQL, so they both have to have been compiled using the same version of Microsoft Visual C Compiler.


1. From WampManager "Stop All Services".

2. Download the PHP Release you want to install from HERE or if its not a current release from The Acrhives
You should use the Thread Safe build. Usually the Not Thread Safe version has the acronim NTS and the thread safe version does not.
You should download the ZIP and not an .msi
Make sure its built with the same compiler versions as you Apache ( VC6 / VC9 / VC10 / VC11 ),
yes its a mine field. But if you are using WAMPServer 2.4 or > then you want the VC11 Thread Safe version.

3. Create a new folder under c:\wamp\bin\php\ with the name = the version you are installing
So, for example, make a folder called php5.5.11.



4. Now from the folder containing your most recent ( and working ) verions of PHP copy the file called wampserver.conf and paste it into your new PHP folder created in the previous setp.
This file is required by wamp server to properly identify that this is a valid PHP version folder.
The file contains references to the names of the dll files that contain the PHP interpreter, so that the correct file can be copied to the Apache folder when you activate this new version of the PHP interpreter.

The file should look like this, if you are moving from a very old version of PHP you may need to add some new sections from here to your file.

<?php

$phpConf['phpIniDir'] = '.';
$phpConf['phpExeDir'] = '.';
$phpConf['phpConfFile'] = 'php.ini';


$phpConf['apache']['2.2']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.2']['LoadModuleFile'] = 'php5apache2_2.dll';
$phpConf['apache']['2.2']['AddModule'] =  '';

$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] =  '';

?>


5. Now unzip the downloaded PHP into your new folder, make sure the folder hierarchy looks like this.





6. Now in your new folder copy the file php.ini_development into a new file called php.ini




Do the same again but paste into a file called phpForApache.ini
You should now have the original file called php.ini_development PLUS 2 more, one called php.ini and one called phpForApache.ini

The php.ini file is used if you are using the PHP CLI i.e. running php from the command line > php script.php
The phpForApache.ini is the php config used by Apache. This file is copied into the currently active Apache's folder and renamed to php.ini by WAMPmaneger when you activate this version of PHP.

It should look something like this:




7. We must now make some change to the php.ini files to WAMPise them. Take your time here it will save you time later.

Edit the newly created phpForApache.ini file

Search for extension_dir and change to
extension_dir = "d:/wamp/bin/php/phpx.y.z/ext/" <- where x,y,z match the folder you are putting the new PHP into.

Search for ;error_log = php_errors.log and change to
error_log = c:\wamp\logs\php_errors.log
Search for anything 'php/' and make sure you change it to you c:\wamp\bin\php\php.x.y.z folder name.

In fact search for anything with a C:\ in it and make sure its chnaged to the WAMPServer equivalent.

As of PHP5.4 the timezone need to be set
Search for [Date] and put an entry into the date.timezone field as a minimum

date.timezone = "Europe/London"
date.default_latitude = 0.0
date.default_longitude = 51.502973

look here for a list of supported timezone values [www.php.net]

PHP5.5 specific changes
a. All the PHP extensions are commented out, so you need to manually uncomment at least some of them
Check your last used php.ini to see what you need, remember some extensions may have been included in the core of php so you may need to check the php change log for details.


Now there may well be other configuration changes you had made to your existing PHP, these you will have to find and transfer yourself.
I suggest you compare your last \wamp\bin\apache\apachex.y.z\bin\php.ini with this new one and move over anything you believe is relevant.


DONT FORGET, if you are using the PHP CLI you will also need to do this to the php.ini file as well.

8. Make sure all services are stopped in wampmanager, and then right click over the wamp manager icon in the system tray and select the 'refresh' menu item.
When you left click on wamp manager -> PHP -> Version you should see your new version in the list.

If the new version does not appear, then you have probably spelt the phpForApache.ini file name wrong. Correct it and redo the 'refresh'.

9. You can now 'restart all services' from the wamp manager menus.

NOTE: You have not actually changed anything yet, so if wamp,Apache,PHP etc were working before they still should be.

10. Activate your new PHP version.
Using the wamp manager menus again you just need to click on the new version number to activate it.
wamp manager -> PHP -> Version -> 5.5.11 ( <- or whatever the version number is you have just added )

This will cause wamp manager to :-
1. Stop Apache ( the icon will go Orange )
2. Copy the correct files from the PHP folder to the Apache folder or if you are on WAMPServer 2.5 or greater
create the correct SYMLINK in the apachex.y.z/bin folder.
3. Restart Apache. So the wamp manager icon should go GREEN again.

If the wamp manager icon stays ORANGE, then you have missed something, probably a file name spelt wrong. The phpForApache.ini file must exists.

11. Now run localhost from the wamp manager menu, and check the wamp server home page. It should tell you which version of PHP is loaded.





TROUBLE SHOOTING
If it all goes wrong when you activate the new PHP, you can easily back out of trouble by just activating whatever version of PHP you were using before, and then going back to see what you did wrong.


ADDING IONCUBE

You must ensure that you download the correct version to match your PHP :-
compiler( VC6/VC9/VC11 etc ) compiled ionCube dll
correct 32 or 64 bit code
and the Thread Safe version which is the one that is not NON-TS


1. Download the correct ionCube loader from [www.ioncube.com]
2. Place it somewhere on your disk, but not in the WAMP folder.
for example c:\webstuff\ioncube\vc9\
2. Edit the new php.ini Using the wamp manager menus
Add these 2 lines at the bottom of the file.
Remember the version you load will depend upon which MAJOR version of PHP you are using i.e. 5.2,5.3 or 5.4

NOTE on IONCUBE and PHP5.5
Ioncube for PHP5.5 is not yet released as of 13/09/2013, they say they are waiting for PHP 5.5 to become stable and secure and hosting providers to adopt PHP 5.5 before they release their upgrade. They comment that it can take a year or more for hosting companies to adopt new versions of PHP and this I guess is their schedule.



;ioncube Extension
zend_extension = "c:/webstuff/ioncube/vc9/ioncube_loader_win_5.5.dll"



ADDING XDEBUG
XDEBUG comes with WAMP Server and is incredibly useful for debugging CLI or WEB scripts.
But it does not come with the PHP you have downloaded from the PHP website.
When upgrading PHP to a major version release you may need to get an up to date version of xdebug from
http://xdebug.org/download.php
For a minor version upgrade you can probably use the existing xdebug version you already have on disk.

So for a minor PHP version upgrade, copy the folder c:\wamp\bin\php\php5.y.z\zend_ext from your old PHP to your new php folder.
For a major PHP version upgrade get a new dll from the xdebug website and put it in a newly created folder called c:\wamp\bin\php\php5.y.z\zend_ext

Now add a line like this ( version specific of course ) to your php.ini ( using the wamp manager menus, to ensure you are editing the correct file )

;XDEBUG Extension
zend_extension = "d:/wamp/bin/php/phpx.y.z/zend_ext/php_xdebug-2.2.2-5.3-vc9.dll"

[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "d:/wamp/tmp"
















HowTo: Install a new version of MySQL into wamp and migrate your data properly.


Please read the whole post before starting this process. Mistakes can cause untold hassle.

Also take a copy of your WHOLE C:\WAMP folder so you can replace it if necessary if something goes wrong.

A backup of your databases is also a good idea.


Assumption: That you are using the default wamp config where all your databases are stored in the mysql.x.y.x\data\ folder.
If thats the case no backup of your databases is necessary, but it would not hurt, just in case.
This should also work if you are using innodb databases, stored in the mysql.x.y.x\data\ folder.


This will take your complete MySQL environment, including users, passwords and privilages so they do not need to be re-created on the new release.


I have tried to keep it simple here using c:\wamp, but you may have wamp on another drive, just change c: to whatever you use.

Before you start read the upgrade notes on the mysql.com site for information on anything you may have to do to your existing data before you start the upgrade.
There should be a page devoted to major upgrades, you will have to read between the lines if you are doing a minor upgrade.

A glance at the changelog is also a good idea as it will give you a clue as to what has changed and how that may effect your SQL and or data.


So here is the process:

1. Download the ZIP version of the mysql you want to run ( not the msi installer, only because I dont know what it may do or assume when it installs )
Suggested source [www.mysql.com]

2. From wamp manager, Stop all services.

3. Go to c:\wamp\bin\mysql\ and create a new folder named appropriately i.e mysql5.5.28

4. Unzip the mysql and copy the contents of the MySQL folder into your newly created folder. Make sure the directory levels are the same as your existing MySQL folder.

5. Copy all the contents of your previous mysql\mysql5.5.10\data folder into the new data folder under your newly created version folder.
Thats EVERYTHING not just your databases, including the ibdata1, ib_logfile0, ib_logfile1 and all the mysql-bin.0000xx files.
We are going to use the recommended mysql-upgrade tool so this is ok to do.
This will also ensure that you keep all your Users and password and granted privilages intact when the upgrade is complete.

6. Copy c:\wamp\bin\mysql\mysql5.5.10\wampserver.conf to c:\wamp\bin\mysql\mysql5.5.28\wampserver.conf
All the folders in here are relative to where this file lives, so normally nothing need changing in here.

7. RIGHT CLICK wampmanager -> refresh
This will make wamp manager find your new version.
Check this by Left click wampmanager -> MySQL -> Versions Your new version should be available in the list.

8. From wamp manager -> MySQL -> Version click on your new version.
Normally you would have to uninstall the old wampmysql service and re-install the new wampmysql service, but wamp takes care of all that for you by just clicking the new version number.
This should also start the new mysql service, so now the new mysql is running.
BUT DONT DO ANYTHING YET!!!

9. Launch a command window ( using Run As Administrator ).
CD into c:\wamp\bin\mysql\mysql5.5.28\bin folder ( the new releases bin folder ).
And run
mysql_upgrade -u[your MySQL admin userid] -p > upgrade_results.txt

It will ask you for the password for the admin user you provided on the -u parameter.
enter the password.

Wait while it runs, If you have very large databases this may take some time but normally it will take anything from a few seconds to a minute or two.
This will look at your databases and do any upgrades that are required and also any upgrades/maintenace of the mysql database that MySQL uses internally.
Thats the tables that contain your userids and password and privilages and other things.

10. Check for errors in the upgrade_results.txt file, fix if there are any.
You can repeat this as often as you like, just refresh the data from the old versions data folder each time.

11. LEFT Click wamp manager -> MySQL -> Service -> Stop Service.
Then again and Start Service. This will load the changed mysql database with any new/changed config info.

12. At this point assuming you are staying on the newly installed version of MySQL its a good idea to run:
wampmanager -> MySQL -> MySQL Console
and run a
> reset master;

To reset the log files.



Thats it your are ready to go and all your userid's and data are converted to the new MySQL version.

TROUBLESHOOTING

The Beauty of WAMP
If you find you have a problem with one of your databases you can just switch the MySQL Version back to the old version, fix the databases using MySQL Workbench or phpMyAdmin.
The copy all the contents of the data folder into your new release and re-run the mysql_upgrade.exe as many times as it takes to fix your issues.

And of course if it all goes bad in a big way, you can switch the MySQL version back to whatever you were using before and all your data is still there UNTOUCHED.


Now this may seem obvious but I am going so say it anyway:
1. If everything goes smoothly you do have to remember that you now have 2 versions of the same database(s) that are being maintained SEPERATELY.
2. It is not possible to use this process to DOWNGRADE your databases!!!























HowTo: Install a new version of APACHE into WAMP yourself.


This is not intended to replace the wamp addons mechanism of downloading apache version. If the version you require is available as an addon, use that mechanism, its just so easy.


This tutorial is not really for the absolute beginner. It would help if you had a basic knowledge of how apache/php work together and seperately and their individual configuration, as well as an understanding of what wamp is and does for you.


Read all this document before starting any actual attempt to install an apache version.


This guide assumes you are installing a minor version of an apache you already have installed i.e. apache 2.2.x to apache2.2.y.
I will use the versions 2.2.22 and 2.2.23, the tutorial uses these folder names but of course you will probably be installing different versions.

So here is the process:

1. Download the ZIP version of the Apache you want to run ( not the msi installer, only because I dont know what it may do or assume when it installs )
Suggestion only
[www.apachelounge.com]

2. From wamp manager, Stop all services.

3. Go to c:\wamp\bin\apache\ and create a new folder named appropriately for the release you are installing i.e apache.2.2.23

4. Unzip the Apache downloaded and copy the contents of the unzipped apache folder into your newly created folder in the wamp folder structure. apache2.2.23 in this example.
Make sure the directory levels are the same as your existing apache folder i.e. all the folders get unzipped into a folder called something like apache2, just copy all the subfolders to your new folder wamp\bin\apache\apache.2.2.23 folder. I suggest you unzip it somewhere else and then copy that to the wamp folder.

5. Copy c:\wamp\bin\apache\apache2.2.22\wampserver.conf to c:\wamp\bin\apache\apache2.2.23\wampserver.conf
All the folders in here are relative to where this file lives, so normally nothing need changing in here.
Wamp will not see your new install properly if you forget this step.

6. Now you need to bring your existing httpd.conf file from your current instance of apache.

Be carefull here, things change in the httpd.conf file, parameters get deprecated, new ones get created etc. So use the new httpd.conf as the master and only move over parameters you know you have changed for your actual requirements.

First make a backup of the new wamp\bin\apache\apache2.2.23\httpd.conf as wamp\bin\apache\apache2.2.23\httpd.original.conf ( for example )


Now this new httpd.conf file assumes the location of Apache is the default i.e. c:\apache\....
So there are parameter in YOUR NEW httpd.conf file that MUST BE CHECKED against your old WAMP oriented one
Some but maybe not all are listed here:-

Listen
ServerRoot
ServerAdmin
ServerName
DocumentRoot
<Directory....> Check all the directory parameters match the wamp file structure
ErrorLog
CustomLog
LoadModule
AddType
MimeType
DirectoryIndex Add index.php to this list


Now we must configure apache to use the correct version of PHP.
'LoadModule'
Wamp default is to runs PHP as an apache handler, that means apache loads the PHP interpreter as an apache module. ( see below )
Remember the Apache conf does not assume you are a PHP user so you will have to add this to the new conf file rather than change it.
So you must also check you are loading the correct handler for the version of apache and PHP you want to use.
The PHP folder should contain 1 or more of these handlers ( dll's ) depending on which versions of php it has been compiled for ( not all php version will run with all apache's ).
You must load the correct dll to match the apache version and the php version you want to use.


Ok I am afraid we need a bit of Techy Stuff here.
When PHP is compiled, by cleverer people than us! It is actually compiled more than once for various situations.
If you look in the php/phpx.y.z folder you will see a php.exe, php-win.exe, php-cgi.exe, all of which are irrelivant in the context of this document.

You will also see one or more dll files with names like php5apache2.dll, php5apache2_2.dll, php5apache2_4.dll, again depending on which apache you have download.
These are the php interpreter compiled into a dll for use as an apache handler.
The version of apache that this php is comiled to run with, is denoted by the apache2 (apache 2.0 or 2.1) or apache2_2 (apache 2.2 or 2.3) or apache2_4 ( apache 2.4 ) part of the filename.
The php5 part denotes it is a version of php5 ( but does not tell you which version of php5 ).
The version of php is denoted by the fact that you downloaded php5.3.13 and have luckily loaded it into a folder called php5.3.13 so you know whats what.


If you are using PHP 5.4 with an apache 2.4.x instance:
LoadModule php5_module "d:/wamp/bin/php/php5.4.x/php5apache2_4.dll" for using PHP 5.4

If you are using PHP 5.2 or PHP 5.3 with an apache 2.2.x instance:
LoadModule php5_module "d:/wamp/bin/php/php5.2.x/php5apache2_2.dll"

If you want to use PHP with an apache 2.0.x or 2.1.x instance:
LoadModule php5_module "d:/wamp/bin/php/php5.1.x/php5apache2.dll" for using PHP

NOTE:
This parameter is in the httpd.conf but is loading a file from a PHP folder.

If the php version folder does not contain a handler that matches apache version you want to run then that version of php wont run with that version of apache or your php download has not been compiled for that version of apache, normally the former.

Armed with this information you should be able to find the correct handler for the version of apache and php that you want to run together.


7. If you are using Virtual Servers you will also need to copy the conf\extras\httpd-vhosts.conf file from your old Apache version folder to your new folder.

8. We should be nearly done, so
Right click wampmanager -> refresh

This will tell wamp manager to re-configure itself and go look for anything new in its folder structure i.e. your new apache.
Check it has worked by: left click wampmanager -> Apache -> Versions, you should see your new one appear in the list.

8. Now Left click wamp manager -> Apache -> Versions -> and click your new version numbers to activate the new version of Apache.
This will restart apache and run your new version.

If apache fails to start ( wamp manager stays orange ) either you or I have missed a step. I hope its you!


TROUBLE SHOOTING
If you make a mistake check the apache error log for clues, or the windows event viewer, apache writes errors to this as well as its error log.

If all else fails, delete the new apache.x.y.z folder and re run the Right click on wamp manager -> Refresh and it will re configure itself without your new apache and you can start again.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 09, 2014 08:34PM

Thank you very much for this such comprehensive tutorial!

One thing though: does it matter if I have latest wamp 2.5 64B and I downloaded the corresponding php5.6.2 VC11 64b? I'm asking because I followed thoroughly (I think) your steps and there is still no php5.6.2 in the menu... I am downloading now the x86 version and see if it matters.

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 09, 2014 08:59PM

Ok, I added php5.6.2.32 with edited php.ini, phpForApache.ini and wampserver.conf (I also put DO_NOT_DELETE_5.6.2.32.txt in the php root)
I did the same for php5.3.29, 5.4.34, 5.2.18 and 5.6.2 (all 64b).

I cannot see any other php version than the original 5.5.12. I don't know what I'm missing.

I use TeamViewer if you want and have time to take a look yourself.

Thank you Folly!

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 09, 2014 09:31PM

Ok, I debugged the error: refresh.php (original) contains at least one error (missing dot on line 36, probably extra ] on line 656 - after 2nd $projectContents):
	require($langDir.$wampConf['defaultLanguage'].'lang');
should be replaced with:
	require($langDir.$wampConf['defaultLanguage'].'.lang');

Then on line 656:
			$myreplacesubmenuProjects .= 'Type: item; Caption: "'.$projectContents[$i].'"; Action: run; FileName: "'.$c_navigator.'"; Parameters: "['.$projectContents][$i].'/"; Glyph: 5
should be replaced with:
			$myreplacesubmenuProjects .= 'Type: item; Caption: "'.$projectContents[$i].'"; Action: run; FileName: "'.$c_navigator.'"; Parameters: "['.$projectContents[$i].'/"; Glyph: 5
This line is also shown on this tutorial about how to change refresh.php in order to suppress_localhost: [forum.wampserver.com]
On this tutorial, also this line has an extra ]; that throws errors, making refresh.php not working:
		{ //[modif oto] Support de suppressLocalhost dans wampmanager.conf
			$myreplacesubmenuProjects .= 'Type: item; Caption: "'.$projectContents[$i].'"; Action: run; FileName: "'.$c_navigator.'"; Parameters: "'.($c_suppressLocalhost ? "["]; : 'http://localhost/').$projectContents[$i].'/"; Glyph: 5
should be replaced with:
		{ //[modif oto] Support de suppressLocalhost dans wampmanager.conf
			$myreplacesubmenuProjects .= 'Type: item; Caption: "'.$projectContents[$i].'"; Action: run; FileName: "'.$c_navigator.'"; Parameters: "'.($c_suppressLocalhost ? "[" : 'http://localhost/').$projectContents[$i].'/"; Glyph: 5

LE: So, by default, refresh.php is broken, throwing errors in php_error.log! That's why so many reports of the menu not actually reflecting any changes (online/offline, addons, etc.)

Ciprian M.



Edited 5 time(s). Last edit at 11/09/2014 09:44PM by ciprianmp.

Options: ReplyQuote
Re: No more addons?
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: November 10, 2014 12:24AM

I will pass this over to Oto as I do not have the 64bit version of WAMPServer.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: No more addons?
Posted by: Otomatic (Moderator)
Date: November 10, 2014 10:21AM

Hi,

You are right ! Thank you.

- 1 (Missing dot in line 36) - My tests are done with my native language, that is to say, the French, and I do not always think to switch to English or other. Sorry, I try to think about the future.

- 2 (Extra "]" in line 656) - These lines are now modified to integrate the support of port other to 80 and the extra "]" was removed.

- 3 - I modified tutorial.

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



Edited 1 time(s). Last edit at 11/10/2014 11:26AM by Otomatic.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 10, 2014 07:59PM

No Oto, it's great, it's good that we could hunt down one more bug smiling smiley
Keep up the great work!

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 10, 2014 08:09PM

Oto, I noticed two things:

The main tutorial [forum.wampserver.com] still has an extra ; left (at 4).
And the french version (scroll down at 4a) is still not fixed. Both should be replaced with:
		{ //[modif oto] Support de suppressLocalhost dans wampmanager.conf
			$myreplacesubmenuProjects .= 'Type: item; Caption: "'.$projectContents[$i].'"; Action: run; FileName: "'.$c_navigator.'"; Parameters: "'.($c_suppressLocalhost ? "[" : 'http://localhost/').$projectContents[$i].'/"; Glyph: 5

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: Otomatic (Moderator)
Date: November 11, 2014 07:24PM

Hi,

Maybe you'll be interested, before the release of WampServer 2.6 (When?) with the ability to easily change the possibilities of your own WampServer.
Here is the "changelog Wampserver 2.5 -> 2.5.13" and the explanations for the changes:

I apologize if English is somewhat battered ...

------------------------------------------------------
My edits and changes of WampServer

WampServer 2.5.5
--- Fixed bug
- Fixed Unknown error for new version of PHP
- Fixed bug in wampmanager.tpl in option [DnscacheServiceRestart]
name wampapache service was in clear, must be by ${c_apacheService} variable

--- New Features
- Detection incompatibilities between Apache and PHP versions
- Your VirtualHosts added in Wampserver homepage
- Added language files (English and french) for submenus
in the folder wamp/lang/modules/ Note: this possibility existed
since WampServer 2.0.

- Added right-click sub-menu 'WampServer settings' with options:
- VirtualHosts Submenu
Enables or disables the presence of Your VirtualHosts submenu in the menu and Wampmanager homepage
- Your Projects submenu
Enables or disables the presence of Your Projects submenu in the menu Wampmanager
- 'WampServer homepage at startup'
Enables or disables automatic startup on the home page of WampServer
- Item Put Online menu is optional. Enables or disables the item Put Online
With VirtualHost there is no need to "go online" in the main menu.
- Add localhost in the url
For fans (not curable) do not want to use the VirtualHost.
Makes (http://localhost/mon-projet/) In the sub-menu and your projects in the home page.

- Added right-click sub-menu 'Tools' with options:
- 'Restart DNS' automatically performs all commands
such as net stop dnscache 'necessary for the changes
File 'windows/system32/drivers/etc/hosts' be taken into effect
without a machine reboot.
- 'Check httpd.conf syntax' automatically performing commands
check the syntax of the httpd.conf file and other files
associated and displays a window with the errors if there are any.
- 'Check the status of services' Displays a window with the state
'started' or 'not running' for wampapache and wampmysqld services
- 'Check VC compiler and compatibility' Displays a window with
versions of the VC compiler (when they exist) for all versions
PHP and Apache.
Displays the compatibility of versions of PHP with Apache versions
and reasons for incompatibilities.

--- Changing scripts
- Changes in wamp/scripts/config.inc.php
- Simplification of the generation of the $phpDllToCopy
- Adding tables for $wampParam settings submenu
- Settings WampServer and $phpNotLoadExt for extensions
present in phpx.y.z/ext but can not be loaded
by extension= in php.ini
- Changing refresh.php
- Checking validity of ServerName
- Verification section name in my.ini [wampmysqld] has the name of the service
in progress. Must be [wampmysqld64] for WampServer 64-bit.
/!\ Warning and error message.
- Module Apache php5_module should not be disables.
- Creation of all symbolic links grouped together in the function linkPhpDllToApacheBin
- Important changes to the file wamp/scripts/msg.php in
correlation with wamp/scripts/refresh.php
explicit messages (English) on error
- Explicit Messages (on validation) for menu items
with warning symbol: triangle /!\, Red Square, || blue

--- Wampserver 2.5.6 ---
- Add item in Apache->Service submenu:
Use port 8080 instead of 80
Note: 8080 is the alternate port defined in [apache] section
80 is the port used by Apache
(See below)
- If alternate port used:
-- Add port (:8080) all url, Projects et Virtualhost included,
Examples:
(http://localhost:8080/) (http://ServerName:8080/) (http://myproject:8080/)
If Option Add localhost in url is validated :
(http://localhost:8080/myproject/)
-- add item to test this port
-- The port used is notified in Wampserver homepage.

--- Wampserver 2.5.7
- Function createWampConfParam in wampserver.lib.php to simplify the wampmanager.conf file
updates based on validated options.
- Function update_wampmanager_file in wampserver.lib.php to simplify the wampmanager.tpl file
updates based on validated options.
- Possibility for the user to choose the port number to use for Apache instead of port 80.

--- Wampserver 2.5.8
- Function update_wampmanager_file dans wampserver.lib.php in wampserver.lib.php to simplify
the modifications of wampmanager.tpl file (or other)
- Verification of certain parameters on start WampServer
and update if necessary. In some cases, it will restart WampServer
- Added new icons

--- Wampserver 2.5.9
- Checks that all Apache, PHP and MySQL versions are the same type
All in 32 bit or all in 64 bit.
- Improved error detection of VirtualHost
- Fixed forgetting change port for Apache 2.2 (NameVirtualHost)
- Verification of VirtualHosts with a function in wampserver.lib.php
to be the same in the sub-menu and in index.php
- Verification tool for VirtualHosts as taken into account by Apache
- Test port 80 (or whatever used): In addition to testing by fsockopen
Adding a test by netstat and tasklist.
- Port used transferred on change of Apache version

--- Wampserver 2.5.10
- Modification of VirtualHost test:
-- to take into account possible Alias with Directory
-- trim on the path of DocumentRoot to remove quotes, and other areas.
- switch online / offline with preg_replace to be sure to replace the correct contents.
- online/offline mode transfered with Apache version change.

--- Wampserver 2.5.11
- Ability to change the MySQL port between 3301 and 3309
- Test port 3306 (or whatever used) by netstat and tasklist.
- Check what php.ini file is actually loaded.
- Possibility of changing the name of the two services

--- Wampserver 2.5.12
- Correct bug in refresh.php - Missing a "." in the language file name extension.
(Only seen if language different from French and English)
- To avoid problems with file editing by notepad.exe (Default editor)
Verification that some files are with the DOS lines ending (CR/LF)
and replacement if necessary.
wampmanager.conf, wampmanager.tpl, phpForApache.ini, my.ini, httpd.conf, etc.

--- Wampserver 2.5.13
- Added some definitions in the language file
- File default language file always loaded first.
The localized language file is then used to overwrite the definitions.
(If a variable does not exist in the language file, it will be the definition of the default language to be used, so no error.)
- Fixed some typos.
- Bug fixed: regex switch onlineOffline because DOS newline (\r\n) instead of (\n).
- Bug fixed: index.php detection php.ini file loaded because phpinfo for PHP 5.3.29 displays file pointed by the symbolic link, not the symbolic link name.

If desired, the archive of all files added or changed here
http://aviatechno.net/files/wamp2.5.13_oto.zip

I - still - advise you make a backup of the files that will be replaced:
wamp
|   wampmanager.tpl
|   images_off.bmp
|   images_on.bmp
|
+---lang
|   english.lang
|   french.lang
|   romanian.lang
|
|   \---modules
|           settings_english.php
|           settings_french.php
|           settings_romanian.php
|
+---scripts
|       checkWampFiles.php
|       config.inc.php
|       msg.php
|       onlineOffline.php
|       refresh.php
|       switchServicesNames.php
|       switchMysqlPort.php
|       switchWampParam.php
|       switchWampPort.php
|       testPort.php
|       wampserver.lib.php
|
+---www
|       index.php
|       testmysql.php
|
\---bin\apache\apache2.x.y\conf\extra\httpd-vhosts.conf.example
- 1 - Replace or add any files from tree archive that is the same as WampServer.
- 2 - You can add options in wampmanager.conf file :
After : defaultLanguage = english
add :
[options]
urlAddLocalhost = "off"
ChangeServicesNames = "off"
MenuItemOnline = "off"
HomepageAtStartup = "off"
ProjectSubMenu = "off"
VirtualHostSubMenu = "on"

After : apacheServiceRemoveParams = "-n wampapache -k uninstall"
or apacheServiceRemoveParams = "-n wampapache64 -k uninstall"
(For Wampserver 64 bit)
add :
[apacheoptions]
apachePortUsed = "80"
apacheUseOtherPort = "off"

After : mysqlServiceRemoveParams = "--remove wampmysqld"
or mysqlServiceRemoveParams = "--remove wampmysqld64"
(For Wampserver 64 bit)
add:
[mysqloptions]
mysqlPortUsed = "3306"
mysqlUseOtherPort = "off"
If you do not change the wampmanager.conf file, all new features will be added automatically when you start WampServer.
Note: You must exit and restart WampServer again.

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



Edited 1 time(s). Last edit at 11/13/2014 04:59PM by Otomatic.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 11, 2014 07:55PM

This sounds promising Oto. I will give it a try. Thank you!

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 12, 2014 12:40AM

Superb. I upgraded to 2.5.12. Everything seem to work fine.

I translated to Romanian, but the Wamp menu is not utf-8 enabled. If I use an asci encoded file for romanian.php, all diacritics are lost. So I use "utf-8 without bom". Can you change the menu to be utf-8 compatible?

How can I send you the latinized version of the Romanian translation? It will be replaced with the utf translation after the menu is fixed...

Some errors (menu items not translated or only showing English words):
w_refresh -> it only shows Refresh in all languages.
"Version" and "Service" ar not translated
In wampserver.tpl, following line:
Type: item; Caption: "Refresh"; Action: multi; Actions: wampreload
should be replaced with
Type: item; Caption: "${w_refresh}"; Action: multi; Actions: wampreload

I added in my version:
$w_version = Version
$w_service = Service
which I then replaced in the according submenus in wampserver.tpl. It works great!

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: Otomatic (Moderator)
Date: November 12, 2014 09:45AM

Hi,

> I translated to Romanian, but the Wamp menu is not utf-8 enabled.
> If I use an asci encoded file for romanian.php, all diacritics are lost.
> So I use "utf-8 without bom". Can you change the menu to be utf-8 compatible?

Wampserver is based upon Aestran Tray Menu and it is impossible to do this compatible utf-8.

> How can I send you the latinized version of the Romanian translation?
as a zip file to otomatic[at]otomatic[dot]net

Thank you for testing and comments.

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

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.48.92.62.static.cust.telenor.com)
Date: November 12, 2014 10:21AM

Thanks! I will send it after work.
Which editor do you use for Franch lang files, to keep the diacritics in an ASCII encoded file?
Is the Aestan Tray Menu a dead project? Cannot the development team get this suggestion for modernisation? Utf-8 come as a standard nowadays. Besides, some existing languages don't display properly because of this (eg Russian).

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: Otomatic (Moderator)
Date: November 12, 2014 11:04AM

Hi,

> Which editor do you use for Franch lang files, to keep the diacritics in an ASCII encoded file?
UltraEdit (for more than 15 years), sometimes also Notepad++

> Is the Aestan Tray Menu a dead project?
And I think that's a shame because, once we have understood the principle of operation is relatively simple to use.
The last version is 1.6.2 (3 september 2008):[obroekma.home.xs4all.nl]
The sources are on the site.

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

Options: ReplyQuote
Re: No more addons?
Posted by: Otomatic (Moderator)
Date: November 13, 2014 05:02PM

Hi,

See [forum.wampserver.com] for the changes and some corrections for (my) Wampserver 2.5.12 ->2.5.13

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

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.53.43.getinternet.no)
Date: November 13, 2014 08:36PM

Done, thank you Oto!

PS: I send you an email in a minute with some slight corrections (lang and refresh.php)

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.55.185.getinternet.no)
Date: December 01, 2014 03:40PM

Hello Oto,

Running the latest 2.5.13, I get this red warning on bottom of index.php:
*** ERROR *** The PHP configuration loaded file is: C:/wamp25/bin/apache/apache2.4.9/bin/php.ini - should be: c:/wamp25/bin/apache/apache2.4.9/bin/php.ini or c:/wamp25/bin/php/php5.5.12/phpForApache.ini

All those files are identical, anyway, and there seems to be no actual issue with running the server/services. But why do I get that warning/error? Is there something that needs to be fixed actually?

Thanks.

PS: if you have any updates to 2.5.13, please let me know.

Ciprian M.

Options: ReplyQuote
Re: No more addons?
Posted by: Otomatic (Moderator)
Date: December 01, 2014 04:13PM

Hi,

> *** ERROR *** The PHP configuration loaded file is: C:/wamp25/bin/apache/apache2.4.9/bin/php.ini
> should be: c:/wamp25/bin/apache/apache2.4.9/bin/php.ini
> or c:/wamp25/bin/php/php5.5.12/phpForApache.ini

Because in some cases (I don't know why) phpinfo displays file pointed by the symbolic link, not the symbolic link name, I test the two cases and I don't understand why you have this warming.
It is just a warning that does not cause any problems.

In index.php the code for detection is:
//vérifications diverses - Quel php.ini est chargé ?
ob_start();
phpinfo(1);
$output = strip_tags(ob_get_contents());
ob_end_clean();

preg_match('/^Loaded Configuration File (.*)\r?$/m', $output, $matches);
$matches[1] = trim(str_replace("\\","/",$matches[1]));
$c_phpConfFileOri = $c_phpVersionDir.'/php'.$wampConf['phpVersion'].'/'.$phpConfFileForApache;
if($matches[1] != $c_phpConfFile && $matches[1] != $c_phpConfFileOri)
	$error_content .= "<p style='color:red;'>*** ERROR *** The PHP configuration loaded file is: ".$matches[1]." - should be: ".$c_phpConfFile." or ".$c_phpConfFileOri."</p>";
preg_match('/^Scan this dir for additional .ini files (.*)\r?$/m', $output, $matches);
if(trim($matches[1]) != "(none)" )
	$error_content .= "<p style='color:red;'>*** ERROR *** There are too much php.ini files: ".$matches[0]."</p>";
preg_match('/^Additional .ini files parsed (.*)\r?$/m', $output, $matches);
if(trim($matches[1]) != "(none)" )
	$error_content .= "<p style='color:red;'>*** ERROR *** There are other php.ini files: ".$matches[0]."</p>";

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

Options: ReplyQuote
Re: No more addons?
Posted by: ciprianmp (---.210.55.185.getinternet.no)
Date: December 21, 2014 02:11PM

Hi Oto, any 2.5 updates? All working great with 2.5.13 though!

Merry Christmas and a Happy New Year 2015!

Ciprian M.

Options: ReplyQuote


Sorry, only registered users may post in this forum.