DeveloperSide.NET Forums
December 06, 2019, 03:00:15 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: 1 [2] 3 4 ... 216
16  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: How to disable mysql binary logs?
on: May 13, 2010, 02:11:28 PM
There are two ways to do this...

The direct way (to remove the logs)...
You would stop MySQL and simply delete all the mysql-bin.*** files EXCEPT for mysql-bin.index.
You would edit mysql-bin.index and clear it out of all entries (just delete everything in the file).

Then you can edit my.ini, comment out line (add # to the start):
log-bin=mysql-bin

...to prevent any future binary logs.


The other way (via mysql, to clear the logs)...

First stop the Apache Service so MySQL is not getting any queries sent to it.

Login to MySQL as root: from the command line 'mysql -u root -p', enter your password or the default 'rootwdp'.

Run the following two commands:
mysql> FLUSH LOGS;
mysql> RESET MASTER;

Depending on your log size, this might take a while and will reset and empty the logs.
17  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Fix: Getting a 403/Forbidden HTTP access code after creating a (dynamic) site
on: May 03, 2010, 05:25:49 PM
A 403/Forbidden code would be a result of creating the wrong folder structure under the vhosts\_dynamic folder to represent your site.

Here are some examples of creating a proper site with the "dynamic domain" feature of the Suite:

The folder structure here is based on the "host.domain.tld" template (tld is short for "top level domain": com, net, org, etc). The domain.tld is always composed of exactly two parts : domain and tld. While the host can be composed of zero, one, or more parts. If the host has no parts, we represent it with the underscore character: _ .

In example:
example.com has domain.tld of "example.com" and host of "_"
www.example.com has domain.tld of "example.com" and host of "www"
www.example.co.uk has domain.tld of "co.uk" and host of "www.example"

And we can even represent URL http://192.168.0.1 with a domain.tld of "0.1" and host of "192.168" (it's a trick we use to represent a "dynamic domain" site via IP address access) to get it to work with the "dynamic domain" feature of the Suite.

Note again: The folder structure that will represent your site is separated into two parts: the host and the domain.tld parts. The "domain.tld" is defined as the first two parts from the right and the "host" is defined as everything else. If there is no host, then we represent it's [document] folder with "_".


To create site www.example.com
Create these folders:
vhosts\_dynamic\example.com\ is just the root folder that contains the hosts; is not a URL; is not accessible
vhosts\dynamic\example.com\_\ becomes http://example.com
vhosts\_dynamic\example.com\www\ becomes http://www.example.com

To create site www.example.co.uk
Create these folders:
vhosts\_dynamic\co.uk\ is just the root folder that contains the hosts; is not a URL; is not accessible
vhosts\_dynamic\co.uk\_\ becomes http://co.uk
vhosts\_dynamic\co.uk\example\ becomes http://example.co.uk
vhosts\_dynamic\co.uk\www.example\ becomes http://www.example.co.uk

To create site "192.168.0.1" (IP site)
Create this folder:
vhosts\_dynamic\0.1\ is just the root folder that contains the hosts; is not a URL; is not accessible
vhosts\_dynamic\0.1\192.168\ becomes http://192.168.0.1
18  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: How to change Gzip compression setting.
on: May 01, 2010, 04:49:58 PM
When Apache serves a request, it checks the C:\www\Apache22\conf\mime.types file with the extension of the file being served, and sets the "Content-Type" HTTP header to...
(line 62)
Quote
application/javascript js

"application/javascript"

Then the mod_deflate module has a chance to act on "application/javascript" content type data when it gets it.

To test this, I placed a deflate.js text file under localhost and accessed it. mod_deflate keeps a log file for localhost here:
C:\www\Apache22\logs\localhost\deflate.log

Quote
"GET /deflate.js HTTP/1.1" 43305/759469 (5%)

mod_deflate compressed the 750KB file down to 43KB, to about 5% of original size.
19  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: May 01, 2010, 04:35:11 PM
Since you are aliasing the IP to localhost, you would need to modify the vhosts\localhost\.htaccess file or delete it to allow someone access to that particular VH from outside or even internally. Which I assume you did now that it's working for me.

The reason "localhost" is restricted with an .htaccess file is because "localhost" is really only ment for local access. It's best to create a site under \vhosts\_dynamic (or \vhosts\_static).
20  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: May 01, 2010, 04:33:10 PM
I went to that IP address and I get a website back, Toppers BBS 2008. Works for me.
21  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: May 01, 2010, 03:10:02 AM
To access via something aside form localhost, 127.0.0.1, or any domain name folder that you create under vhosts\_dynamic, you would need to alias that ip or domain name to the virtual host you are accessing.

To get the localhost virtual host responding to your IP address, you would edit C:\www\Apache22\conf\extra\httpd-vhosts.conf and update ServerAlias line:
Code:
<VirtualHost *:80>
DocumentRoot "C:/www/vhosts/localhost/_"
ServerName localhost
ServerAlias 127.0.0.1
To:
Code:
<VirtualHost *:80>
DocumentRoot "C:/www/vhosts/localhost/_"
ServerName localhost
ServerAlias 127.0.0.1 your.ip.address

Restart Apache after configuration changes.
22  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: May 01, 2010, 12:32:41 AM
Going to your linked to signature, the page i'm seeing is one you would get if either the Apache service was stopped, or there was some type of a network or dns issue (I have not idea if it's related to your localhost setup)
23  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: May 01, 2010, 12:30:09 AM
Deleting file C:\www\vhosts\localhost\.htaccess should have little to no effect as that file restricts access, it does not grant it.

