DeveloperSide.NET Forums
November 22, 2019, 12:02:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: Before installation questions?  (Read 44649 times)
0 Members and 1 Guest are viewing this topic.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #15 on: July 26, 2007, 12:59:31 PM »

You have posted the "httpd.conf.default" file, not the httpd.conf file.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #16 on: July 26, 2007, 06:46:02 PM »

You asked me to post the file from here: I need the \www\Apache22\conf\httpd.conf file.

Well in that folder there is httpd.conf.original, a text file httpd.txt, and the http.conf default file. That is all. There is not a httpd.config in that folder.

This is making me want to slap my grandma, and I really loved her. Will this info work in the regular old apache server?

NameVirtualHost *:80


<VirtualHost *:80>
ServerName american-horse-enterprises.com
DocumentRoot "/www/webroot/american-horse-enterprises.com"


<Directory "/www/webroot/american-horse-enterprises.com">
   Order Allow,Deny
   allow from All
</Directory>


</VirtualHost>


<VirtualHost *:80>
ServerName gs-koi.com
DocumentRoot "/www/webroot/gs-koi.com"


<Directory "/www/webroot/gs-koi.com">
   Order Allow,Deny
   allow from All
</Directory>


</VirtualHost>

I will have to change the directory, I know. But This new server is not working well with me. You have been extraordinarily helpful as well as patient with me, and I thank you for that, but what you are asking for is not in that folder.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #17 on: July 26, 2007, 06:55:38 PM »

httpd.conf is what Apache reads. Nothing else. Not httpd.conf.original, not httpd.conf.default.

I know this file exists as Apache will not start without it...

Quote
C:\>httpd -k start
httpd: Could not open configuration file C:/www/Apache22/conf/httpd.conf: The system cannot find the file specified.

Are you sure you don't have a folder/window setting that prevents the display of *.conf files?

Use the Web-Developer Controller to open this file.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #18 on: July 26, 2007, 08:03:04 PM »

I did a search of my entire computer which included hidden files and this was the results:

file:///C:/www/Apache22/conf/httpd.conf.default

file:///C:/www/Apache22/conf/httpd.conf.default

file:///C:/www/Apache22/conf/httpd.txt

I think I should do a stop server, uninstall, and re-install. Then start straight from the beginning.

Thanks Bob
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #19 on: July 26, 2007, 08:20:23 PM »

1) What is httpd.txt ? This is not a file that comes with our Suite.

2) Run the WDController app... \www\wdcontroller.exe From the menu it will open httpd.conf
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #20 on: July 26, 2007, 11:07:29 PM »

Thanks Bob

You know, that could be the problem. After configuring the file in notebook, I could have saved it as a txt file. DUH! I am going to open this file in dreamweaver and save it as a conf file to that folder.

Wow, the server is reading the txt file. What it is showing up in the test you told me to run is exactly like the text file. That is what I did, I forgot to set the extension. I was just looking at all of my programs and can not find one that will save the extension. Is there a repair installation in this program? If not I will remove and reinstall.

I think we have found the problem. Here is the text file: httpd.txt

###*********************************************************
###*  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:80
ServerAdmin admin@localhost

ErrorLog logs/error.log
LogLevel error

###
# 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
<IfDefine SSL>
   LoadModule ssl_module modules/mod_ssl.so
</IfDefine>


DefaultType text/plain

<IfModule dir_module>
    DirectoryIndex index.html index.php index.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>

NameVirtualHost 127.0.0.1

<VirtualHost american-horse-enterprises.com>
   ServerName american-horse-enterprises.com
   DocumentRoot "c:/www/webroot/AHE"
   <Directory "c:/www/webroot/AHE">
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>


Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #21 on: July 26, 2007, 11:30:15 PM »

Why not just click the file, once to select it, and click it's name once. That will aloow you to edit the file name. And as far as I'm aware, you can save it under notepad as whatever you want. You don't need to select any extension, just type out the full name... httpd.conf
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #22 on: July 27, 2007, 04:25:13 AM »

No, that is too easy. I uninstalled and re-installed, went to www\Apache22\conf and guess what was there. Yup, that is right, the magic file httpd.conf.

That is what I did, saved it as a text file. Double Duh!

So before I muck it up anymore, is this the right way to get this thing over with?


 NameVirtualHost *:80


<VirtualHost *:80>
ServerName american-horse-enterprises.com
DocumentRoot "/www/webroot/american-horse-enterprises.com"


<Directory "/www/webroot/american-horse-enterprises.com">
   Order Allow,Deny
   allow from All
</Directory>


</VirtualHost>


<VirtualHost *:80>
ServerName gs-koi.com
DocumentRoot "/www/webroot/gs-koi.com"


<Directory "/www/webroot/gs-koi.com">
   Order Allow,Deny
   allow from All
</Directory>


</VirtualHost>


Perhaps we can end this thing, and we can get on with our lives. I am quitting early tonight, 9:00 pm to watch a movie and SLEEP!

Thanks Bob
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #23 on: July 27, 2007, 05:08:04 AM »

Is http://localhost/webdeveloper.php working? If so, your installation should be good to go with the changes...

Just uncomment the httpd-vhost.conf line under httpd.conf, and replace all the contents of httpd-vhost.conf with the above. Save files. Make sure they are still there. Restart Apache.

I assume you have some type of DDNS working that is resolving those domain names to your IP address. That and your router has port 80 port forwarded, and the Windows Firewall has httpd.exe or port 80 open.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #24 on: July 27, 2007, 05:21:17 PM »

Yup to all of your assumptions. I will do as you say this afternoon, as I have to go set up a clients network this morning. Thanks For the help. I will let you know how it works. Is there a limit to the number of sites you can run? Thanks Bob
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #25 on: July 27, 2007, 06:17:19 PM »

Quote
Is there a limit to the number of sites you can run?

No, at least not in a general sense.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #26 on: July 27, 2007, 10:54:23 PM »

Well this is sad, after all of that, watching and checking the files, and I am still getting index of page. Why?
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #27 on: July 28, 2007, 12:34:10 AM »

Index of what? \www\webroot or \www\webroot\vh-dir?

And on which URL?

If you type in http://localhost you should get index of \www\webroot
If you type in http://your-vh-domain you should either get index of that specific VH dir, or if it contains index.php or index.html, than that file.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
aticama
Member
*
Posts: 20


View Profile Email
« Reply #28 on: July 28, 2007, 03:29:57 AM »

well, if I ask for http://american-horse-enterprises.com I geat a index of my site with a lot of php stuff and it just has the american horse address in the address bar and this at the base of the page: Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8e mod_fastcgi/mod_fastcgi-SNAP-0404142202 PHP/5.2.1 mod_perl/2.0.3 Perl/v5.8.8 Server at american-horse-enterprises.com Port 80

You can click on the american horse connection and go straight to the AHE index page, but the koi site yiu gave to go to its index page, the address bar showes this: http://american-horse-enterprises.com/gs-koi.com/

Then you have to click the index folder to get the site. Why is it showing the koi site as a folder in the american horse folder when it is not.

Check out the link. Thanks Bob
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #29 on: July 28, 2007, 04:34:40 AM »

Thats odd...

Try placing all those VH directories outside the webroot, say under dir C:\www\vhosts\, and update the code under httpd-vhost.conf. Restart Apache.

Thought you will need to palce this code within each VH dir block to get PHP working outside of webroot...

AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps   
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!