Php Opinion

frikkie6000

Expert Member
Joined
Nov 9, 2010
Messages
1,043
Reaction score
0
So I am installing a php/ my sql application on a win 2008 server

I noticed in the phpinfo file the following:

Configuration File (php.ini) Path: C:\Windows

Loaded Configuration File: C:\Program Files (x86)\PHP\v5.3\php.ini

Is this right never worked with it before ?

Something else as well

Configure Command :

cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--disable-zts" "--disable-isapi" "--disable-nsapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=C:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=C:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze"


How does this look ? I think I stuffed something up along the way site works, db connects but on login I get the following error

HTTP Error 500.0 - Internal Server Error
The page cannot be displayed because an internal server error has occurred.
Detailed Error Information
Module FastCgiModule
Notification ExecuteRequestHandler
Handler PHP53_via_FastCGI
Error Code 0x00000000
Physical Path C:\inetpub\wwwroot\newsletter\index.php
Logon Method Anonymous
Logon User Anonymous


I have double checked user pemissions this just amazes me :(

Any comments would be appreciated
 
Last edited:
is this iis or apache?
is it serving php at all?
when you say "mysql is working", does that mean as a service, or that you're able to connect and run queries via php?
 
is this iis or apache?
is it serving php at all?
when you say "mysql is working", does that mean as a service, or that you're able to connect and run queries via php?

IIS 7

The landing page is php and it serves it to give you a idea

I browse the site type in the login details and in firebug I can see it going but then just boom it hits out

Login makes use of a cookie

On my sql side this is software that runs a installation similiar to joomla installation wizard it tests the connection and then writes about 350 entries to the db all of this was successful, the only thing I could not get right was mod rewrite and installled IIS URL rewrite via the web installer

In navicat I can connect to the db as well and all looks well

Also on the page is a registration form, I register the welcome mail is sent out but it then gets a 500 internal server error again


My .htaccess

DirectoryIndex index.php

ErrorDocument 404 /error.php?code=404
ErrorDocument 400 /error.php?code=400
ErrorDocument 401 /error.php?code=401
ErrorDocument 402 /error.php?code=402
ErrorDocument 403 /error.php?code=403
ErrorDocument 404 /error.php?code=404
ErrorDocument 405 /error.php?code=405
ErrorDocument 406 /error.php?code=406
ErrorDocument 407 /error.php?code=407
ErrorDocument 408 /error.php?code=408
ErrorDocument 409 /error.php?code=409
ErrorDocument 410 /error.php?code=410
ErrorDocument 411 /error.php?code=411
ErrorDocument 412 /error.php?code=412
ErrorDocument 413 /error.php?code=413
ErrorDocument 414 /error.php?code=414
ErrorDocument 415 /error.php?code=415
ErrorDocument 416 /error.php?code=416
ErrorDocument 417 /error.php?code=417

RedirectMatch (.*)/include/(.*).xml$ "$1/error.php?code=404"
RedirectMatch (.*)/include/([^kcaptcha].*).php$ "$1/error.php?code=404"
RedirectMatch (.*)/files/(.*).php$ "$1/error.php?code=404"
RedirectMatch (.*)/languages/(.*).php$ "$1/error.php?code=404"
RedirectMatch (.*)/templates_c/(.*).php$ "$1/error.php?code=404"
RedirectMatch (.*)/templates/(.*).tpl$ "$1/error.php?code=404"


RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(update)
RewriteRule templates/images/counter-(.*)-(.*)-(.*)-(.*).jpg$ ./counter.php?sel=$1&rid=$2&id_subscr=$3&id_moder=$4 [QSA]

php_value error_reporting 0

Options -Indexes
 
Last edited:
hmm. looks like there's something screwy in your fcgi install or php install on iis.
do you have to use this box?
why can't you just resell mailchimp or campaignmonitor?
 
hmm. looks like there's something screwy in your fcgi install or php install on iis.
do you have to use this box?
why can't you just resell mailchimp or campaignmonitor?

Yeah I think so too hey I have to use this machine though

So badly want to use mailchimp the problem is they have order about 150 custom html 5 templates for this software so yeah .... so sad actually

Here is my php error dumb as
[17-Apr-2012 12:15:47 UTC] PHP Notice: Undefined variable: amount in C:\inetpub\wwwroot\newsletter\registration.php on line 133
[17-Apr-2012 12:15:51 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:15:51 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:15:51 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:37:30 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:37:30 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:37:30 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:44:32 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:44:32 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:44:32 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:44:42 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:44:42 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:44:42 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:44:46 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:44:46 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:44:46 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:45:02 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:45:02 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:45:02 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:59:05 UTC] PHP Notice: Uninitialized string offset: 0 in C:\inetpub\wwwroot\newsletter\common.php on line 130
[17-Apr-2012 12:59:05 UTC] PHP Notice: Uninitialized string offset: 0 in C:\inetpub\wwwroot\newsletter\common.php on line 148
[17-Apr-2012 12:59:05 UTC] PHP Notice: Uninitialized string offset: 0 in C:\inetpub\wwwroot\newsletter\common.php on line 148
[17-Apr-2012 12:59:05 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:59:05 UTC] PHP Notice: Uninitialized string offset: 0 in C:\inetpub\wwwroot\newsletter\index.php on line 37
[17-Apr-2012 12:59:05 UTC] PHP Notice: Uninitialized string offset: 0 in C:\inetpub\wwwroot\newsletter\index.php on line 37
[17-Apr-2012 12:59:23 UTC] PHP Notice: Only variable references should be returned by reference in C:\inetpub\wwwroot\newsletter\adodb\adodb.inc.php on line 446
[17-Apr-2012 12:59:23 UTC] PHP Notice: Trying to get property of non-object in C:\inetpub\wwwroot\newsletter\index.php on line 247
[17-Apr-2012 12:59:23 UTC] PHP Fatal error: Call to a member function GetRowAssoc() on a non-object in C:\inetpub\wwwroot\newsletter\index.php on line 248
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 122
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 123
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 124
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 125
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 126
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 122
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 123
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 124
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 125
[17-Apr-2012 12:59:31 UTC] PHP Notice: Undefined variable: file_name in C:\inetpub\wwwroot\newsletter\registration.php on line 126

I think just gonna hit uninstall and reinstall all and lets see :)

