PHP not turned on within /frontend/ ?

Dotcoms

Active Member
Dec 17, 2001
25
0
301
I have a small problem running php apps within the /usr/local/cpanel/base/frontend/ directory, specifically php is not turned on it seems, as when installing some other additional themes that use php, they do not work.. i tried simple php scripts within /frontend/ and they confirm that php isn't working.

PHP is executing just fine everywhere else.

How is php enabled within the cpanel theme directory /frontend/?
Never had this problem before, any assist would be appreciated.
 

Dotcoms

Active Member
Dec 17, 2001
25
0
301
Yeah I'm still stuck with this.... php is working fine as long as you view pages in /frontend/ via port 80 - I put a symlink to a php script that was located within my theme directory and it worked.. only when viewing using cpanel ports, php doesn't work...

Anyone?
 

Dotcoms

Active Member
Dec 17, 2001
25
0
301
yes, they are in the theme directory... /usr/local/cpanel/base/frontend/theme/fantastico/ - fantastico is the theme that we are trying to get working.. it works fine on other servers.. just not this one and it's definitely php thats turned off somehow when viewing with cpanel.....
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
They yield

# ls -l /usr/local/cpanel/cpanelphp
-rwxr-xr-x 1 root root 1020 Mar 6 2002 /usr/local/cpanel/cpanelphp*
# ls -l /var/cpanel/usecpphp
-rw-r--r-- 1 root root 0 Nov 22 00:26 /var/cpanel/usecpphp
 

joana

Well-Known Member
Sep 29, 2001
103
0
316
Oh, hopefully we can get a solution soon.. ticket to Cpanel support has been met with ignorance..
 

Dotcoms

Active Member
Dec 17, 2001
25
0
301
I actually found that that /tmp had the incorrect permissions.. don't know how that occurred on that server but it did :)
 

joana

Well-Known Member
Sep 29, 2001
103
0
316
[quote:51fb346b39][i:51fb346b39]Originally posted by Dotcoms[/i:51fb346b39]

I actually found that that /tmp had the incorrect permissions.. don't know how that occurred on that server but it did :)[/quote:51fb346b39]

Had the same exactly.. changing permissions did the trick.
 

joana

Well-Known Member
Sep 29, 2001
103
0
316
[quote:cb20bbe3c6][i:cb20bbe3c6]Originally posted by moronhead[/i:cb20bbe3c6]

What were the correct permissions?[/quote:cb20bbe3c6]

1777
 

[email protected]

Well-Known Member
Mar 5, 2002
487
0
316
Los Angeles California
How do we access the '/base/3rdparty/yourscript/whatever.php'
from a page on the cpanel theme?

Whenever I include a PHP file from the theme it will report the following error.

Fatal error: Failed opening required 'english.php' (include_path='/usr/local/cpanel/3rdparty/lib/php/') in /tmp/cpanel.dinnex.1056143880.30923 on line 3

Originally posted by Juanra
Inside frontend directory in particular I think nothing works.
Have you tried to store them inside a theme directory, or as /base/3rdparty/yourscript/whatever.php?
cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

rbmatt

Well-Known Member
Oct 21, 2002
211
0
166
You will have to use the full path b/c of how the wrapper works.

cPanel.net Support Ticket Number:
 

Chase

Well-Known Member
Mar 19, 2003
93
0
166
PHP:
<? include = "/usr/local/cpanel/base/frontend/CPanelXP5/english.php"; ?>
cPanel.net Support Ticket Number: