DeveloperSide.NET Forums

DeveloperSide.NET => Anything else goes here => Topic started by: night2dark2 on September 21, 2007, 12:54:36 AM



Title: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 12:54:36 AM
I'm having a server image breakdown.

I Do not know why this happenen. Admin just tell me the list of files you want me to post. I will remove somethings and block it out.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 01:13:02 AM
The last time I heard about a img issue, it was a problem with some version of zonealarm. Could also be affected by similar s/w.

Try adding 'Win32DisableAcceptEx' to httpd.conf.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 01:14:36 AM
logs/error.log would be the 1st place to check when tracking down an issue.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 01:33:05 AM
iuno type of like this image.

(http://uploads.nitroonline.ath.cx/uploads/sleepy1.jpg)

That image is broken. It is not edited though


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 01:36:13 AM
That was the original problem, were some imgs would only load half way, sometime all the way, sometimes not at all. Try the 'Win32DisableAcceptEx' directive, I think it was a work around for the original zonealarm problem.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 02:46:27 AM
My computer isn't win32 its 64 bit >_>


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 02:56:01 AM
kay added Win32DisableAcceptEx and still no help.

here is my httpd conf file.

Code:
###*********************************************************
###*  Web-Developer Server Suite                           *
###*  http://sourceforge.net/projects/webdeveloper         *
###*  devside_net@users.sourceforge.net                    *
###*  v1.95-httpd22-ssl                                    *
###*********************************************************


ThreadsPerChild 250
MaxRequestsPerChild  0

Listen 80
ServerRoot "/www/Apache22"
DocumentRoot "/www/webroot/"

ServerName localhost
ServerAdmin mfaiotto@msn.com

ErrorLog logs/error.log
LogLevel error

Win32DisableAcceptEx


###
# Note that the following LoadModule lines only represent the minimum 'Web-Developer' Suite configuration.
#
# Also note that some of the following LoadModule lines, which are commented out, are still loaded under...
# conf\Suite-extra\*.conf
# conf\extra\*.conf
# ...configuration files -- for modular reasons.
#
# For example:
# mod_deflate is loaded under conf\Suite-extra\mod_deflate_logio.conf and NOT under httpd.conf
# status_module is loaded under conf\extra\httpd-info.conf and NOT under httpd.conf
#
# Check last part of httpd.conf for the Apache base and 'Web-Developer' *.conf files that are included.
###

#LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
#LoadModule asis_module modules/mod_asis.so
#LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
#LoadModule authn_default_module modules/mod_authn_default.so
#LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
#LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule imagemap_module modules/mod_imagemap.so
#LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
#LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule auth_module modules/mod_auth.so
#LoadModule access_module modules/mod_access.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>


DefaultType text/plain

<IfModule dir_module>
    DirectoryIndex index.html index.php index.aspx index.asp Default.asp Default.aspx home.php home.html home.htm home.asp home.aspx
</IfModule>

IndexIgnore .htaccess
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

<Directory "/www/webroot">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>


# Apache base configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server.

# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf

# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Language settings
Include conf/extra/httpd-languages.conf

# User home directories
#Include conf/extra/httpd-userdir.conf

# Real-time info on requests and configuration
Include conf/extra/httpd-info.conf

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

# Local access to the Apache HTTP Server Manual
Include conf/extra/httpd-manual.conf

# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf

# Various default settings
Include conf/extra/httpd-default.conf


# DeveloperSide.NET Server-Suite Configuration
#
# The configuration files in the conf/Suite-extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server.
#
# The specifics are loaded under components.conf...

Include conf/Suite-extra/components.conf


# Security check -- if no php module is loaded, Apache should return 'permissions denied' on php(4,5) all URL requests
<IfModule !php5_module>
<IfModule !php4_module>
<Location />
<FilesMatch "\.php[45]?$">
Order allow,deny
Deny from all
</FilesMatch>
</Location>
</IfModule>
</IfModule>


<IfModule ssl_module>
Include conf/extra/httpd-ssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


<Files ~ "^\.ht">
   Order allow,deny
   Deny from all
</Files>

Alias "/uploads/GM Commands" "/www/webroot/uploads.ngunz.ath.cx/uploads/GM Commands"

<Directory "/www/private">
   Order allow,deny
   Allow from all

   Options Indexes
   AuthType Basic
   AuthName "Private Access"
   AuthUserFile "/www/webroot/uploads.ngunz.ath.cx/uploads/GM Commands/.htpasswd"
   Require valid-user
</Directory>

#asp.net
LoadModule aspdotnet_module "modules/mod_aspdotnet.so"

AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

<IfModule mod_aspdotnet.cpp>
  # Mount the ASP.NET /asp application
  AspNetMount /SampleASP "c:/SampleASP"
  #/SampleASP is the alias name for asp.net to execute
  #"c:/SampleASP" is the actual execution of files/folders  in that location

  # Map all requests for /asp to the application files
  Alias /SampleASP "c:/SampleASP"
  #maps /SampleASP request to "c:/SampleASP"
  #now to get to the /SampleASP type http://localhost/SampleASP
  #It'll redirect http://localhost/SampleASP to "c:/SampleASP"

  # Allow asp.net scripts to be executed in the /SampleASP example
  <Directory "c:/SampleASP">
    Options FollowSymlinks ExecCGI
    Order allow,deny
    Allow from all
    DirectoryIndex index.htm index.aspx
   #default the index page to .htm and .aspx
  </Directory>

  # For all virtual ASP.NET webs, we need the aspnet_client files
  # to serve the client-side helper scripts.
  AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
  <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
    Options FollowSymlinks
    Order allow,deny
    Allow from all
  </Directory>
</IfModule>
#asp.net

NameVirtualHost  *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "/www/webroot/localhost"

<Directory "/www/webroot/localhost">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName uploads.********
DocumentRoot "/www/webroot/uploads.********"

<Directory "/www/webroot/uploads.********">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName patch.********
DocumentRoot "/www/webroot/patch.********"

<Directory "/www/webroot/patch.********">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>


<VirtualHost *:80>
ServerName ****************
DocumentRoot "/www/webroot/********"

<Directory "/www/webroot/********">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>


<VirtualHost *:80>
ServerName ****************
DocumentRoot "/www/webroot/********/"

<Directory "/www/webroot/********/">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName ********
DocumentRoot "/www/webroot/********/"

<Directory "/www/webroot/********/">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName ********
DocumentRoot "/www/webroot/********/"

<Directory "/www/webroot/********/">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>


<VirtualHost *:80>
ServerName ***
DocumentRoot "/www/webroot/****/"

<Directory "/www/webroot/****/">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName ********
DocumentRoot "/www/webroot/vhost/******/"

<Directory "/www/webroot/host/******/">
   Order Allow,Deny
   allow from All
</Directory>

</VirtualHost>



And yeah thats my httpd.conf. Commented out some important things. Stuff that nosey people should not know.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 11:45:51 AM
As you mentioned in the other thread, its probably related to your firewall s/w... Or anything else you might have recently installed or updated.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 12:01:06 PM
no it couldnt have been Nortan because I only have AntiVirus for Nortan installed. And it can't be my Spysweeper because It only protects somethings. like a trojan entering my system with the Uploader I setup. and my Nortan scans all messages that go out of my system so that couldn't be it. and I have ports '80' '4000' '6521' '6000' '6001' '7877' '7870' '7890' and port '8000' open. so what could be my problem? Oh wait I think I just found it. Gay Ares chat room server.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 12:18:17 PM
Some s/w re-implements key Windows layers in a bad way and can cause this. Anti-vir and firewall s/w are know to mess with the Winsock layer. And sometimes even a complete uninstall will not revert the changes made.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 01:52:00 PM
Admin can you give me the mod_Security folder? because I think thats messing with it. because it shows no errors under Error.Debug.log Changed Error to Debug and changed debug log name. and it doesn't appear. I will try with a full image because maybe my friend re-uploaded the content.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 03:41:46 PM
You should disable mod_security by commenting it out under \www\Apache22\conf\Suite-extra\components.conf
The mod_security config is also under that dir.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 08:53:41 PM
hmm I commented out Mod_sec and removed Win32DisableAcceptEx . now no content shows. I even rebooted my pc. Server takes a long time to load. What should I do? Reinstall? I really cant because all my databases are there.

Even my localhost takes ages to load. Admin you can even go their and check for your self.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 09:00:57 PM
You can comment it back in and put the directive back in to see if anything changes... Though I doubt it.

If you wanted to re-install and save the mysql database, just save the \www\mysql\data dir somewhere outside of \www and copy it over after a uninstall and install of the Suite. Just know that the uninstaller deletes everything under \www. And you have to uninstall 1st. Not install over an already present www, that would mess things up and probably overwrite existing files you might want to keep. So save your configs. Of course, again, your current problems probably have little to do with Apache or anything under the Suite.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 09:08:27 PM
Eh ill just install under F:\ then write over with my files and config. or Does your installer detect the previous version of the suite?


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 09:12:07 PM
You could make the installer keep webroot and the apps nao? with the Apache config.


Title: Re: Server Image Breakdown
Post by: admin on September 21, 2007, 09:13:34 PM
You will need to 1st shut down the current mysql and apache services and uninstall them. Then you should be able to install to the new drive, just make sure to run the installer from F:\. I would still save the mysql/data and the apache22/conf dirs somewhere else just in case it all goes horribly wrong.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 21, 2007, 09:14:27 PM
Bah I know. I'm copying them over to 'C:\inetpub\%s'
%s meaning Service.


Eg MySQL and wwwroot with the files also in ftproot.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 22, 2007, 12:51:31 AM
Update :

Reinstalled the suite. It keeps Installing to C:\www for some reason though. Okay. For some reason the image problem didnt fix itself.

(http://i168.photobucket.com/albums/u199/mikestfu/sleepy1.jpg) Thats the Image. What could be the problem?
that image is not hosted under me. its hosted under photobucket. While my Avatar is hosted on my server it loads full the other images don't. so please tell me why this is happening and I'll attempt to fix it.


Title: Re: Server Image Breakdown
Post by: admin on September 28, 2007, 11:48:55 AM
The Suite will install to whatever drive that setup.exe is located on.

The image looks fine now btw.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 29, 2007, 10:05:43 AM
Code:
That image is on another server. My Avatar is on my server while the other image isn't. Could it be a module doing that? and theirs another problem. PHP is installed as 5.2.1. I'm trying to call mssql_num_rows() for a feild that exists but Isn't returning my total accounts.

Here is part of my code.
DBString
[code]
<?
srvip=71.196.59.195
$mssql_user = "*********";
$mssql_pass = "*********";
$mssql_host = "**********\SQLEXPRESS";
$mssql_database = "RevGamers";
$conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
mssql_select_db($mssql_database);
?>

Now for a code to show you that the 'Accounts' Table exists.

Code:
                    $query = mssql_query("SELECT * FROM Accounts WHERE UserID='$user'");
                    $num_rows = mssql_num_rows($query);
                    if ($num_rows == 0)

Now heres the Query I'm using.

Code:
$query = mssql_query("SELECT * FROM Accounts");
$num_rows = mssql_num_rows($query);
echo "<font style='color: #FFFFFF'>Total Accounts: ".$num_rows."<br></font>";

However Its not showing Up the Amount of total Accounts. it appears as "    " without anything in the middle(Those are blank spaces) and their is Data inside the table. I even tried with my other database. and now people cannot register to my server. and I don't want to have to link The Server Account register on another site :S.

Quote from: code after parsing the php document below register table
Total Accounts:
Total Items: 66684246
Total People Online: 0

Revolution Gamers Gunz is : Offline
[/code]

so I Don't know how to fix this without updating to the newest php but I'm afraid I might make an error.


Title: Re: Server Image Breakdown
Post by: admin on September 29, 2007, 11:58:16 AM
Are you using SQL Server or MySQL because all your query functions are mssql, not mysql?


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 29, 2007, 12:00:51 PM
Im using both. But for the Gunz Part Yeah its mssql.


Title: Re: Server Image Breakdown
Post by: admin on September 29, 2007, 12:08:45 PM
In your other most recent hijacked thread, it does appear that php.ini is not loading any of the extensions. Like the mssql dll.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 29, 2007, 12:17:57 PM
Admin , Is it possible to use the PHP.ini that you gave us with the SUITE install vs the one that came with the php 5.2.4?


Title: Re: Server Image Breakdown
Post by: admin on September 29, 2007, 12:22:40 PM
Yes. Just don't start converting the line endings like you might have with win-merge.


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 29, 2007, 12:33:40 PM
Can you give me the PHP.ini that comes with the Suite? I lost it. Thank you


Title: Re: Server Image Breakdown
Post by: night2dark2 on September 29, 2007, 01:34:08 PM
Still cant echo that. Upgraded PHP 5.2.1 to PHP 5.2.4. Replaced with Original PHP file. Changed file dirs. Nope didn't help. is their a way I can register an account into mssql using Javascript? because then I might be able. :D without Lagging the entire server. or with python sinec I know python too. Java not much but ill figure it out.


Title: Re: Server Image Breakdown
Post by: night2dark2 on December 08, 2007, 11:23:54 PM
New Suite ver , Fixed