LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2006, 10:45 PM   #16
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15

Put the first option in like this:

Quote:
# 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 php5_module modules/libphp5.so <---- that one
#
<IfModule !mpm_winnt_module>
The second like this:

Quote:
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 pplication/x-httpd-php .php .phtml <--- that one

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can
 
Old 04-24-2006, 10:48 PM   #17
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by Markness
Put the first option in like this:
That's close but you want to remove the pound sign (#) at the start of the PHP5 line, like this:

# Example:
# LoadModule foo_module modules/mod_foo.so
Loadmodule php5_module modules/libphp5.so

That should load the PHP module when Apache starts.

Peace...
 
Old 04-24-2006, 10:50 PM   #18
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Also, be sure to edit httpd.conf as root so you'll be able to save the changes you make.

Peace...
 
Old 04-24-2006, 11:19 PM   #19
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Ok.

Edited in emacs!

Now, when I go to open the http://localhost/firstprog.php

It asks me to open in default browser or save to disk, like its an actual program or file? It's not displaying the php in the browser. So I guess we solved the problem of displaying the php code, but now this crap is happening :*(
 
Old 04-24-2006, 11:28 PM   #20
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Slow down and take your time. We're almost there.

Change this:

AddType pplication/x-httpd-php .php .phtml <--- that one

to this:

AddType application/x-httpd-php .php .phtml

Then restart Apache and see what happens.

Peace...
 
Old 04-25-2006, 12:47 AM   #21
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Yea. I actually did that right the first time. It just didnt copy correct. Any clue?

PS:

Don't go to bed.
 
Old 04-25-2006, 01:20 AM   #22
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok I won't go to bed yet. Try taking the .phtml off the end, so the AddType is .php alone.

Peace...
 
Old 04-25-2006, 01:35 AM   #23
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Also, check the error_log file to make sure there aren't any errors logged regarding loading of the PHP module.

Peace...
 
Old 04-25-2006, 01:39 AM   #24
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
Still the same thing. This is what my file looks like. Maybe it will help?

Quote:
[mbenoit@cpe-24-195-24-133 conf]$ cat httpd.conf
#
# 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 "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/foo.log".

#
# 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 "/usr/local/apache2"

#
# 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 php5_module modules/libphp5.so
#

<IfModule !mpm_winnt_module>
<IfModule !mpm_netware_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 you@example.com

#
# 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.example.com: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 "/usr/local/apache2/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 "/usr/local/apache2/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
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from 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\"" com bined
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.example.com/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/ "/usr/local/apache2/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>

#
# "/usr/local/apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/usr/local/apache2/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
AddType application/x-httpd-php .php
#
# 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

#
# 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 files that include their own HTTP headers:
#AddHandler send-as-is asis

# For server-parsed imagemap files:
#AddHandler imap-file map

# 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.example.com/subscription_info.html
#

#
# 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>
[mbenoit@cpe-24-195-24-133 conf]$
 
Old 04-25-2006, 02:06 AM   #25
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Ok, have you checked error_log for any PHP module oriented messages?

Can you go to your modules directory and do a directory listing for me:

$ ls -l | grep -i mime

Post the results here.

Here's what I'm thinking: I'm going to bed.

Seriously, you've got the definition of the PHP MIME type defined in the "IfModule mime_module" section and I want to make sure that module has been loaded. I've got PHP4 running in an Apache 2.0 server and you're running PHP5 in a Apache 2.2 server. I don't have my "AddType" for the PHP MIME type inside a "IfModule" block, as you do.

So, if the MIME module isn't being loaded, for whatever reason, that could be causing the problem.

So, post the listing of your "modules" directory. Also, did you compile Apache from source or install a pre-built binary? Can you post the configure commands you typed to build Apache (if you built it) and for PHP5?

I am going to bed soon so try to get back to me quick, if you can.

Thanks...
 
