Debugging Tips: Difference between revisions
(New page: <span id="top"></span> <div style="padding:0;margin:0; border-bottom:3px inset #000000"> {| | MPG UniCenter || Debugging Tips |} </div> {| cellpadding="2" |...) |
(No difference)
|
Revision as of 11:39, 24 May 2008
General Debugging Tips including 3.5-Apollo Specific |
This page contains a few tips that will assist you in debugging on Uniform Server.
What’s my IP?
There are many on line services that will provide your IP address for example click this link: Whats My IP you cant miss it, top right big and bold.
On the above page try the “More Info About You” link.
Checking your server is externally accessible
You have popped your servers on-line and wondering if they are accessible from the Internet. Google translate is ideal for this, in order to translate a page it needs access to your servers (Exactly what we need and fully automated.).
- Go to Google Translate page: Google Translate
- Select Text and Web top menu bar (Automatically selected for you)
- Bottom of page you will find a text field Translate a web page enter a valid address for your page:
- It accepts IP addresses for example http://89.007.251.102/test/index.html
- Or domain names for example: http://fred.com/test/index.html
- Select any language from the drop down list.
- Click Translate
- If the page is accessible it is translated.
- If its not accessible a blank page is displayed.
Quick and effective that’s what I like.
Apache not starting - httpd.conf syntax check 1
If you have made changes to Apache configuration file httpd.conf and find Apache no longer runs the chances are you made a typo? Apache will not run if there is a syntax error in the configuration file however the virtual drive (default W) may have been created if so you can use the following to check for syntax errors:
Open a command prompt (run > type cmd > click Ok)
|
This will run Apache and check the configuration syntax.
|
Any syntax errors will be reported.
Apache not starting - httpd.conf syntax check 2
If Apache fails to start its more than likely the virtual drive will not be created. The following batch file will create a virtual drive and test the syntax. This batch file may be run with or without the servers running.
To save typing copy the following file uc_apache_syntax.txt to folder “Uniform Server” rename the file to uc_apache_syntax.bat double click to run.
File details and notes:
|
Notes:
If the servers are not running a virtual disk drive is created the default is “W” if you are using a different disk change the line: set Disk=W accordingly.
Note: Command -t must be run from the virtual drive and not from where Uniform Server was extracted otherwise the following error is generated:
Hence these lines are required in the batch file they change the working disk and directory:
|
Apache - Log files
Apache logs all its transactions to the following file access.log and errors to error.log these are located in folder:
*\Uniform Server\udrive\usr\local\apache2\logs
when debugging Apache problems make this your first port of call .
Mod Rewrite - Log file
Logs all Mod Rewrite transactions to a file using “RewriteLog” and “RewriteLogLevel” directives. These instructions cannot be placed in an htaccess file they must be placed in Apache’s main configuration file httpd.conf preferably in a Vhost.
|
|
Note: Only enable these lines while testing do not use on a live server because logging will quickly eat your disk space. Comment out the lines (by placing # at the start of the line) or delete after testing, you may also wish to delete the log file (rewrite.txt).
Ric |