LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cacti giving me its own index (https://www.linuxquestions.org/questions/linux-newbie-8/cacti-giving-me-its-own-index-442068/)

dragunu 05-05-2006 09:52 PM

Cacti giving me its own index
 
first of all id like to apologise for my newbie question but i have installed cacti and when i do the http://myserver/cacti im getting the index of the /cacti directory and not the login screen. what might the problem be?

I am running cacti on linux fedora core 3 and i have php4 installed and ofcourse i have a cronjob going on pointing towards the cacti directory.

thanks

IBall 05-05-2006 11:12 PM

It sounds like a PHP problem. Make sure that php4 is either being loaded as an apache module, or is compiled into apache. If PHP is running, you should be able to create a file in /var/www called php.php, with the following in it:
Code:

<HTML>
<?php echo phpinfo(); ?>
</HTML>

If you go to that page, you should get some information about your system, and some php statistics.

I hope this helps
--Ian

dragunu 05-05-2006 11:45 PM

thanks for ur reply. but how do i run thr php.php file since i havent created any virtual hosting on the apache and the apache main root is in /usr/local/apache2/htdocs ? how am i going to view the file?

thanks a lot

IBall 05-06-2006 01:36 AM

Just go to http://localhost/php.php in your favourite web browser.

--Ian

dragunu 05-06-2006 02:45 AM

i have put php.php in /var/www/ but when i go to the webbrowser and type php.php it gives me file not found error.

thx again for ur reply

IBall 05-06-2006 09:20 PM

Another alternative is to create a directory in your home directory called public_html, and then put php.php in there. You should be able to access it with http://localhost/~yourUserName.

This is what you should see. (NB: I have apache on a non-standard port, but that won't make any difference).

--Ian


All times are GMT -5. The time now is 01:27 AM.