Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

where do web documents go in apache w/ mandrake 10

Posted on 2004-09-15
8
Medium Priority
?
277 Views
Last Modified: 2010-03-04
hi,

i've just installed mandrake 10 and have installed apache with the install. I now seem to have a site up and running, i dialed up and took my ip address and on another computer saw the same screen that is in localhost on my linux box. so i feel like i've got it started, one simple question?

Where do i put my web docs so I can look at my website?
right now i have a cdrom with all of my files i've tried cp /mnt/cdrom/* /home/username
and cp /mnt/cdrom/* (somethingw/)/httpd  sorry can't be more specific, i'm terribly new to linux.
i understand that i'm on dialup and my ip will change. later i will have dsl
this should work for a while: http://4.240.30.123/  that is my linux box and the default page
thanks.
0
Comment
Question by:solodiver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 4

Expert Comment

by:Kaarthick
ID: 12071862
See to that if you are having a directory named manual-2.0 or manual-1.3 inside apache's directory , if so then extract your documents in these directory depending upon your version of the document
0
 

Author Comment

by:solodiver
ID: 12071899
say i'm in root. what should i type to get into apache's directory and then the manual-x.x  ?
0
 

Author Comment

by:solodiver
ID: 12071908
also how do i get apache to accept index.php as the default doc to open?

example say i go into my http://ip.xx.x.x/  and don't specify the exact index.php after it?

why won't my install of apache bring up index.php by default.

thanks,

mike
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 

Author Comment

by:solodiver
ID: 12071910
example: http://4.240.30.123/  brings up the mandrake default page

and http://4.240.30.123/index.php brings u my site..

ty
0
 
LVL 4

Expert Comment

by:Kaarthick
ID: 12071911
First use the locate command to find where is the Apache directory, from there you can navigate into that particular document directory,

usage of locate command: locate apache

to be more apt, please do a search for manual-2.0 and manual-1.3 directories from root
0
 

Author Comment

by:solodiver
ID: 12072253
ok i seem to have found two ways of adding files to the site. /var/www/html   and /usr/share/doc/apache2-manual-2.0.48

i rm'd index.html but still the doc comes up index.html (that was while in /usr/share/doc/apache2-manual-2.0)

i rm'd index.html but that file didn't exist in /var/www/html

so i:  locate manual-1.3 and it just carriage returns to a root prompt and does nothing.

so thot maybe i can rename it so i tried:
[root@localhost root]# cd /var/www/html
[root@localhost html]# mv index.html
mv: missing file argument
Try `mv --help' for more information.
[root@localhost html]# mv index.html index.old
mv: cannot stat `index.html': No such file or directory


then i tried : [root@localhost root]# cd /var/www/html
[root@localhost html]# mv index.html index.old
mv: cannot stat `index.html': No such file or directory

i'm sure i'm doing something wrong that most newbies do...
thanks for your patience..

_mike_h      

0
 
LVL 4

Accepted Solution

by:
Kaarthick earned 1500 total points
ID: 12072272
Are you able to access the documents now from the URL you've mentioned?

Why do u want to remove the index.html file.?
0
 

Author Comment

by:solodiver
ID: 12072327
yes i can access the documents but one in particular is missing index.html. that file is the default apache "your service is running" page and i wan t my page index.php to be the index file that loads by default. yet i am unable to delete or really even find this elusive index.html file. i would think that it would have to be in the /var/www/html dir or the /usr/share/doc/apache2-manual-2.0.48 dir. but when i shell over to those directories i am unable to affect or even locate index.html. i tried to rename index.html and no luck.

_m_h

ps. next answer i will just accept you've been so helpful to this point, thanks.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question