php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: moussacbb (---.108.113.78.rev.sfr.net)
Date: September 30, 2016 08:16PM

Hi,
When i flush the dns via : "right click -> tools -> flush dns" or close wampserver via : "right click -> close" my php.ini 's modifications are erased. The php.ini seems to get back to the default one.
I edited it by : left click -> php -> php.ini.
I am under Windows 10 Pro 32bit with Wampserver 3.

My about windows show :

WampServer Version 3.0.4 32bit
Created by Romain Bourdon
Maintainer / Upgrade to 2.5 by Herve Leclerc
Upgrade 2.5 to 3.0.0 by Otomatic (wampserver@otomatic.net)
Multi styles for homepage by Jojaba
Installer by Inno Setup
[forum.wampserver.com]
___ Versions used ___
Apache 2.4.18 - PHP 5.6.19 - MySQL 5.7.11
PHP 5.6.19 for CLI (Command-Line Interface)

I didn't know if i have all installed correctly so thanks to help me out.

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: Otomatic (Moderator)
Date: October 01, 2016 09:55AM

Hi,

The "problem" you relate is not found.
But for us to be on the same basis would require that you update Wampserver in version 3.0.6 with Wampserver3 x86_x64 update3.0.6

Wampmanager icon -> PHP -> php.ini
that open php.ini in Notepad++
For example, modify:
memory_limit = 128M (Original value)
into
memory_limit = 256M
Save the file.

Right-Click Wampmanager icon -> Tools -> Restart DNS

php.ini is not erased, memory_limit = 256M and not the original value.

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

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: moussacbb (---.108.113.78.rev.sfr.net)
Date: October 04, 2016 10:00PM

I done it but it erase the value. I had also checked that the file was well writen before reloading the dns. And I installed all visual studio packages from VC9 to VC14. I don't know what to do.


--------------------------------------------------------------------------------------


WampServer Version 3.0.6 32bit
Created by Romain Bourdon (2005)
Maintainer / Upgrade to 2.5 by Herve Leclerc
Upgrade to 3 by Otomatic (wampserver@otomatic.net)
Multi styles for homepage by Jojaba
Installer by Inno Setup: [www.jrsoftware.org]
Forum Wampserver: [forum.wampserver.com]
______________________ Versions used ______________________
Apache 2.4.23 - PHP 5.6.25 - MySQL 5.7.14
PHP 5.6.25 for CLI (Command-Line Interface)

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: omarmatijas (---.speedy.com.ar)
Date: October 05, 2016 03:57AM

(Spanish speaker, sorry about my english)
I've installed WAMP3 and had the same issue. I found out that i have installed it on a FAT32 drive but it only works on NTFS (http://forum.wampserver.com/read.php?2,138295).
Any way, before figuring it out, i also saw that in each PHP foldes (5 and 7) there is a phpForApache.ini file.

I hope it helps you.

Omar

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: Otomatic (Moderator)
Date: October 05, 2016 10:55AM

Hi,

Open a Command Windows - as an administrator (The word Administrator must be in the title of the command windows) - on c:\wamp\bin\apache\apache2.4.23\bin\ folder.
In this commande windows type :
dir | clip
In this case, the result of the command is in the clipboard.
Paste the result here between [ code ]result[ /code ] tags (Without spaces).

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

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: moussacbb (---.108.113.78.rev.sfr.net)
Date: October 05, 2016 11:44AM

Here is the output requested :

c:\wamp\bin\apache\apache2.4.23\bin>dir | clip

 Le volume dans le lecteur C n'a pas de nom.
 Le numéro de série du volume est 18CA-FB55

 Répertoire de c:\wamp\bin\apache\apache2.4.23\bin

