Help - Search - Members - Calendar
Full Version: what did you do to php?
Hostony Board > General Support > General Support
artrocity
I have a variety of websites that just stopped working today.
Scripts that have worked and have been untouched for a year.

What changes did hostony do to php to stopp these from working?

Two of the sites I was able to fix by removing a php_value setting in my .htacess
but I am uncertain what the third problem could be.

It would be nice to know what changes you made to make my debugging easier.

It would be EVEN NICER to know IN ADVANCE of any changes that are made to the system.

It sounds like something similiar happen here on another server and you just blew the customer off with NO EXPLANATION.
http://forum.hostony.com/index.php?showtopic=4005

Please enlight us on what changes you are making.
artrocity
Well I discovered what you did to php.

https://panel.dreamhost.com/kbase/index.cgi?area=2933

What's the difference between PHP-CGI and PHP as an Apache module?

There are two ways you can choose to have your PHP executed at DreamHost. The default is as a regular CGI. This is by far the preferred method. The benefits of running PHP-CGI are:

* It is more secure. The PHP runs as your user rather than dhapache. That means you can put your database passwords in a file readable only by you and your php scripts can still access it!
* It is more flexible. Because of security concerns when running PHP as an Apache module (which means it runs as our dhapache user), we have disabled a number of commands with the non-CGI PHP. This will cause installation problems with certain popular PHP scripts (such as Gallery) if you choose to run PHP not as a CGI!
* It's just as fast as running PHP as an Apache module, and we include more default libraries.

There are a FEW VERY MINOR drawbacks to running PHP-CGI. They are:

* Custom 404 pages won't work for .php files with PHP-CGI. Or will they? See n74's comment below!
* Variables in the URL won't work without using mod_rewrite (example.com/blah.php/username/info/variable).
* Custom php directives in .htaccess files (php_include_dir /home/user;/home/user/example_dir) won't work.
* The $_SERVER['SCRIPT_NAME'] variable will return the php.cgi binary rather than the name of your script

If one of those is a show-stopper for you, you can easily switch to running PHP as an Apache module and not CGI, but be prepared for a bunch of potential security and ease-of-use issues! If you don't know what any of these drawbacks mean, you're fine just using the default setting of PHP-CGI and not worrying about anything!
artrocity
This doesnt help my problem though.
I have a web site down and with 15000+ URLs in google
that are NOT resolving anymore.

WHY do you make changes to something as CORE as PHP
without giving your customers a heads up?

mad.gif mad.gif mad.gif mad.gif mad.gif mad.gif mad.gif
Lehrer
artrocity, the main goal for making changes in php was to counteract spammers' activity
and increasing security level in general. It will now be easier to find out who is sending spam.
artrocity
great I'm all for that.

Seems like thats something you'd be glad to announce to all your customers. rolleyes.gif

Like ...

Here at Hostony we are being proactive in combatting spammers and will institute the following changes ....


Meanwhile , I still have a domain thats useless
15,000 urls that all say
No input file specified.

http://www.google.com/search?q=+site:dmoz....coff=1&filter=0


Any Clues...
It worked so well before ....
Lehrer

WHY do you make changes to something as CORE as PHP
without giving your customers a heads up?




P.S. I'd like to make an official apology, we should have warned you, but this update is done subsequently on different servers. Sorry again sad.gif
Lehrer
Arttocity, this was done about a week ago and we had no complaints about it. The problem can be fixed by editing .htaccess files.
artrocity
QUOTE(Lehrer @ May 23 2005, 07:58 PM)
Arttocity, this was done about a week ago and we had no complaints about it. The problem can be fixed by editing .htaccess files.
*


From AWSTATs

16 May 2005 102 960 963 14.32 MB
17 May 2005 111 196 196 2.69 MB
18 May 2005 124 4351 4351 43.14 MB
19 May 2005 107 5601 5601 58.67 MB
20 May 2005 101 4738 4738 53.28 MB
21 May 2005 3 6 6 61.01 KB
22 May 2005 6 6 8 48.35 KB
23 May 2005 0 0 0 0
24 May 2005 0 0 0 0

