Jump to content
The Uniform Server Community

Something for community


wex-alpha
 Share

Recommended Posts

Its been a while since I posted here. And that last time was a question on my problem.

Now I post not asking question, but rather giving something that works with me, in hopes that it will be useful for other members.

 

If you just downloaded your version of Uniform Server and you have problems like: Apache not terminating... Browser giving tim out error or MySQL not loaded... here are some advices for those wh have that problem:

 

This is the Start file that I use:

 

: Name: Start Server File
: Created By: The Uniform Server Development Team
: Edited Last By: Olajide Olaolorun (empirex)
: Comment: After start, go to apanel directly.
: To Developers: Implemented %www%, and %apanel% :)

@echo off

rem use: start mysql console - to start mysql at server start and display console
rem use: start mysql - to start mysql at server start
rem use: start nomysql console - to display console

diskw\home\admin\program\pskill.exe Apache.exe c
IF NOT ERRORLEVEL 1 goto started
set Disk=%1
IF "%Disk%"=="" set Disk=w
rem create the disk
subst %Disk%: "diskw"
IF ERRORLEVEL 1 goto hint
set apachepath=\usr\local\apache2\
set apacheit=%Disk%:%apachepath%bin\Apache.exe -f %apachepath%conf\httpd.conf -d %apachepath%.
set programit=%Disk%:\home\admin\program\
set closeit=%programit%close.bat %Disk%

%Disk%:
cd \usr\local\php
start \usr\local\mysql\bin\mysqld-opt.exe --defaults-file=/usr/local/mysql/bin/my-small.cnf
CLS
echo The server is working on the disk %Disk%:\ [http/127.0.0.1/apanel/]
set www=\www\
set apanel=\home\admin\www\
start %apanel%\redirect.html
IF "%3"=="console" goto console
start %programit%uniserv.exe "%apacheit%" "%closeit%"
goto end
:console
%apacheit%
%closeit%
goto end
:hint
CLS
echo The disk %Disk% is busy. Please restart by clicking autostart
goto pause
:started
CLS
echo ERROR!!! 
echo One of the instances of Apache server is started. Use Stop.bat
:pause
echo .
pause
:end

 

This is stop that I use

 

: Name: Stop Server File
: Created By: The Uniform Server Development Team
: Edited Last By: Olajide Olaolorun (empirex)
: Comment: Tara's new syetm of shutting down the server
: To Developers: Implemented a new system of server shutdown

@echo off
diskw\home\admin\program\pskill.exe Apache.exe c

if errorlevel 2 goto :PAUSE

:PAUSE
echo .
pause

:END

 

They are not that different than the original ones... Its been a long time since I edited them, cant remember did I change anything or not :)

 

This is *.exe that I use to make it autorun :)

 

I hope it helps someone

 

PS that exe is not a virus or any other pest. autorun.exe

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...