Hi,
> At install the php.ini symlink was created.
It is created by Inno Setup installer.
> On first run as admin about 15 other symlink files are created in C:\wamp\bin\apache\apache2.4.17\bin
Each time Wampmanager is launched, all symlinks are deleted then created to reflect correct Apache and PHP version in use.
You can try to see if it works by copying the files whitout admin rights instead of creating symbolic links.
In the wamp\scripts\wampserver.lib.php file
Replace :
//Symlink created if file exists in phpx.y.z directory
if (is_file($target)) {
symlink($target, $link);
}
}
//Create apache/apachex.y.z/bin/php.ini link to phpForApache.ini file of active version of PHP
$target = $c_phpVersionDir."/php".$php_version."/".$phpConfFileForApache;
$link = $c_apacheVersionDir."/apache".$wampConf['apacheVersion']."/".$wampConf['apacheExeDir']."/php.ini";
//php.ini deleted if exists
if(is_file($link) || is_link($link)) {
unlink($link);
}
if(symlink($target, $link) === false)
error_log("Error while creating symlink '".$link."' to '".$target."'"
}
by
//Symlink created if file exists in phpx.y.z directory
if (is_file($target)) {
copy($target, $link);
}
}
//Create apache/apachex.y.z/bin/php.ini link to phpForApache.ini file of active version of PHP
$target = $c_phpVersionDir."/php".$php_version."/".$phpConfFileForApache;
$link = $c_apacheVersionDir."/apache".$wampConf['apacheVersion']."/".$wampConf['apacheExeDir']."/php.ini";
//php.ini deleted if exists
if(is_file($link) || is_link($link)) {
unlink($link);
}
if(copy($target, $link) === false)
error_log("Error while creating symlink '".$link."' to '".$target."'"
}
BUT.... WARNING All changes you make in php.ini (Wampmanager Tray Icon -> PHP -> php.ini that is wamp\bin\apache\apache2.4.17\bin\php.ini) ABSOLUTELY MUST be redone in wamp\bin\php\phpx.y.z\phpForApache.ini. x.y.z being active PHP release.
This is done automatically with symlinks.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons