The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Stop PHP executing on a (or multiple) sub-domain(s)
Server: Fedora 7 i686 virtuozzo
cPanel 11.24.5-R38506 WHM 11.24.2 - X 3.9 I'm trying to stop PHP from parsing (executing) on sub domains so that I can offer my VIP members a free sub-domain for their portfolio's (I run a GFX-related forum). Is this possible? I don't want it globally disabled for obvious reasons - just for specified sub-domains. Thanks in advance. P.S: It's my own VPS. |
#2
|
||||
|
||||
What you mean by "PHP executing"?
vBulletin don't allow PHP code to be executed in the frontend. The [PHP] bbcode is there just for code highlighting. |
#3
|
|||
|
|||
This isn't forum-related it's server-related. I posted it here because it's "Forum and Server Management" and this comes under server management.
I want to stop PHP from parsing or executing on sub-forums on my server - not my forum. I know I can globally stop PHP - but I just want to stop it on certain sub-forums. I am aware of the BBCodes Woops.. title said sub-forums. Dammit. I've done that so many times on Google searches ;(. Sorry guys. |
#4
|
|||
|
|||
Quote:
Are you using a control panel or manual editing apache? |
#5
|
|||
|
|||
I have a VIP feature which is the ability to have a sub-domain set up for their own personal use - as I explained in the first post.
Of course, I don't want that to be abused in any way so I would like to disable PHP on that sub-domain so that they cannot run PHP scripts on their sub-domain. I am using cPanel and WHM - that is all I am using to run my server. I am hoping there's a configuration option. |
#6
|
|||
|
|||
You try this in a php.ini in their public folder?
engine = Off Then chown to root & chmod the php.ini to 000 so they cant see or access it. |
#7
|
|||
|
|||
I'll try it.
I'm not familiar with chowning, got any idea what command i'd use? Also, would this be in effect only for that sub-forum or throughout everything? EDIT: I created a file named "php.ini" and put in it "engine = Off" and it hasn't worked. |
#8
|
|||
|
|||
chown -h
chown root:root php.ini It should only be in that users sub-domain folder xxxx.xxxxx.xxx/username When apache/php was compiled, was rights given to allow php.ini overwirte by users? |
#9
|
|||
|
|||
The sub-domain is:
../public_html/{sub-domain} which is where I placed the php.ini. I'm not sure if the rights were given - the installation of everything was there before I bought the server. Any way I can check? |
#10
|
|||
|
|||
try a simple php flag like memory_limit and view a phpinfo file from that location and see if it raises the limit, you should have the two columns in phpinfo and the memory limit for the local side should rise, if not you will need to recompile apache/php.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|