If you are talking about another .htaccess file that is under the ...\localhost\_\ folder (that came with a web application that you intalled), deleting it could cause issues for that particular app.

You should uninstall the Suite, reboot, delete the left over 'www' folder, and install once more. It sounds like you have a configuration problem somewhere. Make sure to delete the 'www' folder or the new installation will keep the old configuration files.
24  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: April 30, 2010, 11:46:58 PM
The Suite should be working right out of the box. Are you using additional software? Which htaccess file are you referring to?
25  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: April 30, 2010, 05:52:10 PM
You might have an .htaccess file somewhere in the path C:\, C:\www\, C:\www\vhosts\, ... that has lines in it to block all access.

Aside from that, are you sure it's our Apache Service that's getting the requests? Check C:\www\Apache22\logs\access.log and error.log files. The lines at the end should corespond with the requests. If not, something else is picking it up.
26  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: How to change Gzip compression setting.
on: April 30, 2010, 01:52:25 PM
To compress javascript files, you could try editing this line:
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml

To:
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/javascript application/x-javascript

Restart Apache for changes to take effect.
27  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: April 29, 2010, 02:57:24 PM
What happens when you go to http://127.0.0.1/ ?
28  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: How to change Gzip compression setting.
on: April 28, 2010, 06:05:55 PM
File C:\www\Apache22\conf\extra\suite-global\suite-deflate_logio.conf

http://httpd.apache.org/docs/2.2/mod/mod_deflate.html#deflatecompressionlevel

You would add this directive within the existing "<IfModule deflate_module>" block: DeflateCompressionLevel value

I think the linked in zlib library defaults to a value of 6.
29  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Web Developer doesn't start in Windows 7
on: April 28, 2010, 12:35:08 AM
Sounds like a permissions issue.

Make sure you log-in into Windows as an administrative user.

Try starting the Apache Service from the command line/shell...
Start > Search for cmd.exe, right click it, select run as administrator

Code:
net start Apache2.2

What does the above report back?

What does Apache append to C:\www\Apache22\logs\error.log after you try to start it?
30  DeveloperSide.NET / Web.Developer Server Suite Professional Edition,
Support Forum
/ Re: Howto: create SSL Sites and Virtual Hosts
on: April 27, 2010, 05:40:07 PM
When a certificate is purchased from one of the CAs (certificate authorities: verisign, comodo, godaddy, etc) make sure that you choose to get a private key that is not passphrase encrypted. Otherwise the Apache Service will not be able to start and will log the below entry into the error.log file.

Quote
[error] Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file C:/www/Apache22/conf/ssl.key/domain.tld.key)

To remove the passphrase from your private key manually (it does not do anything but get in the way): Run cmd.exe, change to the certificate key folder, and use the openssl binary to remove passphrase...

Code:
c:
cd \www\Apache22\conf\ssl.key
openssl rsa -in domain.tld.key -out domain.tld.nopass.key

This will remove the passphrase from private key named domain.tld.key and store the passphrase-less key into file domain.tld.nopass.key.

Update configuration line to reflect new key file. Restart Apache.
Pages: 1 [2] 3 4 ... 216
Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!