04/10/2016  21:54    <DIR>          .
04/10/2016  21:54    <DIR>          ..
04/10/2016  21:06            87 040 ab.exe
04/10/2016  21:06            93 184 abs.exe
04/10/2016  21:06            38 912 ApacheMonitor.exe
04/10/2016  21:06            16 384 apr_crypto_openssl-1.dll
04/10/2016  21:06            24 576 apr_dbd_odbc-1.dll
04/10/2016  21:06            13 312 apr_ldap-1.dll
01/07/2016  11:09             9 192 dbmmanage.pl
04/10/2016  21:06            85 504 htcacheclean.exe
04/10/2016  21:06           101 376 htdbm.exe
04/10/2016  21:06            69 632 htdigest.exe
04/10/2016  21:06            97 792 htpasswd.exe
04/10/2016  21:06            26 112 httpd.exe
04/10/2016  21:06            54 784 httxt2dbm.exe
04/10/2016  21:06    <DIR>          iconv
04/10/2016  21:54    <SYMLINK>      icudt57.dll [c:/wamp/bin/php/php5.6.25/icudt57.dll]
04/10/2016  21:54    <SYMLINK>      icuin57.dll [c:/wamp/bin/php/php5.6.25/icuin57.dll]
04/10/2016  21:54    <SYMLINK>      icuio57.dll [c:/wamp/bin/php/php5.6.25/icuio57.dll]
04/10/2016  21:54    <SYMLINK>      icule57.dll [c:/wamp/bin/php/php5.6.25/icule57.dll]
04/10/2016  21:54    <SYMLINK>      iculx57.dll [c:/wamp/bin/php/php5.6.25/iculx57.dll]
04/10/2016  21:54    <SYMLINK>      icutest57.dll [c:/wamp/bin/php/php5.6.25/icutest57.dll]
04/10/2016  21:54    <SYMLINK>      icutu57.dll [c:/wamp/bin/php/php5.6.25/icutu57.dll]
04/10/2016  21:54    <SYMLINK>      icuuc57.dll [c:/wamp/bin/php/php5.6.25/icuuc57.dll]
04/10/2016  21:06           155 648 libapr-1.dll
04/10/2016  21:06            29 696 libapriconv-1.dll
04/10/2016  21:06           212 480 libaprutil-1.dll
04/10/2016  21:54    <SYMLINK>      libeay32.dll [c:/wamp/bin/php/php5.6.25/libeay32.dll]
04/10/2016  21:06           348 160 libhttpd.dll
04/10/2016  21:54    <SYMLINK>      libpq.dll [c:/wamp/bin/php/php5.6.25/libpq.dll]
04/10/2016  21:54    <SYMLINK>      libsasl.dll [c:/wamp/bin/php/php5.6.25/libsasl.dll]
04/10/2016  21:54    <SYMLINK>      libssh2.dll [c:/wamp/bin/php/php5.6.25/libssh2.dll]
04/10/2016  21:06         1 029 632 libxml2.dll
04/10/2016  21:06            48 128 logresolve.exe
04/10/2016  21:06           147 968 lua52.dll
04/10/2016  21:06           145 408 nghttp2.dll
04/10/2016  21:06           448 000 openssl.exe
04/10/2016  21:06           419 328 pcre.dll
04/10/2016  21:54    <SYMLINK>      php.ini [c:/wamp/bin/php/php5.6.25/phpForApache.ini]
04/10/2016  21:54    <SYMLINK>      php5ts.dll [c:/wamp/bin/php/php5.6.25/php5ts.dll]
04/10/2016  21:06            65 536 rotatelogs.exe
04/10/2016  21:54    <SYMLINK>      ssleay32.dll [c:/wamp/bin/php/php5.6.25/ssleay32.dll]
04/10/2016  21:06            16 384 wintty.exe
04/10/2016  21:06            72 192 zlib1.dll
              41 fichier(s)        3 856 360 octets
               3 Rép(s)  75 398 062 080 octets libres

And my system is actually NTFS.

Thanks for taking time helping me.

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: Otomatic (Moderator)
Date: October 05, 2016 11:52AM

Hi,

Everything is correct, all symbolic links are there.
I see that the system is in French, we could go on the French forum, though, I confess to being short of ideas checks.

