Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 5 FirstFirst 1234 ... LastLast
Results 16 to 30 of 61
  1. #16
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Okay, here's what the error logs says and I see what the problem is I just don't know where to go to fix it.
    Warning: DocumentRoot [C:/Server/www/myserver.dev/public_html] does not exist
    [Fri Mar 02 11:19:10 2012] [notice] Child 2920: Child process is running
    [Fri Mar 02 11:19:10 2012] [notice] Child 2920: Acquired the start mutex.
    [Fri Mar 02 11:19:10 2012] [notice] Child 2920: Starting 64 worker threads.
    [Fri Mar 02 11:19:10 2012] [notice] Child 2920: Starting thread to listen on port 80.

    Server in red is the problem because my path isn't C:\server. It's C:\webdev. The path C:\webdev\www\myserver.dev\public_html does exist but C:\server does not.
    I really really appreciate your guys help and patience for that matter.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  2. #17
    New Coder
    Join Date
    Nov 2011
    Posts
    88
    Thanks
    4
    Thanked 26 Times in 26 Posts
    No problem. The short answers are not out of rudeness, normally I'd go on like a broken record when I get started, but it's been a busy week.

    Take a look in the config and search for instances of "DocumentRoot" and 'C:/Server' and you should find it the issue fast.

    I'm not overly familiar with Windows Apache, I'm a Linux bod and I definitely don't have the skils Fou-Lu has, so he would probably give a better answer.

    DocumentRoot can appear in several places in your configuration, and if you are using extra virtual hosts, there could be multiple configurations (windows, dunno, pass). It depends how you set it up.

    It would probably be helpful to post (using the # code tags) your httpd.conf - taking out any obvious identifiable info like public IP's or domain names - if a search for the text does not reveal the fault.

  3. Users who have thanked leslie.jones for this post:

    zigvab75 (03-03-2012)

  4. #18
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Okay, I installed Apache on my laptop and did it the way it was supposed to be done according to the tutorial I was following. There are 2 lines that are giving me problems. In lines 120, and 121, I comment them both out just like the person said to do in the tutorial.I restarted Apache after commenting out the lines and Apache wouldn't start. So, I went back and put the "#" back in lines 120 and 121 and Apache is running. The only difference is now when I check http://localhost it brings up a download dialogue box. In the same tutorial I was reading it said I should see some fancy page showing info about MySQL and PhP. Here is how it's set up right now as we type.

    Code:
    #
    # This is the main Apache HTTP server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see 
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do.  They're here only as hints or reminders.  If you are unsure
    # consult the online docs. You have been warned.  
    #
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path.  If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
    # with ServerRoot set to "C:/server/apache" will be interpreted by the
    # server as "C:/server/apache/logs/foo.log".
    #
    # NOTE: Where filenames are specified, you must use forward slashes
    # instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
    # If a drive letter is omitted, the drive on which httpd.exe is located
    # will be used by default.  It is recommended that you always supply
    # an explicit drive letter in absolute paths to avoid confusion.
    
    #
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    #
    # Do not add a slash at the end of the directory path.  If you point
    # ServerRoot at a non-local disk, be sure to point the LockFile directive
    # at a local disk.  If you wish to share the same ServerRoot for multiple
    # httpd daemons, you will need to change at least LockFile and PidFile.
    #
    ServerRoot "C:/server/apache"
    
    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to 
    # prevent Apache from glomming onto all bound IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 80
    
    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    #
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    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_alias_module modules/mod_authn_alias.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.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 authnz_ldap_module modules/mod_authnz_ldap.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_owner_module modules/mod_authz_owner.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule cgi_module modules/mod_cgi.so
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule dav_module modules/mod_dav.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule dbd_module modules/mod_dbd.so
    #LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule expires_module modules/mod_expires.so
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule filter_module modules/mod_filter.so
    #LoadModule headers_module modules/mod_headers.so
    #LoadModule ident_module modules/mod_ident.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 ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.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_ftp_module modules/mod_proxy_ftp.so
    #LoadModule proxy_http_module modules/mod_proxy_http.so
    #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    LoadModule rewrite_module modules/mod_rewrite.so
    #PHP5
    #LoadModule php5_module "C:/server/php/php5apache2_2.dll"
    #PHPIniDir "C:/server/php"
    LoadModule setenvif_module modules/mod_setenvif.so
    #LoadModule speling_module modules/mod_speling.so
    #LoadModule ssl_module modules/mod_ssl.so
    #LoadModule status_module modules/mod_status.so
    #LoadModule substitute_module modules/mod_substitute.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 version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    
    <IfModule !mpm_netware_module>
    <IfModule !mpm_winnt_module>
    #
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.  
    #
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    #
    User daemon
    Group daemon
    
    </IfModule>
    </IfModule>
    
    # 'Main' server configuration
    #
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition.  These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    #
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    #
    
    #
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed.  This address appears on some server-generated pages, such
    # as error documents.  e.g. admin@your-domain.com
    #
    ServerAdmin admin@myserver.dev
    
    #
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    #ServerName www.myserver.dev:80
    
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/server/apache/htdocs"
    
    #
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories). 
    #
    # First, we configure the "default" to be a very restrictive set of 
    # features.  
    #
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    
    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #
    
    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "C:/server/apache/htdocs">
        #
        # Possible values for the Options directive are "None", "All",
        # or any combination of:
        #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
        #
        # Note that "MultiViews" must be named *explicitly* --- "Options All"
        # doesn't give it to you.
        #
        # The Options directive is both complicated and important.  Please see
        # http://httpd.apache.org/docs/2.2/mod/core.html#options
        # for more information.
        #
        Options Indexes FollowSymLinks
    
        #
        # AllowOverride controls what directives may be placed in .htaccess files.
        # It can be "All", "None", or any combination of the keywords:
        #   Options FileInfo AuthConfig Limit
        #
        AllowOverride None
    
        #
        # Controls who can get stuff from this server.
        #
        Order allow,deny
        Allow from all
    
    </Directory>
    
    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
    
    #
    # The following lines prevent .htaccess and .htpasswd files from being 
    # viewed by Web clients. 
    #
    <FilesMatch "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </FilesMatch>
    
    #
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    #
    ErrorLog "logs/error.log"
    
    #
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    #
    LogLevel warn
    
    <IfModule log_config_module>
        #
        # The following directives define some format nicknames for use with
        # a CustomLog directive (see below).
        #
        LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
        LogFormat "%h %l %u %t \"%r\" %>s %b" common
    
        <IfModule logio_module>
          # You need to enable mod_logio.c to use %I and %O
          LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
        </IfModule>
    
        #
        # The location and format of the access logfile (Common Logfile Format).
        # If you do not define any access logfiles within a <VirtualHost>
        # container, they will be logged here.  Contrariwise, if you *do*
        # define per-<VirtualHost> access logfiles, transactions will be
        # logged therein and *not* in this file.
        #
        CustomLog "logs/access.log" common
    
        #
        # If you prefer a logfile with access, agent, and referer information
        # (Combined Logfile Format) you can use the following directive.
        #
        #CustomLog "logs/access.log" combined
    </IfModule>
    
    <IfModule alias_module>
        #
        # Redirect: Allows you to tell clients about documents that used to 
        # exist in your server's namespace, but do not anymore. The client 
        # will make a new request for the document at its new location.
        # Example:
        # Redirect permanent /foo http://www.myserver.dev/bar
    
        #
        # Alias: Maps web paths into filesystem paths and is used to
        # access content that does not live under the DocumentRoot.
        # Example:
        # Alias /webpath /full/filesystem/path
        #
        # If you include a trailing / on /webpath then the server will
        # require it to be present in the URL.  You will also likely
        # need to provide a <Directory> section to allow access to
        # the filesystem path.
    
        #
        # ScriptAlias: This controls which directories contain server scripts. 
        # ScriptAliases are essentially the same as Aliases, except that
        # documents in the target directory are treated as applications and
        # run by the server when requested rather than as documents sent to the
        # client.  The same rules about trailing "/" apply to ScriptAlias
        # directives as to Alias.
        #
        ScriptAlias /cgi-bin/ "C:/server/apache/cgi-bin/"
    
    </IfModule>
    
    <IfModule cgid_module>
        #
        # ScriptSock: On threaded servers, designate the path to the UNIX
        # socket used to communicate with the CGI daemon of mod_cgid.
        #
        #Scriptsock logs/cgisock
    </IfModule>
    
    #
    # "C:/server/apache/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "C:/server/apache/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>
    
    #
    # DefaultType: the default MIME type the server will use for a document
    # if it cannot otherwise determine one, such as from filename extensions.
    # If your server contains mostly text or HTML documents, "text/plain" is
    # a good value.  If most of your content is binary, such as applications
    # or images, you may want to use "application/octet-stream" instead to
    # keep browsers from trying to display binary files as though they are
    # text.
    #
    DefaultType text/plain
    
    <IfModule mime_module>
        #
        # TypesConfig points to the file containing the list of mappings from
        # filename extension to MIME-type.
        #
        TypesConfig conf/mime.types
    
        #
        # AddType allows you to add to or override the MIME configuration
        # file specified in TypesConfig for specific file types.
        #
        #AddType application/x-gzip .tgz
        #
        # AddEncoding allows you to have certain browsers uncompress
        # information on the fly. Note: Not all browsers support this.
        #
        #AddEncoding x-compress .Z
        #AddEncoding x-gzip .gz .tgz
        #
        # If the AddEncoding directives above are commented-out, then you
        # probably should define those extensions to indicate media types:
        #
        AddType application/x-compress .Z
        AddType application/x-gzip .gz .tgz
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    
        #
        # AddHandler allows you to map certain file extensions to "handlers":
        # actions unrelated to filetype. These can be either built into the server
        # or added with the Action directive (see below)
        #
        # To use CGI scripts outside of ScriptAliased directories:
        # (You will also need to add "ExecCGI" to the "Options" directive.)
        #
        #AddHandler cgi-script .cgi
    
        # For type maps (negotiated resources):
        #AddHandler type-map var
    
        #
        # Filters allow you to process content before it is sent to the client.
        #
        # To parse .shtml files for server-side includes (SSI):
        # (You will also need to add "Includes" to the "Options" directive.)
        #
        #AddType text/html .shtml
        #AddOutputFilter INCLUDES .shtml
    </IfModule>
    
    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type.  The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    #MIMEMagicFile conf/magic
    
    #
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    #
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.myserver.dev/subscription_info.html
    #
    
    #
    # MaxRanges: Maximum number of Ranges in a request before
    # returning the entire resource, or one of the special
    # values 'default', 'none' or 'unlimited'.
    # Default setting is to accept 200 Ranges.
    #MaxRanges unlimited
    
    #
    # EnableMMAP and EnableSendfile: On systems that support it, 
    # memory-mapping or the sendfile syscall is used to deliver
    # files.  This usually improves server performance, but must
    # be turned off when serving from networked-mounted 
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    #
    #EnableMMAP off
    #EnableSendfile off
    
    # Supplemental 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, or you may simply copy their contents here and change as 
    # necessary.
    
    # 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
    
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    #
    # Note: The following must must be present to support
    #       starting without SSL on platforms with no /dev/random equivalent
    #       but a statically compiled-in mod_ssl.
    #
    <IfModule ssl_module>
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    </IfModule>
    The red lines are 120 and 121 which I was talking about earlier.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  5. #19
    New Coder
    Join Date
    Nov 2011
    Posts
    88
    Thanks
    4
    Thanked 26 Times in 26 Posts
    If you comment those lines out, you prove the problem - you don't fix it.

    For the server to work with PHP you need to point LoadModule php5_module to the correct location (where you have installed PHP to). Additionally, PHPIniDir needs to be pointed to the location of the PHP ini file (php.ini).

    If you don't have PHP working (because you've commented out the lines that load it), when you try and open a .php typically Apache won't have any idea what to do with it and rather than trying to run or interpret it, will present it as a download.

    The other thing that can cause this - if you have PHP working - is not adding a document handler for .php, but I would have thought the tutorial would cover all that.

    Do you have a link to the tutorial you've followed so I can take a look?

    EDIT:
    Seems you have document handlers in place for PHP
    Code:
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    So it's paths/location of php that appears to be the issue.
    Last edited by leslie.jones; 03-03-2012 at 02:32 PM.

  6. Users who have thanked leslie.jones for this post:

    zigvab75 (03-03-2012)

  7. #20
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Yeah, the link to the tutorial I was following is http://webdevcodex.com/tutorial-inst...#installapache
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  8. #21
    New Coder
    Join Date
    Nov 2011
    Posts
    88
    Thanks
    4
    Thanked 26 Times in 26 Posts
    Quote Originally Posted by zigvab75 View Post
    Yeah, the link to the tutorial I was following is http://webdevcodex.com/tutorial-inst...#installapache
    I can't even load that page. It hangs on some spammy admanager that won't work.

    You did install PHP? What is the path to it and its ini file? Put those in 120/121.

  9. Users who have thanked leslie.jones for this post:

    zigvab75 (03-03-2012)

  10. #22
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    I installed PhP in C:\server\php
    Is that maybe the problem? I should have installed it elsewhere? I just followed that guy's instructions all happy and smiling thinking it was going smooth. Guess I was wrong about that.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  11. #23
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Oh yeah the ini path is C:\server\php with the ini file in the php folder
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  12. #24
    New Coder
    Join Date
    Nov 2011
    Posts
    88
    Thanks
    4
    Thanked 26 Times in 26 Posts
    Your Apache http.conf file say's

    Code:
    #LoadModule php5_module "C:/server/php/php5apache2_2.dll"
    #PHPIniDir "C:/server/php"
    Does C:/server/php/php5apache2_2.dll exist?
    Does C:/server/php/php.ini exist?

  13. Users who have thanked leslie.jones for this post:

    zigvab75 (03-03-2012)

  14. #25
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Yes, both of those exist. Does the "#" need to be there or should I take them out? If I'm understanding what you posted earlier they need not be there so the PhP can work.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  15. #26
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Oh wait, remember, I said when I installed PHP, the path to it is C:\server\php. Originally, when I extracted it, the folder path was C:\server\php5xx. I renamed it to php because I was thinking it wouldn't be able to find it if it was php5xx.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  16. #27
    New Coder
    Join Date
    Nov 2011
    Posts
    88
    Thanks
    4
    Thanked 26 Times in 26 Posts
    They are commented out, that's what the # does.

    Tutorials date quickly and it is not unusual for file names, versions and even locations to change.

    There is some ambiguity as to where you've installed PHP. Best thing to do is search for/find php.ini and the .dll file. Watch out for gotcha's like the filename not being exactly the same (different version of PHP etc, upper/lowercase letters etc)

    I don't think there is an issue with the forward slash instead of the backwards slash with Apache on Windows (Linux paths are typically /make/from/forward/slashes whereas Windows C:\uses\the\backslash) - I seem to recall it deals with that without complaining. Don't call me out on that though, check for yourself.

    If you've installed PHP properly, and both files are in the right place, then Apache should start - unless there is some weird Windows policy or permission issue stopping it.

    Which version of Windows are you running?

  17. Users who have thanked leslie.jones for this post:

    zigvab75 (03-03-2012)

  18. #28
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Okay, I'll show you some of the text from that tutorial and maybe you can see what I did wrong.

    First create a New Folder in C:\ and name it as server.
    Start the installation, and follow the onscreen instructions as shown in the screencast.
    The settings for Server Information are given below.

    Apache 2.2.11 Settings
    Choose Custom Installation and specify the install path as C:\server\apache\
    Once Installation is complete, verify the installation by clicking on the Apache Icon in the taskbar, as shown in the screencast. You can also verify your installation of Apache by opening http://localhost/ in your browser.
    Congratulations for a successful installation of Apache. We still have to configure Apache, we will do it in the coming steps


    That part worked fine. The next part is the PHP instructions that I followed.
    Extract PHP package

    Now to install PHP5. Open the zip file & Extract all your files to C:\server\php. Navigate to C:\server\php
    Rename php.ini- file

    Search for the file, php.ini-development and rename it to php.ini
    EDIT php.ini

    Open up php.ini using any text-editor. (Notepad, Wordpad, Preferrably Dreamweaver). There are 2 edits in this file
    Edit 1

    Find extension_dir = "./" and replace it with (Please note the slashes)
    extension_dir = "C:/server/php/ext"
    Edit 2

    Now in the following edit, you just have to uncomment (by removing the “; – semicolon”) from the extension to activate it. So here are the extensions to be uncommented. Search for each one them and remove the semicolon ;
    ;extension=php_gd2.dll

    ;extension=php_mbstring.dll

    ;extension=php_mysql.dll

    ;extension=php_mysqli.dll

    The First extension enables the Image GD library of PHP.
    The Second enables mbstring.
    The Third and forth enables us to use MySQL database.
    Save the php.ini file.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  19. #29
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Ooops, sorry about that. I am running Vista on here.
    And have I not told you that what you mistake for madness is but over-acuteness of the sense? - now, I say, there came to my ears a low, dull, quick sound, such as a watch makes when enveloped in cotton. ~Edgar Allan Poe

  20. #30
    New Coder
    Join Date
    Nov 2011
    Posts
    88
    Thanks
    4
    Thanked 26 Times in 26 Posts
    I've managed to load that page, but as I don't run Windows I can't really comment on it. I do recall that editing httpd.conf was a pain on Vista because it had a habit of opening things read only, meaning the changes were never saved. I'm sure you've dealt with that.

    If you've followed all those instructions to the letter, including putting PHP in the path, restarted the machine as directed then I can't honestly say why it won't start for you. I'm at a loss to do anything else.

    The logs say that the php dll and ini files are not where you say they are. If you open a command prompt on vista and type in:

    Code:
    dir c:\server\php\
    What do you get? (cut and paste here)

    EDIT
    I ran up an old virtual box with Vista, but the files that come with that tutorial and the site itself would not load, or would not complete.
    In the end I went to: http://www.wampserver.com/en/ and downloaded there WAMP package. I installed it in under two minutes and it was up and running with everything. All that was left to do was set up mysql users/passwords. Perhaps if you can't solve things with the the tutorial you are hung up on, try the WAMP package?
    Last edited by leslie.jones; 03-03-2012 at 07:08 PM.

  21. Users who have thanked leslie.jones for this post:

    zigvab75 (03-03-2012)


 
Page 2 of 5 FirstFirst 1234 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •