LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-25-2010, 07:38 PM   #1
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Rep: Reputation: 16
Apache Server not running correctly


Ok, I just did a fresh install of ubuntu 9.10 and install apache2 webserver with php5 and mysql, but for some reason I have no idea why but when upload files to the computer running apache2 webserver

http://69.242.228.170/ is the link to the ubuntu system

It's not displaying the website correctly and it's not working on any pc on my network either, but it looks fine in dreamweaver when I was designing it on my laptop.

any help on this would be great

below is a list of all the files and folders in the /var/www path

Code:
root@requiem:/var/www# ls -lh
total 92K
-rwxr-xr-x 1 root root  446 2010-02-25 18:27 bg.gif
-rwxr-xr-x 1 root root 2.3K 2010-02-25 18:27 contact.php
-rwxr-xr-x 1 root root  143 2010-02-25 18:27 content_bg.gif
-rwxr-xr-x 1 root root 2.7K 2010-02-25 18:27 donations.php
drwx------ 2 root root 4.0K 2010-02-25 18:27 files
-rwxr-xr-x 1 root root  31K 2010-02-25 18:27 hope_logo.png
-rwxr-xr-x 1 root root  996 2010-02-25 18:27 hopethrift.php
drwx------ 2 root root 4.0K 2010-02-25 18:27 index-files
drwx------ 2 root root 4.0K 2010-02-25 18:27 index.html-files
-rwxr-xr-x 1 root root 6.0K 2010-02-25 18:28 index.php
-rwxr-xr-x 1 root root 3.5K 2010-02-25 18:27 main.css
-rwxr-xr-x 1 root root 1.3K 2010-02-25 18:27 main-redone.css
-rwxr-xr-x 1 root root 3.4K 2010-02-25 18:27 th.php
-rwxr-xr-x 1 root root  996 2010-02-25 18:27 trinity.php
drwx------ 2 root root 4.0K 2010-02-25 18:27 Videos
root@requiem:/var/www#
 
Old 02-25-2010, 10:06 PM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
You are supposed to put those file in /var/www/html directory instead of /var/www directory..............
or make sure your document root in httpd.conf file is /var/www

Last edited by Sayan Acharjee; 02-25-2010 at 10:14 PM.
 
Old 02-25-2010, 10:28 PM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You've gotta admire someone who posts his ip address and a listing of all the root owned files in his web server.
 
Old 02-25-2010, 10:32 PM   #4
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by sayan_acharjee View Post
You are supposed to put those file in /var/www/html directory instead of /var/www directory..............
or make sure your document root in httpd.conf file is /var/www
Actually default path is /var/www that's how it's setup in the config file
 
Old 02-25-2010, 10:33 PM   #5
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by smoker View Post
You've gotta admire someone who posts his ip address and a listing of all the root owned files in his web server.
Eh, no biggy, I not worried about some dumb ass script kiddie trying to run some exploit against me
 
Old 02-25-2010, 10:42 PM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
I notice you don't have an index.html file, but rather an index.php file. So, perhaps you need to enact php to view it. Maybe installing libapache2-mod-php5 would help (I'm assuming you're using apache2).
 
Old 02-25-2010, 10:46 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by Sargalus
It's not displaying the website correctly and it's not working on any pc on my network either, but it looks fine in dreamweaver when I was designing it on my laptop.
So what is it you see? Any error message?

What do Apache's error logs say?
 
Old 02-25-2010, 11:59 PM   #8
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by anomie View Post
So what is it you see? Any error message?

What do Apache's error logs say?
that's just it, there was no errors, just wasn't displaying the menubar and some other images correctly, I just did a full re-install of Ubuntu I probably screwed something up, so now im going to re-install apache2 with php5

Edit:
Good news everything is working like it should now, thanks everyone for advice and suggestions.

Last edited by Sargalus; 02-26-2010 at 12:44 AM.
 
  


Reply



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
help setting up apache server correctly dramous43 Linux - Server 2 01-22-2010 04:05 PM
apache server getting it up and running jazzmac Linux - Newbie 3 01-23-2006 05:24 PM
Is Web Server Running? Want Apache SBFree Linux - Newbie 6 03-28-2005 10:04 PM
Apache server: Displays site correctly first time, than source on refresh. skidrash Linux - Networking 10 09-29-2004 12:59 PM
Running a web server with Apache? Anth3m Linux - Newbie 4 12-09-2003 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:04 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
Open Source Consulting | Domain Registration