Wamp : absolute paths
Posted by: JanOcci (---.200.orbisnet.cz)
Date: February 21, 2016 09:34PM

Hello,

can I have question about absolute paths in Wamp manager ?

I change the disk part letter, but the wamp manager strictly depend on it and I forget to save actual database.


I try to change all absolute paths in:

wamp/alias/*all_conf_files
wamp/bin/apache/apache_version/conf/httpd.conf
wamp/bin/apache/apache_version/conf/extra/httpd-vhost.conf
wamp/bin/php/php_version/php.ini
wamp/bin/mysql/mysql_version/my.ini

*
wamp/wampmanager.ini
wamp/bin/php/php_version/phpForApache.ini


But it still doesnt work. I can run Wamp successfuly, but it can't load services.Are there any other folders with paths ? Thank you for any help.



Edited 6 time(s). Last edit at 02/21/2016 10:12PM by JanOcci.

Options: ReplyQuote
Re: Wamp : absolute paths
Posted by: Otomatic (Moderator)
Date: February 21, 2016 09:42PM

Hi,

It is not possible to change Wampserver install path after install. Many,many things are writing and related to this path.

You can see path in files, but you cannot see path in symbolic links.

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



Edited 1 time(s). Last edit at 02/21/2016 09:45PM by Otomatic.

Options: ReplyQuote
Re: Wamp : absolute paths
Posted by: Otomatic (Moderator)
Date: February 21, 2016 10:05PM

Hi,

Don't forget Phpforapache.ini !

After, you can try :
- Run Wampmanager
- Icon, Apache, Service, Suppress service
- Icon, Apache, Service, Install Service
Do the same with Mysql
- Icon, Start services

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

Options: ReplyQuote
Re: Wamp : absolute paths
Posted by: JanOcci (---.200.orbisnet.cz)
Date: February 21, 2016 10:10PM

Hello, thank you for the help. I set the the old disc letter back and all paths back and it seems it's work well.

I forgot to write it "PhpForApach.ini" here cause I change many files with paths.

It's really imposibble to change all paths ?



Edited 1 time(s). Last edit at 02/21/2016 10:13PM by JanOcci.

Options: ReplyQuote
Re: Wamp : absolute paths
Posted by: Otomatic (Moderator)
Date: February 22, 2016 10:05AM

Hi,

> It's really imposibble to change all paths ?
No, it is possible, but it is a big work.
You have to change the path into

wamp\wampmanager.conf
- all alias files
wamp\alias\*.conf
- all Apache configuration files
wamp\bin\apache\apache2.4.x\conf\httpd.conf
- all Apache VirtualHost configuration files
all wamp\bin\apache\apache2.4.x\conf\extra\httpd-vhosts.conf
- all MySQL configuration files
all wamp\bin\mysql\mysql5.x.y\my.ini
- all PHP configuration file
wamp\bin\php\php5.x.y\php.ini
wamp\bin\php\php5.x.y\phpForApache.ini
wamp\bin\php\php7.x.y\php.ini
wamp\bin\php\php7.x.y\phpForApache.ini

- Rebuild all symbolic links in apache/bin/ directories
And, given the large number of symbolic links, it is impossible to do, especially need to recreate them by making them point to the files in the current version PHP. And this current version of PHP, it is not in the new path.
So it is best to remove all symbolic links.

- Suppress the two old services (Command Windows as administrator)
sc delete wampapache (or wampapache64)
sc delete wampmysqld (or wampmysqld64)

- The last thing is for
wamp\wampmanager.ini
Again, as wampmanager is the configuration file and it is read at the launch of Wampserver, you can not change all paths.
Must be replaced wampmanager.ini by an installation file:
[Config]
;WAMPCONFIGSTART
ImageList=images_off.bmp
ServiceCheckInterval=1
ServiceGlyphRunning=13
ServiceGlyphPaused=14
ServiceGlyphStopped=15
TrayIconAllRunning=16
TrayIconSomeRunning=17
TrayIconNoneRunning=18
ID={wampserver}
AboutHeader=WAMPSERVER
AboutVersion=Version 3.0.0
;WAMPCONFIGEND

[AboutText]
WampServer
Created by Romain Bourdon
wampmanager.ini minimum file to recreate
the original file if is corrupted

[Services]
Name: APACHESERVICE
Name: MYSQLSERVICE

[Messages]
AllRunningHint=WAMPSERVER - All services running - server Offline
SomeRunningHint=WAMPSERVER - %n of %t services running - server Offline
NoneRunningHint=WAMPSERVER - None of %t services running - server Offline

[StartupAction]
Action: run; FileName: "WAMPROOT/bin/php/phpWAMPPHPVERSION/php-win.exe";Parameters: "refresh.php";WorkingDir: "WAMPROOT/scripts"; Flags: waituntilterminated
Action: resetservices
Action: readconfig;
Action: service; Service: APACHESERVICE; ServiceAction: startresume; Flags: ignoreerrors
Action: service; Service: MYSQLSERVICE; ServiceAction: startresume; Flags: ignoreerrors
   
- Replace APACHESERVICE by the real name of the Apache service
- Replace MYSQLSERVICE by the real name of the MySQL service
- Replace WAMPROOT by the new install path
- Replace WAMPPHPVERSION by the PHP CLI version number

Got there, if everything was done correctly, without forgetting, perhaps Wampserver can be launched.
However, the icon will be red and it will create two services:
- Wampmanager icon -> Apache -> Service -> Install service
- Wampmanager icon -> MySQL -> Service -> Install service
- Wampmanager icon -> Start services

All this without any guarantee that it works.

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.