When editing the php.ini file (Icon Wampmanager -> PHP -> php.ini) which corresponds to the symbolic link "c:\wamp\bin\apache\apache2.4.23\bin\php.ini" is actually the "c:/wamp/bin/php/php5.6.25/phpForApache.ini" file is modified.

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

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: moussacbb (---.108.113.78.rev.sfr.net)
Date: October 09, 2016 03:56PM

Hi, ok i think you found out !
The phpForApache.ini file is the master ; when I write changes in it the php.ini (Icon Wampmanager -> PHP -> php.ini) is rewrited to matche it. Is that a normal behaviour or did i make any mistake ?

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: RiggsFolly (Moderator)
Date: October 09, 2016 05:03PM

No, you edit the Apache config file using the WAMPServer menus

wampmanager -> Apache -> httpd.conf

If you use these simple menu links the correct file (whatever it is called will be updated based on the version fo Apache you have currently selected as the current version

Use the menus and you cannot go to far wrong.
Edit files manually yourself and mistakes can be made.


Maybe if you read Complete Guide to Symbolic Links (symlinks) on Windows or Linux

---------------------------------------------------------------------------------------------
(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: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: Otomatic (Moderator)
Date: October 09, 2016 05:19PM

Hi,

Yes. When you open a symbolic link, it is exactly as if you opened the file pointed to by the symbolic link.
Notepad++ is my default editor, if I do:
Icon Wampmanager -> PHP -> php.ini
in the tab of Notepad++ I can see php.ini and in the title bar: j:\wamp\bin\apache\apache2.4.23\bin\php.ini

Then with Ultraedit I open j:\wamp\bin\php\php7.0.11\phpForApache.ini, in the tab I see phpForApache.ini and in the title bar: j:\wamp\bin\php\php7.0.11\phpForApache.ini

With notepad++, I modify php.ini (the symlink) for example upload_max_filesize = 2M by upload_max_filesize = 32M then I save the modified file (Ctrl-S)

Ultraedit says: The file j:\wamp\bin\php\php7.0.11\phpForApache.ini is modified by another application, do you want to reload it?

This is proof that through the symbolic link the modified file is that indicated by it. php.ini (symbolic link name) and phpForApache.ini (file pointed to by the symbolic link) are one.

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

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: moussacbb (---.108.113.78.rev.sfr.net)
Date: October 10, 2016 07:16PM

Ok, but in my case that dosn't work. I use geny as editor and I had also tested with wordpad but it seems like the symbolic link doesn't work at all, even when reloding files manualy there is no changes. It's when wampserver is started that the modification are duplicated and only when it is put in the phpForApache.ini file.

Further more, when apache is closed the symbolic links are modified to become files and when it open they become symbolic link again.

So the commande
C:\wamp\bin\apache\apache2.4.23\bin>dir | clip
don't end with the same result.

WampServer closed :
 Le volume dans le lecteur C n'a pas de nom.
 Le numéro de série du volume est 18CA-FB55

 Répertoire de C:\wamp\bin\apache\apache2.4.23\bin

10/10/2016  18:08    <DIR>          .
10/10/2016  18:08    <DIR>          ..
04/10/2016  21:06            87 040 ab.exe
04/10/2016  21:06            93 184 abs.exe
04/10/2016  21:06            38 912 ApacheMonitor.exe
04/10/2016  21:06            16 384 apr_crypto_openssl-1.dll
04/10/2016  21:06            24 576 apr_dbd_odbc-1.dll
04/10/2016  21:06            13 312 apr_ldap-1.dll
01/07/2016  11:09             9 192 dbmmanage.pl
04/10/2016  21:06            85 504 htcacheclean.exe
04/10/2016  21:06           101 376 htdbm.exe
04/10/2016  21:06            69 632 htdigest.exe
04/10/2016  21:06            97 792 htpasswd.exe
04/10/2016  21:06            26 112 httpd.exe
04/10/2016  21:06            54 784 httxt2dbm.exe
04/10/2016  21:06    <DIR>          iconv
09/10/2016  16:11    <SYMLINK>      icudt57.dll [c:/wamp/bin/php/php5.6.25/icudt57.dll]
09/10/2016  16:11    <SYMLINK>      icuin57.dll [c:/wamp/bin/php/php5.6.25/icuin57.dll]
09/10/2016  16:11    <SYMLINK>      icuio57.dll [c:/wamp/bin/php/php5.6.25/icuio57.dll]
09/10/2016  16:11    <SYMLINK>      icule57.dll [c:/wamp/bin/php/php5.6.25/icule57.dll]
09/10/2016  16:11    <SYMLINK>      iculx57.dll [c:/wamp/bin/php/php5.6.25/iculx57.dll]
09/10/2016  16:11    <SYMLINK>      icutest57.dll [c:/wamp/bin/php/php5.6.25/icutest57.dll]
09/10/2016  16:11    <SYMLINK>      icutu57.dll [c:/wamp/bin/php/php5.6.25/icutu57.dll]
09/10/2016  16:11    <SYMLINK>      icuuc57.dll [c:/wamp/bin/php/php5.6.25/icuuc57.dll]
04/10/2016  21:06           155 648 libapr-1.dll
04/10/2016  21:06            29 696 libapriconv-1.dll
04/10/2016  21:06           212 480 libaprutil-1.dll
09/10/2016  16:11    <SYMLINK>      libeay32.dll [c:/wamp/bin/php/php5.6.25/libeay32.dll]
04/10/2016  21:06           348 160 libhttpd.dll
09/10/2016  16:11    <SYMLINK>      libpq.dll [c:/wamp/bin/php/php5.6.25/libpq.dll]
09/10/2016  16:11    <SYMLINK>      libsasl.dll [c:/wamp/bin/php/php5.6.25/libsasl.dll]
09/10/2016  16:11    <SYMLINK>      libssh2.dll [c:/wamp/bin/php/php5.6.25/libssh2.dll]
04/10/2016  21:06         1 029 632 libxml2.dll
04/10/2016  21:06            48 128 logresolve.exe
04/10/2016  21:06           147 968 lua52.dll
04/10/2016  21:06           145 408 nghttp2.dll
04/10/2016  21:06           448 000 openssl.exe
04/10/2016  21:06           419 328 pcre.dll
10/10/2016  18:08            76 206 php.ini
09/10/2016  16:11    <SYMLINK>      php5ts.dll [c:/wamp/bin/php/php5.6.25/php5ts.dll]
04/10/2016  21:06            65 536 rotatelogs.exe
09/10/2016  16:11    <SYMLINK>      ssleay32.dll [c:/wamp/bin/php/php5.6.25/ssleay32.dll]
04/10/2016  21:06            16 384 wintty.exe
04/10/2016  21:06            72 192 zlib1.dll
              41 fichier(s)        3 932 566 octets
               3 Rép(s)  75 084 845 056 octets libres

WampServer open with or without all services running :
 Le volume dans le lecteur C n'a pas de nom.
 Le numéro de série du volume est 18CA-FB55

 Répertoire de C:\wamp\bin\apache\apache2.4.23\bin

10/10/2016  18:43    <DIR>          .
10/10/2016  18:43    <DIR>          ..
04/10/2016  21:06            87 040 ab.exe
04/10/2016  21:06            93 184 abs.exe
04/10/2016  21:06            38 912 ApacheMonitor.exe
04/10/2016  21:06            16 384 apr_crypto_openssl-1.dll
04/10/2016  21:06            24 576 apr_dbd_odbc-1.dll
04/10/2016  21:06            13 312 apr_ldap-1.dll
01/07/2016  11:09             9 192 dbmmanage.pl
04/10/2016  21:06            85 504 htcacheclean.exe
04/10/2016  21:06           101 376 htdbm.exe
04/10/2016  21:06            69 632 htdigest.exe
04/10/2016  21:06            97 792 htpasswd.exe
04/10/2016  21:06            26 112 httpd.exe
04/10/2016  21:06            54 784 httxt2dbm.exe
04/10/2016  21:06    <DIR>          iconv
10/10/2016  18:43    <SYMLINK>      icudt57.dll [c:/wamp/bin/php/php5.6.25/icudt57.dll]
10/10/2016  18:43    <SYMLINK>      icuin57.dll [c:/wamp/bin/php/php5.6.25/icuin57.dll]
10/10/2016  18:43    <SYMLINK>      icuio57.dll [c:/wamp/bin/php/php5.6.25/icuio57.dll]
10/10/2016  18:43    <SYMLINK>      icule57.dll [c:/wamp/bin/php/php5.6.25/icule57.dll]
10/10/2016  18:43    <SYMLINK>      iculx57.dll [c:/wamp/bin/php/php5.6.25/iculx57.dll]
10/10/2016  18:43    <SYMLINK>      icutest57.dll [c:/wamp/bin/php/php5.6.25/icutest57.dll]
10/10/2016  18:43    <SYMLINK>      icutu57.dll [c:/wamp/bin/php/php5.6.25/icutu57.dll]
10/10/2016  18:43    <SYMLINK>      icuuc57.dll [c:/wamp/bin/php/php5.6.25/icuuc57.dll]
04/10/2016  21:06           155 648 libapr-1.dll
04/10/2016  21:06            29 696 libapriconv-1.dll
04/10/2016  21:06           212 480 libaprutil-1.dll
10/10/2016  18:43    <SYMLINK>      libeay32.dll [c:/wamp/bin/php/php5.6.25/libeay32.dll]
04/10/2016  21:06           348 160 libhttpd.dll
10/10/2016  18:43    <SYMLINK>      libpq.dll [c:/wamp/bin/php/php5.6.25/libpq.dll]
10/10/2016  18:43    <SYMLINK>      libsasl.dll [c:/wamp/bin/php/php5.6.25/libsasl.dll]
10/10/2016  18:43    <SYMLINK>      libssh2.dll [c:/wamp/bin/php/php5.6.25/libssh2.dll]
04/10/2016  21:06         1 029 632 libxml2.dll
04/10/2016  21:06            48 128 logresolve.exe
04/10/2016  21:06           147 968 lua52.dll
04/10/2016  21:06           145 408 nghttp2.dll
04/10/2016  21:06           448 000 openssl.exe
04/10/2016  21:06           419 328 pcre.dll
10/10/2016  18:43    <SYMLINK>      php.ini [c:/wamp/bin/php/php5.6.25/phpForApache.ini]
10/10/2016  18:43    <SYMLINK>      php5ts.dll [c:/wamp/bin/php/php5.6.25/php5ts.dll]
04/10/2016  21:06            65 536 rotatelogs.exe
10/10/2016  18:43    <SYMLINK>      ssleay32.dll [c:/wamp/bin/php/php5.6.25/ssleay32.dll]
04/10/2016  21:06            16 384 wintty.exe
04/10/2016  21:06            72 192 zlib1.dll
              41 fichier(s)        3 856 360 octets
               3 Rép(s)  75 071 127 552 octets libres

And by checking the properties of the file
C:\wamp\bin\apache\apache2.4.23\bin\php.ini
I've found out that a normale user has only reading rights and only an administrator have writing rights (total access).

It's maybe part of the problem.

At this moment the only solution for me is to edit manualy the phpForApache.ini file and restart for changes to take effect.

Options: ReplyQuote
Re: php.ini erased when flushing dns on wampserver 3 / windows pro 10
Posted by: Otomatic (Moderator)
Date: October 10, 2016 08:01PM

Hi,

Wampserver must be run as an administrator in an administrator Windows session.

> Further more, when apache is closed the symbolic links are modified
- Whenever Wampserver is started,
- whenever "Refrseh" is executed,
- whenever a version of PHP, Apache or MySQL is changed,
- whenever a parameter of Apache, PHP, MySQL or Wampserver is changed,
ALL symbolic links are rewritten.

All symbolic links are properly rewritten, except for phpForApache.ini.
So it's a problem of your text editor or system that does not allow a symbolic link to be created if the file is opened.

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



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

Options: ReplyQuote


Sorry, only registered users may post in this forum.