View Full Version : Disable PHP?
agcssautomotive.com
02-02-2007, 08:11 AM
I want to offer websites for car guys. carguy.agcssautomotive.com/username
Basically, I would like to disable PHP for that subdomain, or username(s)... So that I could minimize server load, plus they dont need it.
Of course I could inforce this manually, but it will be nice to be able to turn off something so that it dont work for that domain.
agcssautomotive.com
02-03-2007, 06:37 AM
dump ...............
Not sure what you mean by dump.
Can't you disable .php in the .htaccess?
agcssautomotive.com
02-03-2007, 08:00 AM
bump bump!!!
not dump, that was a typo
I dont know how to do that... Tech support told me I have to mess with php.ini and htaccess, but what to do there, I have no idea.
I'm just guessing here, I have not tried this myself.
In the public_html folder you should find the file php.ini.
try making a copy of that file and putting in in your subdomain directory
in that file, change the line that says:
"engine = On ; Enable the PHP scripting language engine under Apache"
to Off.
From what I understand, you'll need to include a copy of this modified file into all subdirectories where you want this modified behavior.
However, why do you want to turn php off? It's not clear to me how this will reduced server load if you don't have any php code in your pages within that subdomain. On the other hand, if you do have pages that use php, they won't work without the engine enabled.
best o luck
joe
agcssautomotive.com
02-03-2007, 08:58 AM
I want to offer free websites where people can talk about their rides. So I just want them to use static content, and no php.
I want to offer free websites where people can talk about their rides. So I just want them to use static content, and no php.
So, exactly how are people going to be able to "talk" on a static web page? A static web page is just that...it doesn't change. PHP is what allows dynamic content like a web forum or chat session, etc. Without it about the only way you'll be able to change content is FTP or a script running on a different page.
I'm curious about your plan.
joe
agcssautomotive.com
02-03-2007, 10:42 AM
Well, Im having carguy.agcssautomotive.com/username... carguy subdomain is where I want to disable PHP. Users will get a website, FTP access, SSI, CGI-BIN, etc. But no PHP.
All my other subdomains and sites will have PHP enabled.
Sure I could offer PHP, but that will be hurting me and anyone who is on the server.
a) It will take some resources when used.
b) It will compromise my TOS compliance when used improperly.
c) It could be used meliciously.
So all I want to do is disable PHP on that subdomain. Is it possible for just subdomain?
jimwelle
07-20-2008, 04:21 PM
# disable all CGI here
Options -ExecCGI
AddHandler text/html .php
AddHandler text/html .cgi
AddHandler text/html .pl
AddHandler text/html .htm
AddHandler text/html .html
AddHandler text/html .shtml
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.