Im guessing it happened on Saturday on this machine. rolleyes.gif

I cant figure out what's wrong with it...
Can someone at support take a look at it?
dmoz.artrocity.com
Lehrer

...I cant figure out what's wrong with it...
Can someone at support take a look at it?
dmoz.artrocity.com



Sure, we are already working on it
smokie
I had problems see my earlier posts, (from 14th on) it stopped some of my scripts working, nothing critical, my problem was they changed servers/DNS, the php module became cgi instead.
Also caused other problems the move did, like no mail, sites some how reverting back to old DNS, thankfully the guys have sorted things out now biggrin.gif
Smokie
No awstats this morning sad.gif
Lehrer
smokiebum,
I have upgraded awstats for your domain. BTW, the problem with php is going to be fixed this weekend.
artrocity
QUOTE(Lehrer @ May 25 2005, 08:42 AM)
smokiebum,
I have upgraded awstats for your domain. BTW, the problem with php is going to be fixed this weekend.
*


Ummm... by fixed what do you exactly mean? blink.gif
Is it reverting back to the way it was?
Or will the config of php-cgi change yet again ?

It would be nice to know as I spent alot of time this week
getting my scripts that were broke by this change
working again.

I dont want to have to do revert back or even worse go a totally different direction.
Especially since i will be away from the computer on this holiday weekend
and dont want my sites DOWN for 3 days because of some incompatibily with
the changes you are going to make.

So can you please let your customerbase know EXACTLY what you
plan on doing to *fix* this ?
Lehrer
artrocity, we are not going to revert to the old version. We'll keep PHP+SuExec.
artrocity
QUOTE(Lehrer @ May 25 2005, 03:08 PM)
artrocity, we are not going to revert to the old version. We'll keep PHP+SuExec.
*

This doesnt really answer my question though...

Can you please let your customerbase know EXACTLY what you
plan on doing to *fix* this ?



Plus i find it *amusing* that you have to FIX something that
"was done about a week ago and we had no complaints about it"
Lehrer
artrocity, excuse me, but I am not going to tell here how exactly we deal with fixing problems. I repeat, we really had no complaints about php upgrade, on the contrary. Please excuse me my sincerity.This weekend the problem with "no input file specified" will vanish.
artrocity
thanks for looking into this.

I had got the page script working again on TUES Night
by approaching the rewrite differently.

The original rules were like...
RewriteRule ^OpenDMOZ(.*)/(.*).html index.php/$1/$2.html

basically just replacing index.php w the openDMOZ
this worked for a year and generated the 15,000+ links in google.

but the new php did not like that so
I changed the script and the rules so that index.php now takes a variable
RewriteRule ^OpenDMOZ(.*) index.php?c=$1


thanks again ...
MartinB
QUOTE(artrocity @ May 27 2005, 09:02 AM)
thanks for looking into this.

I had got the page script working again on TUES Night
by approaching the rewrite differently.

The original rules were like...
RewriteRule ^OpenDMOZ(.*)/(.*).html index.php/$1/$2.html

basically just replacing index.php w the openDMOZ
this worked for a year and generated the 15,000+ links in google.

but the new php did not like that so
I changed the script and the rules so that index.php now takes a variable
RewriteRule ^OpenDMOZ(.*) index.php?c=$1
thanks again ...
*



you get 15000+ links in google to your domain using DWodp live ?
artrocity
QUOTE(mblendinger @ May 27 2005, 08:42 AM)
you get 15000+ links in google to your domain using DWodp live ?
*

Yep Dwop live and mod-rewrite
Thats why i was *concerned* about keeping those links alive...

site:dmoz.artrocity.com "dmoz.artrocity.com"
http://www.google.com/search?q=+site:dmoz....coff=1&filter=0

Generates a little google money dayin dayout
not enough to retire on tongue.gif
but every bit helps
MartinB
Interesting...

money? VERY interesting.... i think i will try it wink.gifwink.gifwink.gif

(coming soon... http://dmoz.wizhosting.com/ biggrin.gif )
MartinB
(hum....is this a "Legal" practice ? ph34r.gif )
artrocity
QUOTE(mblendinger @ May 27 2005, 02:37 PM)
(hum....is this a "Legal" practice ?  ph34r.gif  )
*

http://www.dominion-web.com/products/dwodp_live/
DWodp live makes use of Netscape's Open Directory which is free to use so long you follow their license.

http://dmoz.org/become_an_editor/
Open Directory Attribution
The following attribution HTML must be included on all web pages that use Open Directory content, as described in the Open Directory license.

Thats it... Free... Open source
Just give credit where credit is due...
Lehrer
thanks for looking into this.


You are welcome, artrocity. We have also upgraded Zend Optimizer on the server to the latest version.
MartinB
So, Artrocity, is a .htaccess with:

CODE
RewriteRule ^OpenDMOZ(.*) index.php?c=$1


and nothing more?

Greetings smile.gif
you can give a look to http://dmoz.wizhosting.com/ wink.gif
artrocity
QUOTE(mblendinger @ May 30 2005, 08:17 AM)
So, Artrocity, is a .htaccess with:

CODE
RewriteRule ^OpenDMOZ(.*) index.php?c=$1


and nothing more?

Greetings  smile.gif
you can give a look to http://dmoz.wizhosting.com/ wink.gif
*


I knew you'd ask this... rolleyes.gif
There are always TWO parts of rewrtiting urls in a script.
1) .htaccess Rewrite Rules
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^OpenDMOZ$ index.php
RewriteRule ^OpenDMOZ(.*) index.php?c=$1

2) changing the script to write the Search engine friendly urls.
I think there are 4 places in the script they need to be modified.

$html = str_replace ("index.php?c=", "OpenDMOZ", $html);
$finalhtml = $MainHeader . $html . $MainFooter;
echo $finalhtml;

and one just like it for the var $breadcrumb

Now I made one more mod to the script that helps w/ the SE
I put a var in the <HEAD> tags.

see http://dmoz.artrocity.com/OpenDMOZ/Health/...n-Toxic_Living/
and look at the <HEAD> and <keywords>
I leave that as an exercise to the student !
laugh.gif
MartinB
biggrin.gif biggrin.gif biggrin.gif biggrin.gif

Thank you very much for spent your time in me, I think now i have all parts of the puzzle wink.gif
MartinB
All done smile.gif

Thanks again, I have made a "Thanks to artrocity.com" link to your site in my footer.
greetings.

Maybe now i will get a little best results in google for wizhosting dry.gif rolleyes.gif
artrocity
thanks for the acknowledgement!

Plus I see you got the keywords and <head> variables set.
NICE !!!

You get an A for the Day !!!
laugh.gif

Glad I could help...
MartinB
wink.gif
ser_pros
laugh.gif biggrin.gif rolleyes.gif wink.gif
peteT
QUOTE(Lehrer @ May 26 2005, 05:30 PM)
I repeat, we really had no complaints about php upgrade, on the contrary. Please excuse me my sincerity.This weekend the problem with "no input file specified" will vanish.
*
dingfelder
From what I gather, DWodp gives you an open directory on your site.

I understand you could get increased google activity from using it, since your links increase, but how do you make money off using it?

Cheers,

Andy
artrocity
QUOTE(dingfelder @ Jun 6 2005, 07:05 PM)
I understand you could get increased google activity from using it, since your links increase, but how do you make money off using it?
*
Simple.
the 15,000+ links in google give me 15,000 extra chances someone will click
on a google adsense ad.biggrin.gif

For example see this link.
http://dmoz.artrocity.com/OpenDMOZ/Health/...nd_Medications/
Click on one of those top links in the pale green box.
Thank you! You just made me a nickel !!:rolleyes:
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here