LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2006, 09:52 PM   #1
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
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
 
Old 05-05-2006, 11:12 PM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 05-05-2006, 11:45 PM   #3
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 05-06-2006, 01:36 AM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

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

--Ian
 
Old 05-06-2006, 02:45 AM   #5
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 05-06-2006, 09:20 PM   #6
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cacti Problem mblames Fedora 3 08-20-2007 04:42 AM
Installing icon theme? i have a index.theme and index.desktop, no directions! mr_coffee Linux - Newbie 2 01-25-2006 01:45 PM
DISCUSSION: Impress the Boss with Cacti jeremy LinuxAnswers Discussion 2 01-15-2005 09:04 AM
raxnet cacti madhaquer Slackware 1 11-10-2003 01:33 PM
cacti qmailq.pl script ntwaddel Linux - Software 0 09-09-2003 07:45 PM


All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration