bert

Well-Known Member
Aug 21, 2001
602
0
316
Cretu,

There are no errors in the code, the code is as simple as this:

&? phpinfo(); ?&

That is all that you will find inside the phpinfo.php file. I assure you that any phpinfo.php file you install will show the same. I would recommend you to contact your host for support on this.
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
Some Cpanel installations will have the PHP config taken from the delusions.cpanel.net system and will show up that name in phpinfo().

Regards,

Norman
 

Noldar

Well-Known Member
Jun 26, 2002
64
0
156
Ponchatoula, LA
I'm seeing the same incorrect phpinfo on my server also. My guess is that Cpanel has it's own installation of apache with it's own php module, so what is being displayed is the phpinfo for Cpanel rather than what's installed for the main webserver.

Richard
 
O

ozzi4648

Guest
The two php info output is very annoying. After modifying my Xskin and added php info as an option to display php info i was surprised to find the output to be that of delusions.cpanel.net not of my system. To get around that i created a link to my site http://mydomain.com/phpinfo.php that displays the correct config values for everyone. I also considered placing a copy of phpinfo in my cpanel3-skel to be rolled out to each users site upon site creation then all i would have to do is place a link to http://DOMAIN/phpinfo.php. Then all the user would have to do is lick on phpinfo in their panel to access the file on their own site however the following problem arises. If they are resellers how will the phpinfo file be rolled out to their own sites? You could place a copy into the resellers cpanel-skel directory but that again is another step.
 
O

ozzi4648

Guest
[quote:f753fe164d][i:f753fe164d]Originally posted by bert[/i:f753fe164d]

Cretu,

There are no errors in the code, the code is as simple as this:

&? phpinfo(); ?&

That is all that you will find inside the phpinfo.php file. I assure you that any phpinfo.php file you install will show the same. I would recommend you to contact your host for support on this.[/quote:f753fe164d]

You mentioned a few messages back the php displays delusions.cpanel.net because thats the name of the server. I can assure you that the name of my server is not delusions.cpanel.net yet php info will show that and incorrect php info. As a matter of fact phpinfo is a mod i made to v 1.3, i have not upgraded to v1.4 yet. See my msg above on how i handled the proper output of phpinfo from my v 1.3 Xskin panel. YOu can see how i modified my skin, see demo http://demo:[email protected]:2082/ Note additions: Bandwidth available, bandwidth max, nameserver output, php info, Max subdomains allowed, Max mysql db's allowed, last reboot.
 
O

ozzi4648

Guest
[quote:3a0dfdd6b6][i:3a0dfdd6b6]Originally posted by dgbaker[/i:3a0dfdd6b6]

Correct! See http://forums.cpanel.net/read.php?TID=6238
[/quote:3a0dfdd6b6]

Can you show us how you included HEADER and FOOTER around you phpinfo? I tried inserting into phpinfo but it displayed a blank page.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
This what the phpinfo.php looks like;

&cpanel setvar=&headerimg=images/tools.gif&&

&cpanel include=&stdheader.html&&
&?php phpinfo(); ?&

&cpanel include=&stdfooter.html&&

This is using a modified Xskin. But would be the same under Xskin.
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
[quote:a92a76b108][i:a92a76b108]Originally posted by ozzi4648[/i:a92a76b108]

The two php info output is very annoying. After modifying my Xskin and added php info as an option to display php info i was surprised to find the output to be that of delusions.cpanel.net not of my system. To get around that i created a link to my site http://mydomain.com/phpinfo.php that displays the correct config values for everyone. I also considered placing a copy of phpinfo in my cpanel3-skel to be rolled out to each users site upon site creation then all i would have to do is place a link to http://DOMAIN/phpinfo.php. Then all the user would have to do is lick on phpinfo in their panel to access the file on their own site however the following problem arises. If they are resellers how will the phpinfo file be rolled out to their own sites? You could place a copy into the resellers cpanel-skel directory but that again is another step.[/quote:a92a76b108]


I did not realize that the output of phpinfo would be different when being read from port 2082.

Instead of adding phpinfo.php to the cpanel3-skel directory, all you have to do is add the file phpinfo.php to the root location of your server:
/usr/local/apache/htdocs

Then, simply change the link for phpinfo.php in cpanelX to the following:
&a href=&http://&cpanel hostname=&&&/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&

The &cpanel hostname=&&& variable will then be replaced by your server's hostname. This is much easier and you don't have to copy phpinfo.php into every user's directory, which I think is just a nuisance to customers.
 
O

ozzi4648

Guest
[quote:f90c7bb7a9][i:f90c7bb7a9]Originally posted by bert[/i:f90c7bb7a9]

[quote:f90c7bb7a9][i:f90c7bb7a9]Originally posted by ozzi4648[/i:f90c7bb7a9]

