473,880 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Smarty gives File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico

I am sure that I am making a simple boneheaded mistake and I would
appreciate your help in spotting in. I have just installed
apache_2.0.53-win32-x86-no_ssl.exe
php-5.0.3-Win32.zip
Smarty-2.6.7.tar.gz
on a system running WindowsXP SP2.

Apache and PHP tested out fine. After adding Smarty, I ran the
following http://localhost/testphp.php

where testphp.php is in C:\Program Files\Apache Group\Apache2\h tdocs
and contains:

<?php
require('C:\php 5\includes\smar ty\libs\Smarty. class.php');
$smarty = new Smarty;
?>

I keep seeing this in the apache error log:

[Tue Feb 22 01:36:28 2005] [notice] Apache/2.0.53 (Win32) configured --
resuming normal operations
[Tue Feb 22 01:36:28 2005] [notice] Server built: Feb 10 2005 06:11:34
[Tue Feb 22 01:36:28 2005] [notice] Parent: Created child process 2528
[Tue Feb 22 01:36:28 2005] [notice] Disabled use of AcceptEx() WinSock2
API
[Tue Feb 22 01:36:28 2005] [notice] Child 2528: Child process is
running
[Tue Feb 22 01:36:28 2005] [notice] Child 2528: Acquired the start
mutex.
[Tue Feb 22 01:36:28 2005] [notice] Child 2528: Starting 250 worker
threads.
[Tue Feb 22 01:36:28 2005] [notice] Child 2528: Listening on port 80.
[Tue Feb 22 01:36:56 2005] [error] [client 127.0.0.1] File does not
exist: C:/Program Files/Apache Group/Apache2/htdocs/favicon.ico
Why is Apache looking in C:/Program Files/Apache Group/Apache2/htdocs/
?

favicon.ico is in path C:\Program Files\Apache
Group\Apache2\m anual\images

My directory structure looks like this:

C:\php5
dev
ext
extras
includes
smarty
cache
configs
demo
libs
misc
templates
templates_c
unit_test
PEAR

C:\Program Files\Apache Group\Apache2>
bin
cgi-bin
conf
error
htdocs
icons
include
lib
logs
manual
modules
proxy

=============== =============== =============== =============== =============== ==
conf.httpd looks like this with comments and some stuff at the end
removed to save space in this post.

# Do NOT add a slash at the end of the directory path.
#
ServerRoot "C:/Program Files/Apache Group/Apache2"

PidFile logs/httpd.pid

Timeout 300

KeepAlive On

MaxKeepAliveReq uests 100

KeepAliveTimeou t 15

<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerC hild 0
</IfModule>
Listen 80
#
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 auth_anon_modul e modules/mod_auth_anon.s o
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_mod ule modules/mod_auth_digest .so
LoadModule autoindex_modul e modules/mod_autoindex.s o
#LoadModule cern_meta_modul e modules/mod_cern_meta.s o
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.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_modu le modules/mod_file_cache. so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.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_modu le modules/mod_log_config. so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_modu le modules/mod_mime_magic. so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_m odule modules/mod_proxy_conne ct.so
#LoadModule proxy_http_modu le modules/mod_proxy_http. so
#LoadModule proxy_ftp_modul e modules/mod_proxy_ftp.s o
LoadModule negotiation_mod ule 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_modul e modules/mod_unique_id.s o
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_modul e modules/mod_usertrack.s o
#LoadModule vhost_alias_mod ule modules/mod_vhost_alias .so
#LoadModule ssl_module modules/mod_ssl.so

# PHP 5 installation:
LoadModule php5_module "c:/php5/php5apache2.dll "
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/php5"
ServerAdmin xxxxx@xxxxxxx
ServerName www.testhost.com:80

#
UseCanonicalNam e Off
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
#
<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
Options Indexes IncludesNOEXEC ExecCGI mULTIvIEWS FollowSymLinks
Order allow,deny
Allow from all

</Directory>

#
UserDir "My Documents/My Website"
DirectoryIndex index.html index.html.var

AccessFileName .htaccess

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

#
TypesConfig conf/mime.types
DefaultType text/plain

<IfModule mod_mime_magic. c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off
ErrorLog logs/error.log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer} i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer} i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog logs/access.log common

ServerTokens Full

ServerSignature Off

Alias /icons/ "C:/Program Files/Apache Group/Apache2/icons/"

<Directory "C:/Program Files/Apache Group/Apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

AliasMatch ^/manual(?:/(?:de|en|es|fr| ja|ko|ru))?(/.*)?$ "C:/Program
Files/Apache Group/Apache2/manual$1"

<Directory "C:/Program Files/Apache Group/Apache2/manual">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all