On a side note My SQL 5.1 is quite stable ?
 
IIS 7
My .htaccess

/snip

Options -Indexes

i normally get a 500 when i've stuffed something up on .htaccess in apache.
iirc htaccess redirect directives aren't completely transposable with iis7 rewrite module.
that htaccess is ultimately written for apache, and if iis is trying to suck the rewrite stuff out of it, you may have found your problem.
try turning off the rewrite module. if that doesn't break anything, and you still want pretty urls, you're going to need to go through the iis rewrite module documentation.
 
i normally get a 500 when i've stuffed something up on .htaccess in apache.
iirc htaccess redirect directives aren't completely transposable with iis7 rewrite module.
that htaccess is ultimately written for apache, and if iis is trying to suck the rewrite stuff out of it, you may have found your problem.
try turning off the rewrite module. if that doesn't break anything, and you still want pretty urls, you're going to need to go through the iis rewrite module documentation.

Too be honest I just want it to work thats all :) dont really care how the url's look :) Giving it a bash now
 
Yeah I think so too hey I have to use this machine though
/snip
I think just gonna hit uninstall and reinstall all and lets see :)

On a side note My SQL 5.1 is quite stable ?

i don't think php is the culprit here, so you may have some non-critical syntax errors, but that's about it.
i'd uninstall and reinstall, but i'd disable url rewriting in case the software thinks it should still be trying to use it.
haven't had any mysql 5.1 issues, but i don't really use it much with iis.
 
i don't think php is the culprit here, so you may have some non-critical syntax errors, but that's about it.
i'd uninstall and reinstall, but i'd disable url rewriting in case the software thinks it should still be trying to use it.
haven't had any mysql 5.1 issues, but i don't really use it much with iis.

Thanks alot for the help :D Gonna try this now
 
Top
Sign up to the MyBroadband newsletter
X