1,478
edits
(New page: {{Nav 4.0-Mona}} '''Install – Multi-Servers''' Running more than a single instance of Uniform Server requires changing the standard port for Apache and MySQL and changing Apache’s exe...) |
mNo edit summary |
||
Line 149: | Line 149: | ||
Replace two occurrences (lines 89 and 114) of Apache.exe with Apache_new.exe | Replace two occurrences (lines 89 and 114) of Apache.exe with Apache_new.exe | ||
'''''[[#top | Top]]''''' | |||
=== Step 8a) Edit redirect.html === | |||
Edit file: UniServer\udrive\home\admin\www\redirect.html | |||
Replace: <nowiki>http://localhost/apanel/</nowiki> | |||
With: <nowiki>http://</nowiki>localhost''':8080'''/apanel/ | |||
=== Step 8b) Edit index.php folder www === | |||
Edit file: UniServer\udrive\www\index.php | |||
Replace: <nowiki>href="http:</nowiki>//localhost/apanel | |||
With: <nowiki>href="http:</nowiki>//localhost''':8080'''/apanel | |||
Replace: <nowiki>https:</nowiki>//localhost | |||
With: <nowiki>https:</nowiki>//localhost''':444''' | |||
=== Step 8c) Edit index.php folder ssl === | |||
Edit file: UniServer\udrive\ssl\index.php | |||
Replace: <nowiki>href="http:</nowiki>//localhost/apanel | |||
With: <nowiki>href="http:</nowiki>//localhost''':8080'''/apanel | |||
Note: Two lines | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
=== Step | === Step 9) Test servers === | ||
That completes moving servers to different ports, start the servers and start original installation of 4.0-Mona both will now run alongside each other. | That completes moving servers to different ports, start the servers and start original installation of 4.0-Mona both will now run alongside each other. | ||
Line 160: | Line 188: | ||
== Install – Multi-Servers - Includes UniController == | == Install – Multi-Servers - Includes UniController == | ||
If you have implemented all the above steps you only need to implement step | If you have implemented all the above steps you only need to implement step 10. | ||
If you only want to use UniController for controlling the servers make sure you implement the following steps first: | If you only want to use UniController for controlling the servers make sure you implement the following steps first: | ||
Line 169: | Line 197: | ||
* Step 4] Edit config.inc.php | * Step 4] Edit config.inc.php | ||
* Step 5) Rename Apache executable file | * Step 5) Rename Apache executable file | ||
* Step 8) Web page absolute links | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
=== Step | === Step 10) Create a configuration file === | ||
UniController needs to pick-up the new Apache file name create a new text file '''unicon.ini''' with the following content: | UniController needs to pick-up the new Apache file name create a new text file '''unicon.ini''' with the following content: | ||
<pre> | <pre> | ||
Line 182: | Line 211: | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
== Install – Multi-Servers running as a service == | == Install – Multi-Servers running as a service == | ||
Prior to installing Uniform Server 4.0-Mona as a service perform the following on a new copy of 4.0-Mona: | Prior to installing Uniform Server 4.0-Mona as a service perform the following on a new copy of 4.0-Mona: | ||
Line 190: | Line 220: | ||
* Step 4) Edit config.inc.php | * Step 4) Edit config.inc.php | ||
* Step 5) Rename Apache executable file | * Step 5) Rename Apache executable file | ||
* Step 8) Web page absolute links | |||
'''''Note 1'':'''At step 5 use the following name | '''''Note 1'':'''At step 5 use the following name '''Apache1.exe''' for the executable. | ||
'''''Note 2'':''' Ensure both the service and Apache executable names have no more that eight characters. | '''''Note 2'':''' Ensure both the service and Apache executable names have no more that eight characters. | ||
Now implement new steps Step | Now implement new steps Step 11 and 12: | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
=== Step | === Step 11) w2c1.pl Change drive and or folder === | ||
Optionally change the drive letter however the folder name must be changed. | Optionally change the drive letter however the folder name must be changed. | ||
This example uses ''' | This example uses '''UniServer1''' | ||
Edit the following file: \UniServer\udrive\plugins\Services\'''w2c1.pl''' | Edit the following file: \UniServer\udrive\plugins\Services\'''w2c1.pl''' | ||
Line 211: | Line 242: | ||
# $pathc="h:/myserver"; -- Would install to drive h sub-folder myserver | # $pathc="h:/myserver"; -- Would install to drive h sub-folder myserver | ||
$pathc="c:/ | $pathc="c:/UniServer1"; | ||
</pre> | </pre> | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
=== Step | === Step 11a) w2c1.pl Change service names === | ||
When running muti-servers as a service their service names must be unique in this example the new service names are ''' | Change Apache executable name and service names. | ||
Edit the following file: \UniServer\udrive\plugins\Services\'''w2c1.pl''' | |||
Change this section (starting at line 99): | |||
'''''From:''''' | |||
<pre> | |||
print "Installing Apache2 as service ..."; | |||
$res=`$pathc/usr/local/apache2/bin/Apache.exe -f $pathc/usr/local/apache2/conf/httpd.conf | |||
-d $pathc/usr/local/apache2/. -k install -n "Apache2"`; | |||
print " done!\n"; | |||
print "Installing MySQL as service ..."; | |||
$res=`$pathc/usr/local/mysql/bin/mysqld-opt.exe --install MySQL --defaults-file=$pathc/usr/local/mysql/my.cnf`; | |||
print " done!\n"; | |||
print "Starting Apache2 ..."; | |||
$res=`net start Apache2`; | |||
print " done!\n"; | |||
print "starting MySQL ..."; | |||
$res=`net start MySQL`; | |||
</pre> | |||
</pre> | |||
'''''To:''''' | |||
<pre> | |||
print "Installing Apache2 as service ..."; | |||
$res=`$pathc/usr/local/apache2/bin/Apache1.exe -f $pathc/usr/local/apache2/conf/httpd.conf | |||
-d $pathc/usr/local/apache2/. -k install -n "Apache3"`; | |||
print " done!\n"; | |||
print "Installing MySQL as service ..."; | |||
$res=`$pathc/usr/local/mysql/bin/mysqld-opt.exe --install MySQL3 --defaults-file=$pathc/usr/local/mysql/my.cnf`; | |||
print " done!\n"; | |||
print "Starting Apache2 ..."; | |||
$res=`net start Apache3`; | |||
print " done!\n"; | |||
print "starting MySQL ..."; | |||
$res=`net start MySQL3`; | |||
</pre> | |||
'''''[[#top | Top]]''''' | |||
=== Step 12) Change service name === | |||
When running muti-servers as a service their service names must be unique in this example the new service names are '''Apache3''' and '''MySQL3'''. | |||
Edit file: UniServer\udrive\plugins\Services\files\'''Install.bat''' | Edit file: UniServer\udrive\plugins\Services\files\'''Install.bat''' | ||
Line 229: | Line 302: | ||
To: | To: | ||
<pre> | <pre> | ||
C:\UniServer\usr\local\apache2\bin\ | C:\UniServer\usr\local\apache2\bin\Apache1.exe -k install -n "Apache3" | ||
C:\UniServer\usr\local\mysql\bin\mysqld-opt.exe --install | C:\UniServer\usr\local\mysql\bin\mysqld-opt.exe --install MySQL3 --defaults-file=C:\UniServer\usr\local\mysql\my.cnf | ||
net start | net start Apache3 | ||
net start | net start MySQL3 | ||
</pre> | </pre> | ||
Line 246: | Line 319: | ||
To: | To: | ||
<pre> | <pre> | ||
net stop | net stop MySQL3 | ||
net stop | net stop Apache3 | ||
usr\local\apache2\bin\ | usr\local\apache2\bin\Apache1.exe -k uninstall -n "Apache3" | ||
usr\local\mysql\bin\mysqld-opt.exe --remove | usr\local\mysql\bin\mysqld-opt.exe --remove MySQL3 | ||
</pre> | </pre> | ||