<Files *.html>
SetHandler type-map
</Files>

SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja |ko|ru)/
prefer-language=$1
RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja |ko|ru)){2,}(/.*)?$
/manual/$1$2
</Directory>

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"

<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort

[sniped a bunch of hopefully not relevant stuff]

=============== =============== =============== =============

php.ini looks like this with comments and some stuff sniped to save
space in this post:

[PHP]

engine = On

; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
zend.ze1_compat ibility_mode = Off

short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision = 14

; Enforce year 2000 compliance (will cause problems with non-compliant
browsers)
y2k_compliance = On

output_bufferin g = 4096

zlib.output_com pression = Off
implicit_flush = Off

unserialize_cal lback_func=

serialize_preci sion = 100

allow_call_time _pass_reference = Off

safe_mode = Off

safe_mode_gid = Off

safe_mode_inclu de_dir =

safe_mode_exec_ dir =

safe_mode_allow ed_env_vars = PHP_

safe_mode_prote cted_env_vars = LD_LIBRARY_PATH
directive is

disable_functio ns =

disable_classes =

; Colors for Syntax Highlighting mode. Anything that's acceptable in
; <font color="??????"> would work.
;highlight.stri ng = #DD0000
;highlight.comm ent = #FF9900
;highlight.keyw ord = #007700
;highlight.bg = #FFFFFF
;highlight.defa ult = #0000BB
;highlight.html = #000000
;
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the
server
; (e.g. by adding its signature to the Web server header). It is no
security
; threat in any way, but it makes it possible to determine whether you
use PHP
; on your server or not.
expose_php = Off
;;;;;;;;;;;;;;; ;;;;
; Resource Limits ;
;;;;;;;;;;;;;;; ;;;;

max_execution_t ime = 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 handling and logging ;
;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;