The two php info output is very annoying. After modifying my Xskin and added php info as an option to display php info i was surprised to find the output to be that of delusions.cpanel.net not of my system. To get around that i created a link to my site http://mydomain.com/phpinfo.php that displays the correct config values for everyone. I also considered placing a copy of phpinfo in my cpanel3-skel to be rolled out to each users site upon site creation then all i would have to do is place a link to http://DOMAIN/phpinfo.php. Then all the user would have to do is lick on phpinfo in their panel to access the file on their own site however the following problem arises. If they are resellers how will the phpinfo file be rolled out to their own sites? You could place a copy into the resellers cpanel-skel directory but that again is another step.[/quote:f90c7bb7a9]


I did not realize that the output of phpinfo would be different when being read from port 2082.

Instead of adding phpinfo.php to the cpanel3-skel directory, all you have to do is add the file phpinfo.php to the root location of your server:
/usr/local/apache/htdocs

Then, simply change the link for phpinfo.php in cpanelX to the following:
&a href=&http://&cpanel hostname=&&&/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&

The &cpanel hostname=&&& variable will then be replaced by your server's hostname. This is much easier and you don't have to copy phpinfo.php into every user's directory, which I think is just a nuisance to customers.[/quote:f90c7bb7a9]

Eeek! the following resulted in the following clickable option

/phpinfo.php&
target=&_blank&&4.2.3

in my panel.

&a href=&http://&srv08.primenet.cc=&&&/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&

is what i entered.

So i played around with it and this is what worked:

&a href=&http://srv08.primenet.cc/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&
 
O

ozzi4648

Guest
With this going out to htdocs how would we place the header and footer around the output?
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
Entering
&a href=&http://srv08.primenet.cc/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&
is fine, but if you have more than one server you will have to edit the index.html file one each cpanelX skin for each server.


If you use:

&a href=&http://&cpanel hostname=&&&/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&
it should work, it works with all our servers.

Note that you don't enter &srv08.primenet.cc=&&& you enter &cpanel hostname=&&&

Cpanel will then generate the actual hostname for the machine. When you do it this way, you can just copy your theme across multiple servers without having to modify files.

As for the header and footer, it can be done, but it is not worth the hassle.
 
O

ozzi4648

Guest
[quote:e842c8b9b1][i:e842c8b9b1]Originally posted by bert[/i:e842c8b9b1]

Entering
&a href=&http://srv08.primenet.cc/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&
is fine, but if you have more than one server you will have to edit the index.html file one each cpanelX skin for each server.


If you use:

&a href=&http://&cpanel hostname=&&&/phpinfo.php& target=&_blank&&&cpanel Serverinfo=&phpversion()&&&/a&
it should work, it works with all our servers.

Note that you don't enter &srv08.primenet.cc=&&& you enter &cpanel hostname=&&&

Cpanel will then generate the actual hostname for the machine. When you do it this way, you can just copy your theme across multiple servers without having to modify files.

As for the header and footer, it can be done, but it is not worth the hassle.[/quote:e842c8b9b1]

Yes that also work, now how do i get the header and footer to show up if the file is in htdocs? Is there a way. Tried setting the patch to the files but no show.

Thanks Bert!
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
ozzi - you can get the files to use (modified to work) from me at
http://server10.virtual-hosting.ca/stdheader.html
http://server10.virtual-hosting.ca/stdfooter.html

In the phpinfo.php add (remove extra space between & & ? )
& ?php
include (&stdheader.html&);
? &
& ?php phpinfo(); ?&
& ?php
include (&stdfooter.html&);
? &

You also need to copy the cpanelX directory from the Xskin theme as well to the location.
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
Thanks dgbaker. Your solution certainly works.

I just think that this is though too much trouble just to show a header/footer. After all, you can just call the phpinfo.php file in another window.
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
I will admit that it did take a bit to to get worked out. Man you right strict code ;)

Bert, maybe an extra sideline for you, offering Xskin look and feel code outside of cpanel. Someone could have their entire site based on your theme.
 

bert

Well-Known Member
Aug 21, 2001
602
0
316
[quote:b7ecf3b727][i:b7ecf3b727]Originally posted by dgbaker[/i:b7ecf3b727]

Bert, maybe an extra sideline for you, offering Xskin look and feel code outside of cpanel. Someone could have their entire site based on your theme.

[/quote:b7ecf3b727]

Could you elaborate a little bit on this? Are you saying that I should allow people to use the Xskin theme outside cPanel?

Let me know ;)
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,576
9
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
No no, I'm not saying you should allow anything, but in the case where needing to present info to the client outside of Cpanel, like the phpinfo. It would be nice to maintain the look and feel to the client.

As I am not a developer, I'm not sure whether it is viable or not, it was more of a thought from a nice to have point of view.

:) :) :)