php files being taken over by xenforo.

Xarcell

Well-known member
I understand it probably for security reasons, but I keep trying to add just normal php files to the directory where xenForo was installed.

When I go to view the file, it throws out this error: The controller does not define an action called

Very frustrating. How do I fix this?
 
There is a learning curve and it starts with a quick read on MVC.
Try putting your php file in an outside directory.
It's not that php is disabled for security, it is a completely a new method of rendering webpages based on - MVC
 
I cannot put it in an outside directory if my if xf is installed at domain root.

Ok, i just created a new directory and placed it there. That worked.

Thanks.
 
yeah, it works if I create a directory. However if I place that file in a directory such as "library", it throws that error at me. I don't know why.
 
yeah, it works if I create a directory. However if I place that file in a directory such as "library", it throws that error at me. I don't know why.
Any file inside your /library directory can not (and should not) be accessed publicly.
There's a .htaccess file inside that directory which blocks any http requests:

Code:
Order deny,allow
Deny from all
 
Top Bottom