THE DTX-Control
-Download DTX-control from either http://zedfiles.com/DTX/ or http://nat32.com/dtx/ .
-Unpack the dtx.exe and dtx.ini to the root folder for either XAMPP or XAMPPlite.
-Check to make sure that Apache and MySQL sessions are not running (services
too).
-Launch DTX by double clicking on the .exe file. It should either bring up the
XAMPP CMD window or minimize to the tray and launch a browser session.
-Single clicking on the tray icon will bring up the console. In the console, the
ali-icon is an Easter-Egg, a single click on it will give you debug information.
Also, a mouse-over of the tray icon should give the ports that Apache and MySQL
are running on. Left-mouse on the tray icon will bring up a mini console.
-Exit (terminate) from either the tray or console should; close the window
and shut down both
Apache and MySQL sessions. Check with Task Manager to see if any processes have
not terminated.
TESTING:
Once a session has been established, changing the XAMPP folder to say; XAMPP-1
and re-launching DTX should simulate either a ‘Portable Situation’ or moving the
application to a new folder on the computer. After renaming, the XAMPP CMD
window should launch and ask if you want to overwrite-use (1 -enter) and let DTX
cycle through.
Note: if you are using a removable device, allow time for DXT to cycle out. It
uses a soft shutdown to allow MySQL to write to the tables.
The following is information for the .ini file:
DTX can be configured by editing the following values in file dtx.ini:
[START]
hide = 1 ; Hide the DTX Window
apache = 1 ; Start Apache
mysql = 1 ; Start MySql
browser = 1 ; Launch the Web Browser if Apache is running
[EXIT]
apache = 1 ; Stop Apache on exit
mysql = 1 ; Stop MySql on exit
[PORTS]
apache = 80 ; Apache port
mysql = 3306 ; MySql port
[HELP]
text1 = ZedFiles ; About URL 1 Text
url1 =
http://zedfiles.com/ ; About URL 1
text2 = NAT Software ; About URL 2 Text
url2 =
http://nat32.com/dtx ; About URL 2
[XAMPP]
setup = 1 ; Configure XAMPP on startup
ZEDFILES DTX PROJECT
PORTING XAMPP APACHE AND MYSQL TO ALTERNATIVE PORTS
[please note that line numbers are approx.]
Unpack XAMPP OR XAMPPlite (a fresh build is preferable).
Copy DTX.exe and DTX.ini to xampp\
Open dtx.ini in a text editor:
A) change Apache port:80 to 6060
B) change MySQL port:3306 to 6080
(other ports may be used but this is our convention)
Edit the following configuration files:
1) \xampp\apache\conf\httpd.conf
a) line 53, change: Listen:80 to Listen:6060
b) line 504, comment out:include conf/extra/httpd-dav.conf with #include
conf/extra/httpd-dav.conf
c) line 519, comment out:Include conf/extra/httpd-ssl.conf with #Include
conf/extra/httpd-ssl.conf
(if SSL is needed, please see notes at end.)
2) \xampp\apache\conf\extra\httpd-xampp.conf
a) line 73, change: AuthRemotePort to 6060
b) line 87, change: AuthMySQLHost to Localhost:6080
3) \xampp\mysql\bin\my.cnf
a) line 20, change: port=3306 to port =6080
b) line 31, change: port=3306 to port =6080
4) \xampp\php\php.ini
a) line 756,add: mysql.default_port =6080
5) \xampp\phpMyAdmin\config.inc.php
a) line 55, add: $cfg['Servers'][$i]['port'] = '6080';
6) \xampp\security\htdocs\securefunctions.php
a) line 11, if (@mysql_connect("localhost:6080", "root", "$currentpass")) { (add
:6080 to localhost)
7) \xampp\security\htdocs\security.php
a) line 69, if (($handle = @fsockopen($host, 6080, $errno, $errstr, $timeout))
== true) { (change 3306 to 6080)
8) \xampp\security\htdocs\xamppsecurity.php
a) line 24, if (($handle = @fsockopen($host, 6080, $errno, $errstr, $timeout))
== true) { Change 3306 to 6080)
9) xampp\htdocs\xampp\mysql.php
a) line 2, if (@mysql_connect("localhost:6080", "pma", "")) { (add :6080)
Notes:
- use localhost:6080 (user:root, servername:localhost:6080) for MySql apps to
connect to the data base.
- adding: Listen "localhost:6060" to the httpd.conf and the line
"bind-address=127.0.0.1"
in the [mysqld] section of my.cnf, will prevent the processes from being seen on
a network.
- if SSL is needed, an alternative port must be used and changes made in a
number of files to
avoid conflicts with xampp sessions already running SSL on port 443. Search the
files above
including; httpd-ssl.conf for '443' and make necessary changes.
Questions-Comments:
techno.geezer -at- gmail (d0t) com