|
| cannot configure project and php properly | |
Joined: 21 Oct 2008 |
Posts: 3 |
|
|
|
Posted: Mon Oct 20, 2008 5:13 pm |
|
|
|
|
|
Hi
I am using PHPED for the first time. I removed my previous installation(came with zend) and installed PHPED which comes with php (4) .
Previously when I saw no settings where made to my IIS mappings so I did them(application mapping , enviornment variables) I have php on D:\software\phped\php .
I have registered_globals enabled in my php.ini...but doesn't reflect here. But the folder mapping is correct at my end.
Apart form It I am facing the URL like :
http://localhost:8080/file:/C:/Inetpub/wwwroot/legacy
why don't I get the one directly mapped to localhost.
Infact project runs only when i set my connection settings to thes url.
I can't figure out whats wrong.
If specified the above url things run fine in PHPED server but on some page it gives:
Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Inetpub\wwwroot\legacy\catalog\includes\classes\email.php
Plese let me know. I am screwed to get the things done.
Any help to make the things run smooth will be appreciated.
Pasted below is php info results.
Thanks
SJ
=================================================
System Windows NT B 5.1 build 2600
Build Date May 4 2007 13:29:21
Server API ISAPI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety enabled
Registered PHP Streams php, http, ftp, compress.zlib
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting no value no value
expose_php On On
extension_dir c:\php4 c:\php4
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .;c:\php4\pear .;c:\php4\pear
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time -1 -1
open_basedir no value no value
output_buffering 0 0
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv On On
register_globals Off Off
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path no value no value
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order no value no value
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
CONTENT_LENGTH 0
PATH_TRANSLATED C:\Inetpub\wwwroot\legacy\info.php
REMOTE_ADDR 127.0.0.1
REMOTE_HOST 127.0.0.1
REQUEST_METHOD GET
SERVER_NAME localhost
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/5.1
APPL_MD_PATH /LM/W3SVC/1/Root/legacy
APPL_PHYSICAL_PATH C:\Inetpub\wwwroot\legacy\
INSTANCE_ID 1
INSTANCE_META_PATH /LM/W3SVC/1
URL /legacy/info.php
ALL_HTTP HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_CONNECTION:keep-alive HTTP_HOST:localhost HTTP_USER_AGENT:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 HTTP_ACCEPT_ENCODING:gzip,deflate HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_KEEP_ALIVE:300
HTTPS off
SCRIPT_NAME /legacy/info.php
SERVER_PORT_SECURE 0
ALLUSERSPROFILE C:\Documents and Settings\All Users
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME B
ComSpec C:\WINDOWS\system32\cmd.exe
FP_NO_HOST_CHECK NO
INCLUDE E:\vsnet2003installed\SDK\v1.1\include\
LIB E:\vsnet2003installed\SDK\v1.1\Lib\
NUMBER_OF_PROCESSORS 2
OS Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program File;D:\software\phped\php\;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PHPRC~ D:\software\phped\php
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 15 Stepping 13, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0f0d
ProgramFiles C:\Program Files
SystemDrive C:
SystemRoot C:\WINDOWS
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERPROFILE C:\Documents and Settings\Default User
VS71COMNTOOLS E:\vsnet2003installed\Common7\Tools\
VS90COMNTOOLS c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
windir C:\WINDOWS
_SERVER["ALL_HTTP"] HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_CONNECTION:keep-alive HTTP_HOST:localhost HTTP_USER_AGENT:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 HTTP_ACCEPT_ENCODING:gzip,deflate HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_KEEP_ALIVE:300
_SERVER["HTTPS"] off
_SERVER["SCRIPT_NAME"] /legacy/info.php
_SERVER["HTTP_COOKIE"] no value
_SERVER["AUTH_PASSWORD"] no value
_SERVER["AUTH_TYPE"] no value
_SERVER["AUTH_USER"] no value
_SERVER["CONTENT_LENGTH"] 0
_SERVER["CONTENT_TYPE"] no value
_SERVER["PATH_TRANSLATED"] c:\\inetpub\\wwwroot
_SERVER["QUERY_STRING"] no value
_SERVER["REMOTE_ADDR"] 127.0.0.1
_SERVER["REMOTE_HOST"] 127.0.0.1
_SERVER["REMOTE_USER"] no value
_SERVER["REQUEST_METHOD"] GET
_SERVER["SERVER_NAME"] localhost
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.1
_SERVER["APPL_MD_PATH"] /LM/W3SVC/1/Root/legacy
_SERVER["APPL_PHYSICAL_PATH"] C:\\Inetpub\\wwwroot\\legacy\\
_SERVER["INSTANCE_ID"] 1
_SERVER["INSTANCE_META_PATH"] /LM/W3SVC/1
_SERVER["LOGON_USER"] no value
_SERVER["REQUEST_URI"] /legacy/info.php
_SERVER["URL"] /legacy/info.php
_SERVER["SCRIPT_FILENAME"] C:\\Inetpub\\wwwroot\\legacy\\info.php
_SERVER["ORIG_PATH_INFO"] /legacy/info.php
_SERVER["PATH_INFO"] no value
_SERVER["ORIG_PATH_TRANSLATED"] C:\\Inetpub\\wwwroot\\legacy\\info.php
_SERVER["DOCUMENT_ROOT"] c:\\inetpub\\wwwroot
_SERVER["PHP_SELF"] /legacy/info.php
_SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_HOST"] localhost
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
_ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
_ENV["COMPUTERNAME"] B
_ENV["ComSpec"] C:\\WINDOWS\\system32\\cmd.exe
_ENV["FP_NO_HOST_CHECK"] NO
_ENV["INCLUDE"] E:\\vsnet2003installed\\SDK\\v1.1\\include\\
_ENV["LIB"] E:\\vsnet2003installed\\SDK\\v1.1\\Lib\\
_ENV["NUMBER_OF_PROCESSORS"] 2
_ENV["OS"] Windows_NT
_ENV["Path"] C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin;C:\\Program Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C:\\Program File;D:\\software\\phped\\php\\;
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PHPRC~"] D:\\software\\phped\\php
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 15 Stepping 13, GenuineIntel
_ENV["PROCESSOR_LEVEL"] 6
_ENV["PROCESSOR_REVISION"] 0f0d
_ENV["ProgramFiles"] C:\\Program Files
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\\WINDOWS
_ENV["TEMP"] C:\\WINDOWS\\TEMP
_ENV["TMP"] C:\\WINDOWS\\TEMP
_ENV["USERPROFILE"] C:\\Documents and Settings\\Default User
_ENV["VS71COMNTOOLS"] E:\\vsnet2003installed\\Common7\\Tools\\
_ENV["VS90COMNTOOLS"] c:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\Tools\\
_ENV["windir"] C:\\WINDOWS
==================================================================
|
|
|
| | |
Veteran
Joined: 06 Jun 2007 |
Posts: 289 |
Location: Vancouver, Canada |
|
|
Posted: Thu Oct 23, 2008 1:19 pm |
|
|
|
|
|
Quote: | http://localhost:8080/file:/C:/Inetpub/wwwroot/legacy |
This URL (with port 8080) suggests that you are using the built-in SRV web server. If you wish to use IIS instead, then edit your project properties and set the run mode to HTTP mode (3rd party WEB server).
Quote: | Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Inetpub\wwwroot\legacy\catalog\includes\classes\email.php |
I doubt if this is a PhpED problem; it is more likely a PHP script error. Are you perhaps running Windows Vista with IIS7? Earlier versions of IIS included an SMTP service (for sending email), but IIS7 does not. To be able to send email with IIS7, you have to install an SMTP server yourself.
Hope the above helps a bit
|
_________________
|
|
| | |
|
| | |
Veteran
Joined: 06 Jun 2007 |
Posts: 289 |
Location: Vancouver, Canada |
|
|
Posted: Wed Oct 29, 2008 1:32 am |
|
|
|
|
|
My DBG Wizard output is pretty much the same as yours for the most part:
* Shows client IP address as 127.0.0.1
* Shows server IP address as undefined
However, an important difference is that my output is showing the path to php.ini. I agree with you that this is likely the root of the problem. I suggest you do a phpinfo(), and check the output for the true location of php.ini:
Once you have that figured out, you will be on your way (I do not not know why your registry settings are not working). If even phpinfo() does not report a path to php.ini, then I suggest you try by putting a php.ini in C:\Windows and in your PHP install directory. One of the two is bound to work
|
_________________
|
|
| | |
Joined: 21 Oct 2008 |
Posts: 3 |
|
|
|
Posted: Wed Oct 29, 2008 2:06 pm |
|
|
|
|
|
Thanks !
I have put my file in windows directory and restarted the server. Things did not seems to work.
Then after haggling for hours I restarted the system...and it recognized the php.ini path.
Some times it drives you crazzzy!
SJ
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT - 5 Hours
Page 1 of 1
|
|
|
| |