LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to check sever configuration (http://www.linuxquestions.org/questions/linux-server-73/how-to-check-sever-configuration-607367/)

zoffmann 12-17-2007 10:38 AM

how to check sever configuration
 
I know that my ISP use Apache 1.03 for storing our webpages.

It seems that the server is not configured to use php. (phpinfo(); doesn't work)

So I want to upload some html (or similar) document which will check how the server is configured. How do I do that ?

Why I am asking this question and not calling directly my ISP's support - because they will ask me what the webserver is.

Thanks in advance.

:)

poonippi 12-17-2007 04:15 PM

Put this into your editor of choice:

---cut-here---
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>
---cut-here---

Save as phpinfo.php then upload to your pulic html directory.

chrism01 12-17-2007 07:01 PM

"Why I am asking this question and not calling directly my ISP's support - because they will ask me what the webserver is."
And that's a problem because ????

zoffmann 12-18-2007 02:16 AM

The code above didn't worked:


<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>




to Chris - I haven't opportunity to ask on some other place for this problem - isn't it obvious ?

I just wanted to explain why I am asking such a question, people who work at my ISP's support are not very capable to answer such a question.

Is it now clear?

poonippi 12-18-2007 04:30 AM

Quote:

Originally Posted by zoffmann (Post 2994342)
The code above didn't worked:


<?php

// Show all information, defaults to INFO_ALL
phpinfo();

// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);

?>


The code does work, I just tried it. Perhaps your ISP have phpinfo() blocked, that would not be so uncommon.

What do you want to know about your ISP PHP settings? Surely they have a technical support team you can email?

mohtech 12-18-2007 05:56 AM

If phpinfo() is blocked...
 
try a "Hello world" script something simple
<?php
echo "hello world";
?>

save as hello.php and see if that works, if not, then php is most likely not configured.

I have only used Apache 2.2 and I know you can easily install a mod_php5 module to make it work.
I assume that it is similar with Apache 1.3 but I don't know the particulars.

zoffmann 12-18-2007 06:07 AM

Code:

<?php
echo "hello world";
?>

Nope, it doesn't work. Php is not configured and I don't have possibility to add a module :=(.

poonippi 12-18-2007 02:05 PM

Surely you can contact your ISP and query their PHP config. If they can't do that then I would suggest hosting else where. I use positive-internet.com, open-source web-host ;-) OR make your own server :-P

zoffmann 12-18-2007 03:18 PM

I have sent mail to them but no answer.

I have to accept that I can only have .html pages on their server, and if I want php then I have to go somewhere else.

But thanks for your help guys.

chrism01 12-18-2007 06:26 PM

I wasn't trying to be rude, it's just that it's the ISP's job to know what they've got. I used to work for one.
As poonippi said, if they can't answer a simple qn like that, I strongly recommend you move, it'll be nothing but grief in the long run if you don't.
Remember, you can host anywhere in the world, it doesn't have to be with your ISP.

mohtech 12-18-2007 07:13 PM

If you are shopping around for ISPs, I use...
 
Siteground.com For ~$7.00 a month, you get 750 GB of storage, PHP, Mysql and a lot of Open Source software packages (Joomla! and Moodle to name a few)

I like the value, and I have hosted from them for years, However, they're help desk is a bit clunky for my taste.

Thats what I have, and even though people can offer their own opinions about particular ISPs, know that you deserve better than how yours is treating you. If they don't value your money enough to provide the services you want, you are free to take your money to someone who does.

Shop around :)

zoffmann 12-19-2007 05:41 AM

I am not from USA.

But how do I renew my subscription when the subscription time is gone.

Do they send some kind of email to me?

chrism01 12-19-2007 06:12 PM

You must have a copy of the orig ctc somewhere, it'll tell you all that stuff.
A lot of western country ISP's insist on CC or bank details, so they can automatically keep on billing you and you have to cancel the arrangement if you DON'T want to continue.
Where are you & your ISP?

zoffmann 12-19-2007 08:03 PM

I live in sweden.

poonippi 12-20-2007 04:47 PM

I have a server that I would not mind you hosting on, for free. Email me at jon at whiteheat dot org dot uk to discuss details if your interested ;-)


All times are GMT -5. The time now is 04:41 PM.