; error_reporting is a bit-field. Or each number up to get desired
error
; reporting level
; E_ALL - All errors and warnings (doesn't include
E_STRICT)
; E_ERROR - fatal run-time errors
; E_WARNING - run-time warnings (non-fatal errors)
; E_PARSE - compile-time parse errors
; E_NOTICE - run-time notices (these are warnings which often
result
; from a bug in your code, but it's possible that
it was
; intentional (e.g., using an uninitialized
variable and
; relying on the fact it's automatically
initialized to an
; empty string)
; E_STRICT - run-time notices, enable to have PHP suggest
changes
; to your code which will ensure the best
interoperabilit y
; and forward compatibility of your code
; E_CORE_ERROR - fatal errors that occur during PHP's initial
startup
; E_CORE_WARNING - warnings (non-fatal errors) that occur during
PHP's
; initial startup
; E_COMPILE_ERROR - fatal compile-time errors
; E_COMPILE_WARNI NG - compile-time warnings (non-fatal errors)
; E_USER_ERROR - user-generated error message
; E_USER_WARNING - user-generated warning message
; E_USER_NOTICE - user-generated notice message
;
; Examples:
;
; - Show all errors, except for notices and coding standards warnings
;
;error_reportin g = E_ALL & ~E_NOTICE & ~E_STRICT
;
; - Show all errors, except for notices
;
;error_reportin g = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reportin g = E_COMPILE_ERROR |E_ERROR|E_CORE _ERROR
;
; - Show all errors
;
error_reporting = E_ALL

; Print out errors (as a part of the output). For production web
sites,
; you're strongly encouraged to turn this feature off, and use error
logging
; instead (see below). Keeping display_errors enabled on a production
web site
; may reveal security information to end users, such as file paths on
your Web
; server, your database schema or other information.
display_errors = Off

; Even when display_errors is on, errors that occur during PHP's
startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup _errors off, except for when debugging.
display_startup _errors = Off

; Log errors into a log file (server-specific log, stderr, or error_log
(below))
; As stated above, you're strongly advised to use error logging in
place of
; error displaying on production web sites.
log_errors = On

; Set maximum length of log_errors. In error_log information about the
source is
; added. The default is 1024 and 0 allows to not apply any maximum
length at all.
log_errors_max_ len = 1024

; Do not log repeated messages. Repeated errors must occur in same file
on same
; line until ignore_repeated _source is set true.
ignore_repeated _errors = Off

; Ignore source of message when ignoring repeated messages. When this
setting
; is On you will not log errors with repeated messages from different
files or
; sourcelines.
ignore_repeated _source = Off

; If this parameter is set to Off, then memory leaks will not be shown
(on
; stdout or in the log). This has only effect in a debug compile, and
if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On

; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off
[snip]

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gp c = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from
exec(), etc.
magic_quotes_ru ntime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sy base = Off

; Automatically add files before or after any PHP document.
auto_prepend_fi le =
auto_append_fil e =

[snip]

;;;;;;;;;;;;;;; ;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;; ;;;;;;;;;;

; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\pa th2"
;include_path = ".;c:\php5\incl udes\"
include_path = ".;c:\php5\incl udes"

doc_root = "C:\Program Files\Apache Group\Apache2\"

; The directory under which PHP opens the script using /~username used
only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "./"

; Whether or not to enable the dl() function. The dl() function does
NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is
automatically
; disabled on them.
enable_dl = On
[snip]

--Thank you,
--Mike Jr.

Jul 17 '05 #1
2 14174

A favicon can appear in any folder on your site and is normally in the
route. When browsers request your site they often will look for a
favicon in the same page as the requested file -- end of. A favicon
outside of the webroot as nothing to do with your error log.

Jul 17 '05 #2

James wrote:
A favicon can appear in any folder on your site and is normally in the route. When browsers request your site they often will look for a
favicon in the same page as the requested file -- end of. A favicon
outside of the webroot as nothing to do with your error log.


James,
Thank you. Downloading and installing Apache, PHP, Smarty, and MySQL
was my project for the weekend; That and being a father to my three
boys. Since I downloaded a vanilla installation and ran the simplest
of scripts, I was surprised that a favorite icon was requested at all.
I got around the problem by copying favicon.ico from path C:\Program
Files\Apache Group\Apache2\m anual\images to where Smarty was looking
for it and the problem went away. I am still curious why the icon was
being requested at all.

Well, learning something new is why I started all this. There are some
other wrinkles that I am investigating,

[client 127.0.0.1] PHP Parse error: syntax error, unexpected T_STRING
in C:\\Program Files\\Apache Group\\Apache2\ \htdocs\\index. php on line
6

But it's all fun.

--Best regards,
--Mike Jr.

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
6155
by: Tom Lee | last post by:
Hi, I'm new to .NET 2003 compiler. When I tried to compile my program using DEBUG mode, I got the following errors in the C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7 \include\xdebug file as folows. I need help to resolve them ASAP: cl /c /nologo /MDd /W3 /Od /GR /GM /Zi /GX /D "_DEBUG" /D " WIN32" /D "_W INDOWS" /D "_WINDLL" /D "_AFXDLL" /D "_MBCS" /D "_USRDLL" /
0
1042
by: Lester | last post by:
Does the functionality exist within .NET to convert long file names to their DOS equivalent ? i.e. Converting from "C:\Program Files\Microsoft SQL Server\" to "C:\Progra~1\Micros~1\ Thanks LES
1
4343
by: prabhunew2005 | last post by:
Hi I am doing web portal design using PHP. The system has linux os. When i am moving to any of screens, the following error message is written into error log file. File does not exist: /var/www/html/favicon.ico How should i solve this?
1
1755
by: Lastknight | last post by:
hello all, can some bidy suggest me how to code for this problem? how to write a perl program using Apache::Session::File module? regards lastknight..
3
1997
by: Steve Kershaw | last post by:
Hi, I'm trying to install a web site to the test machine and I'm getting an error when I try to run the site. I've traced the problem down to the fact that I don't have the AJAX extensions installed. They need to be installed in the directory C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions \v1.0.61025\ScriptLibrary.
3
8157
by: BASSPU03 | last post by:
Private Sub FilePath_Click() Rem Me! Dim stAppName As String Dim stlink As String stlink = Me! stAppName = "C:\Program Files\Internet Explorer\IEXPLORE.EXE H:\Application\Cables\" + stlink Call Shell(stAppName, 1) End Sub After using the Common Dialog API to store a file name in a field "FilePath," I use the code above to click on FilePath to open the file associated with the file path. The...
2
2309
by: Pat | last post by:
Hi, I have a picture somewhere under 'Program Files' Folder. When I assign ImageURL to a Hyperlink it does nothing. It does not read the picture file. But when I copy that picture to c:\somepicture.jpeg and assign this to imageURL then it works. How can I make it work directly from somefolder under program files. Thanks in advance.
23
13885
by: canabatz | last post by:
can someone please help me set up a loop to wait for a file to be exist? i got a automation program that download a file from my ftp ,proccessing the file and returning back the result as a file! what im doing right now is im puting a sleep(15); to the executed file in my site to wait for the file!! ,the problem is that the proccesing of the file can take 1 second some time ,and some time 3 seconds, i put 15 seconds to be sure the file...
11
42110
by: Abhilash Etikala | last post by:
File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico why i am getting this error??
0
9926
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11093
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10715
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10811
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7951
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5778
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5973
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4192
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3220
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.