YoungManRiver
IS-IT--Management
Apache config file reads
and PHP.ini reads:
What I'm getting is apache running and Firefox asking to save any .PHP file I try to invoke from the browser under localhost.
What do I need to change?
I noticed, when I download the 5.1.3 installer that it goes into the windows registry but tries to config for IIS, but the 5.1.4 is only a .zip file, which is a simple extract, but does not register the program with windows.
How do I correct this?
YMR
Code:
# Section 1: Global Environment
ServerRoot "D:/Program Files/Apache/Apache2"
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<ifModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
Listen 80
ServerName davisoftlocal:80
ServerAdmin admin@davisoftaec.com
# Section 2: 'Main' server configuration
DirectoryIndex index.htm index.html index.html.var index.shtml index.php index.phml index.cfm index.cfml
DocumentRoot "D:/Program Files/Apache/Apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
UserDir "E:/MyPath"
LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.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 negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so
HostnameLookups on
ErrorLog logs/error.log
LogLevel warn
ScriptAlias /cgi-bin/ "D:/Program Files/Apache/Apache2/cgi-bin/"
# ScriptAlias /php/ "D:/Program Files/PHP/"
<Directory "/">
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "D:/Program Files/Apache/Apache2/htdocs">
Options FollowSymLinks Indexes
Allow from all
Order allow,deny
AllowOverride None
</Directory>
<Directory "D:/Program Files/Apache/Apache2/cgi-bin">
Options None
Allow from all
Order allow,deny
AllowOverride None
</Directory>
<Directory "D:/Program Files/PHP">
Options
Allow from all
Order allow,deny
AllowOverride None
</Directory>
<Directory "E:/Nyles/HTML Files/New Home">
Options All
Allow from All
Order Allow,Deny
</Directory>
<Directory "E:/MyPath">
Options All
Allow from All
Order Allow,Deny
</Directory>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName davisoft.home.com
DocumentRoot "E:\MyPath"
<Directory "E:\MyPath\New Home">
Order allow,deny
allow from all
</Directory>
ServerAdmin "admin@davisoftaec.com"
ErrorLog "logs/davisoft-error_log"
CustomLog logs/davisoft-access_log common
</VirtualHost>
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>
<IfModule mod_ssl.c>
#
# Bring in additional module-specific configurations
Include "conf/ssl.conf"
</IfModule>
LoadModule php5_module "D:/Program Files/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/Program Files/PHP"
and PHP.ini reads:
Code:
[PHP]
engine = On
zend.ze1_compatibility_mode = Off
short_open_tag = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
serialize_precision = 100
allow_call_time_pass_reference = Off
safe_mode = Off
;open_basedir =
expose_php = On
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL ; display all errors, warnings and notices
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
register_globals = Off
register_long_arrays = On
register_argc_argv = On
auto_globals_jit = On
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
include_path = ".;D:\Program Files\PHP\includes"
doc_root = "D:/Program Files/Apache/Apache2/htdocs"
user_dir =
extension_dir = "./"
enable_dl = On
file_uploads = On
upload_max_filesize = 2M
allow_url_fopen = On
; Default timeout for socket based streams (seconds)
default_socket_timeout = 60
extension=ext/php_mysql.dll
What I'm getting is apache running and Firefox asking to save any .PHP file I try to invoke from the browser under localhost.
What do I need to change?
I noticed, when I download the 5.1.3 installer that it goes into the windows registry but tries to config for IIS, but the 5.1.4 is only a .zip file, which is a simple extract, but does not register the program with windows.
How do I correct this?
YMR