Old 04-25-2006, 02:07 AM   #26
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
will post in the morning. thanks for the help, night!
 
Old 04-25-2006, 06:10 AM   #27
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
The error message I get from the error_log file. Apparently it is php related.

Quote:
[Mon Apr 24 18:01:24 2006] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 24 18:01:24 2006] [notice] Digest: done
[Mon Apr 24 18:01:24 2006] [notice] Apache/2.2.0 (Unix) DAV/2 configured -- resuming normal operations
[Mon Apr 24 18:26:28 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Mon Apr 24 18:59:52 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/firstprog.php
[Mon Apr 24 19:00:36 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/firstprog.php.php
[Mon Apr 24 19:00:40 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/firstprog.php
[Mon Apr 24 20:03:56 2006] [error] [client 127.0.0.1] File does not exist: /usr/local/apache2/htdocs/firstprog
[Mon Apr 24 22:32:36 2006] [notice] caught SIGTERM, shutting down
[Mon Apr 24 23:12:39 2006] [notice] Apache/2.2.0 (Unix) configured -- resuming normal operations
Not too sure what you mean by post the listing of my modules directory. But there's a file in there called httpd.exp and here are the contents of that.

Quote:
#! .
* This file was AUTOGENERATED at build time.
* Please do not edit by hand.
ap_listen_pre_config
ap_setup_listeners
ap_close_listeners
ap_set_listenbacklog
ap_set_listener
ap_set_send_buffer_size
ap_set_receive_buffer_size
ap_mpm_run
ap_graceful_stop_signalled
ap_os_create_privileged_process
ap_mpm_query
ap_register_provider
ap_lookup_provider
ap_list_provider_names
ap_regcomp
ap_regexec
ap_regerror
ap_regfree
ap_get_module_config
ap_set_module_config
ap_set_string_slot
ap_set_int_slot
ap_method_is_limited
ap_set_string_slot_lower
ap_set_flag_slot
ap_set_file_slot
ap_set_deprecated
ap_server_root_relative
ap_add_module
ap_remove_module
ap_add_loaded_module
ap_remove_loaded_module
ap_find_module_name
ap_find_linked_module
ap_pcfg_openfile
ap_pcfg_open_custom
ap_cfg_getline
ap_cfg_getc
ap_cfg_closefile
ap_soak_end_container
ap_build_cont_config
ap_build_config
ap_walk_config
ap_check_cmd_context
ap_single_module_configure
ap_setup_prelinked_modules
ap_show_directives
ap_show_modules
ap_show_mpm
ap_read_config
ap_run_rewrite_args
ap_register_hooks
ap_fixup_virtual_hosts
ap_create_request_config
ap_create_per_dir_config
ap_merge_per_dir_configs
ap_create_conn_config
ap_parse_htaccess
ap_init_virtual_host
ap_process_resource_config
ap_process_config_tree
ap_invoke_handler
ap_find_command
ap_find_command_in_modules
ap_set_config_vectors
ap_hook_header_parser
ap_hook_get_header_parser
ap_run_header_parser
ap_hook_pre_config
ap_hook_get_pre_config
ap_run_pre_config
ap_hook_test_config
ap_hook_get_test_config
ap_run_test_config
ap_hook_post_config
ap_hook_get_post_config
ap_run_post_config
ap_hook_open_logs
ap_hook_get_open_logs
ap_run_open_logs
ap_hook_child_init
ap_hook_get_child_init
ap_run_child_init
ap_hook_handler
ap_hook_get_handler
ap_run_handler
ap_hook_quick_handler
ap_hook_get_quick_handler
ap_run_quick_handler
ap_hook_optional_fn_retrieve
ap_hook_get_optional_fn_retrieve
ap_run_optional_fn_retrieve
ap_process_connection
ap_flush_conn
ap_lingering_close
ap_hook_create_connection
ap_hook_get_create_connection
ap_run_create_connection
ap_hook_pre_connection
ap_hook_get_pre_connection
ap_run_pre_connection
ap_hook_process_connection
ap_hook_get_process_connection
ap_run_process_connection
ap_bucket_eoc_make
ap_bucket_eoc_create
ap_allow_options
ap_allow_overrides
ap_default_type
ap_document_root
ap_get_remote_host
ap_get_remote_logname
ap_construct_url
ap_get_server_name
ap_get_server_port
ap_get_limit_req_body
ap_get_limit_xml_body
ap_custom_response
ap_is_recursion_limit_exceeded
ap_exists_config_define
ap_core_translate
ap_auth_type
ap_auth_name
ap_satisfies
ap_requires
ap_register_request_note
ap_get_request_note
ap_add_per_dir_conf
ap_add_per_url_conf
ap_add_file_conf
ap_limit_section
ap_get_server_protocol
ap_set_server_protocol
ap_hook_get_mgmt_items
ap_hook_get_get_mgmt_items
ap_run_get_mgmt_items
ap_get_server_revision
ap_get_server_version
ap_add_version_component
ap_get_server_built
ap_field_noparam
ap_ht_time
ap_getword
ap_getword_nc
ap_getword_white
ap_getword_white_nc
ap_getword_nulls
ap_getword_nulls_nc
ap_getword_conf
ap_getword_conf_nc
ap_resolve_env
ap_size_list_item
ap_get_list_item
ap_find_list_item
ap_get_token
ap_find_token
ap_find_last_token
ap_is_url
ap_unescape_url
ap_unescape_url_keep2f
ap_no2slash
ap_getparents
ap_escape_path_segment
ap_os_escape_path
ap_escape_html
ap_escape_logitem
ap_escape_errorlog_item
ap_construct_server
ap_escape_shell_cmd
ap_count_dirs
ap_make_dirstr_prefix
ap_make_dirstr_parent
ap_make_full_path
ap_os_is_path_absolute
ap_is_matchexp
ap_strcmp_match
ap_strcasecmp_match
ap_strcasestr
ap_stripprefix
ap_pbase64decode
ap_pbase64encode
ap_pregcomp
ap_pregfree
ap_pregsub
ap_content_type_tolower
ap_str_tolower
ap_ind
ap_rind
ap_escape_quotes
ap_append_pid
ap_is_rdirectory
ap_is_directory
ap_log_assert
ap_psignature
ap_strchr
ap_strchr_c
ap_strrchr
ap_strrchr_c
ap_strstr
ap_strstr_c
ap_open_stderr_log
ap_replace_stderr_log
ap_log_error
ap_log_perror
ap_log_rerror
ap_log_cerror
ap_error_log2stderr
ap_log_pid
ap_read_pid
ap_open_piped_log
ap_close_piped_log
ap_hook_error_log
ap_hook_get_error_log
ap_run_error_log
ap_hook_insert_error_filter
ap_hook_get_insert_error_filter
ap_run_insert_error_filter
ap_get_mime_headers
ap_get_mime_headers_core
ap_finalize_request_protocol
ap_send_error_response
ap_set_content_length
ap_set_keepalive
ap_rationalize_mtime
ap_make_content_type
ap_setup_make_content_type
ap_make_etag
ap_set_etag
ap_set_last_modified
ap_meets_conditions
ap_send_fd
ap_send_mmap
ap_method_register
ap_method_registry_init
ap_make_method_list
ap_copy_method_list
ap_method_in_list
ap_method_list_add
ap_method_list_remove
ap_clear_method_list
ap_set_content_type
ap_rputc
ap_rputs
ap_rwrite
ap_rvputs
ap_vrprintf
ap_rprintf
ap_rflush
ap_index_of_response
ap_get_status_line
ap_setup_client_block
ap_should_client_block
ap_get_client_block
ap_discard_request_body
ap_note_auth_failure
ap_note_basic_auth_failure
ap_note_digest_auth_failure
ap_get_basic_auth_pw
ap_parse_uri
ap_getline
ap_rgetline_core
ap_method_number_of
ap_method_name_of
ap_hook_post_read_request
ap_hook_get_post_read_request
ap_run_post_read_request
ap_hook_log_transaction
ap_hook_get_log_transaction
ap_run_log_transaction
ap_hook_http_scheme
ap_hook_get_http_scheme
ap_run_http_scheme
ap_hook_default_port
ap_hook_get_default_port
ap_run_default_port
ap_bucket_error_make
ap_bucket_error_create
ap_byterange_filter
ap_http_header_filter
ap_content_length_filter
ap_old_write_filter
ap_set_sub_req_protocol
ap_finalize_sub_req_protocol
ap_process_request_internal
ap_sub_req_lookup_uri
ap_sub_req_lookup_file
ap_sub_req_lookup_dirent
ap_sub_req_method_uri
ap_sub_req_output_filter
ap_run_sub_req
ap_destroy_sub_req
ap_internal_redirect
ap_internal_redirect_handler
ap_internal_fast_redirect
ap_some_auth_required
ap_is_initial_req
ap_update_mtime
ap_allow_methods
ap_allow_standard_methods
ap_die
ap_hook_create_request
ap_hook_get_create_request
ap_run_create_request
ap_hook_translate_name
ap_hook_get_translate_name
ap_run_translate_name
ap_hook_map_to_storage
ap_hook_get_map_to_storage
ap_run_map_to_storage
ap_hook_check_user_id
ap_hook_get_check_user_id
ap_run_check_user_id
ap_hook_fixups
ap_hook_get_fixups
ap_run_fixups
ap_hook_type_checker
ap_hook_get_type_checker
ap_run_type_checker
ap_hook_access_checker
ap_hook_get_access_checker
ap_run_access_checker
ap_hook_auth_checker
ap_hook_get_auth_checker
ap_run_auth_checker
ap_hook_insert_filter
ap_hook_get_insert_filter
ap_run_insert_filter
ap_location_walk
ap_directory_walk
ap_file_walk
ap_init_vhost_config
ap_fini_vhost_config
ap_vhost_iterate_given_conn
ap_update_vhost_given_ip
ap_update_vhost_from_headers
ap_matches_request_vhost
ap_uname2id
ap_gname2id
ap_mpm_pod_open
ap_mpm_pod_check
ap_mpm_pod_close
ap_mpm_pod_signal
ap_mpm_pod_killpg
ap_hook_monitor
ap_hook_get_monitor
ap_run_monitor
ap_exists_scoreboard_image
ap_increment_counts
ap_calc_scoreboard_size
ap_create_sb_handle
ap_update_child_status
ap_update_child_status_from_indexes
ap_get_scoreboard_worker
ap_get_scoreboard_process
ap_get_scoreboard_global
ap_get_scoreboard_lb
ap_hook_pre_mpm
ap_hook_get_pre_mpm
ap_run_pre_mpm
ap_get_brigade
ap_pass_brigade
ap_register_input_filter
ap_register_output_filter
ap_register_output_filter_protocol
ap_add_input_filter
ap_add_input_filter_handle
ap_get_input_filter_handle
ap_add_output_filter
ap_add_output_filter_handle
ap_get_output_filter_handle
ap_remove_input_filter
ap_remove_output_filter
ap_save_brigade
ap_filter_flush
ap_fflush
ap_fputstrs
ap_fprintf
ap_filter_protocol
ap_md5
ap_md5_binary
ap_md5contextTo64
ap_md5digest
ap_create_environment
ap_find_path_info
ap_add_cgi_vars
ap_add_common_vars
ap_scan_script_header_err
ap_scan_script_header_err_brigade
ap_scan_script_header_err_strs
ap_scan_script_header_err_core
ap_explode_recent_localtime
ap_explode_recent_gmt
ap_recent_ctime
ap_recent_rfc822_date
ap_xml_parse_input
ap_basic_http_header
ap_send_http_trace
ap_send_http_options
ap_hook_get_suexec_identity
ap_hook_get_get_suexec_identity
ap_run_get_suexec_identity
unixd_setup_child
unixd_pre_config
unixd_set_user
unixd_set_group
unixd_set_rlimit
unixd_set_proc_mutex_perms
unixd_set_global_mutex_perms
unixd_accept
apu_version
apu_version_string
ap_listeners
ap_top_module
ap_prelinked_modules
ap_prelinked_module_symbols
ap_preloaded_modules
ap_loaded_modules
ap_bucket_type_eoc
core_module
ap_subreq_core_filter_handle
ap_core_output_filter_handle
ap_content_length_filter_handle
ap_core_input_filter_handle
ap_server_argv0
ap_server_root
ap_server_pre_read_config
ap_server_post_read_config
ap_server_config_defines
ap_old_write_func
ap_bucket_type_error
ap_scoreboard_image
ap_scoreboard_fname
ap_extended_status
ap_my_generation
ap_conftree
ap_http_input_filter_handle
ap_http_header_filter_handle
ap_chunk_filter_handle
ap_byterange_filter_handle
unixd_config
As for Apache. I'm using the book John Wiley & Sons - Beginning PHP, Apache, MySQL Web Development.

The directions in the appendix are as follows:

1. dl the latest stable version of apache from the apache website.
2. grab the tarball named something along the lines of httpd-2.0.x.tar.gz (I think I have a newer version, but I ammended the rest of the directions to follow where the newer version fit into things)
3. open console, change dir to where it was downloaded
4. extract and change to the dir it created
5. configure source
> ./configure \
> -prefix=usr/local/apache2 \
> -enable-so \
> -enable-mods-shared=max \
> -enable-modules=most

6. compile the source

> make

7. install the server

> make install

8. start the apache daemon

>/usr/local/apache2/bin/apachectl start

add command to start apache to whatever bootscripts you like so server starts everytime you reboot

>echo '/usr/local/apache2/bin/apachectl start
 
Old 04-25-2006, 06:22 AM   #28
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
oeps, far to late (did not see second page)

Last edited by Wim Sturkenboom; 04-25-2006 at 06:23 AM.
 
Old 04-25-2006, 11:00 AM   #29
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by Markness
The error message I get from the error_log file. Apparently it is php related.
Those are basically "File not found" (404) messages, meaning your PHP script can't be located. I think we got past that when you put your test script in /usr/local/apache2/htdocs. The PHP script is still in that directory, right?

Quote:
Not too sure what you mean by post the listing of my modules directory. But there's a file in there called httpd.exp and here are the contents of that.
I meant this:

$ cd /usr/local/apache2/modules
$ ls -l

post the output.

Peace...
 
Old 04-25-2006, 04:25 PM   #30
Markness
Member
 
Registered: Apr 2005
Location: Albany, NY
Distribution: Fedora Core 6
Posts: 85

Original Poster
Rep: Reputation: 15
The file is in there. Still getting the error.

Quote:
[mbenoit@cpe-24-195-24-133 ~]$ cd /usr/local/apache2/modules
[mbenoit@cpe-24-195-24-133 modules]$ ls -l
total 16
-rw-r--r-- 1 root root 8873 Apr 24 18:22 httpd.exp
[mbenoit@cpe-24-195-24-133 modules]$
The output.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hello. Problems with apache, (I believe.) $Linuxnoob Fedora 5 04-09-2006 06:51 PM
Problems with Apache XblueorbX Linux - Software 22 08-13-2005 10:31 AM
apache 1.3 problems Dill Linux - Software 4 09-05-2004 06:01 PM
Apache: Several Problems! overbored Linux - Software 5 08-31-2004 11:01 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-10-2003 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration