Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Your Distro > Debian Linux Help
Reload this Page apache not displaying my program
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Debian Linux Help Discussions related to Debian GNU/Linux.

Reply
 
Thread Tools Display Modes
Old 09-30-2006   #1 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
apache not displaying my program

when I publish a may program in the directory

/etc/www/

and I try to dispaly my program in the browser it's write me

index.php not found

I don't understand if I mistake to configure the server apache or not.

thanks any helps.


p.s. I've a only machine, not a network.
heba is offline   Reply With Quote
Old 10-01-2006   #2 (permalink)
cburwell
Just Joined!
 
Join Date: Nov 2004
Posts: 48
Quote:
Originally Posted by heba
when I publish a may program in the directory

/etc/www/

and I try to dispaly my program in the browser it's write me

index.php not found

I don't understand if I mistake to configure the server apache or not.

thanks any helps.


p.s. I've a only machine, not a network.
Do you have apache configures to use /etc/www as its document root? Notmally apache wants to use /var/www as it's root.

If you can post your httpd.conf/apache2.conf file. That way we can see if it is your Apache configuration or something else.
__________________
Compaq V2000 Laptop: Ubuntu 6.06
AMD Athlon64: Debian
AMD Athlon 1.3 Desktop: In limbo
Sun Netra X1: Ubuntu Server 6.06
cburwell is offline   Reply With Quote
Old 10-03-2006   #3 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
your're right...

I mistake and I've write /etc/www, instead of /var/www...
I think so I still slept that morning, excuse me again.

my httpd.conf:

Quote:
# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

thanks for your helps,

heba
heba is offline   Reply With Quote
Old 10-03-2006   #4 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
the apache.conf is more long and the sistem don't insert it correctly, I more posts, I apologizes.

my apache2.conf


Quote:
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://www.apache.org/docs/mod/core.html#lockfile>);
# you will save yourself a lot of trouble.

ServerRoot "/etc/apache2"

# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename.

LockFile /var/lock/apache2/accept.lock
# PidFile: The file in which the server should record its process
# identification number when it starts.

PidFile /var/run/apache2.pid

# Timeout: The number of seconds before receives and sends time out.

Timeout 300

# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.

KeepAlive On
heba is offline   Reply With Quote
Old 10-03-2006   #5 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
apache2.conf

[quote]
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers ......... number of server processes to start
# MinSpareServers ...... minimum number of server processes which are kept spare
# MaxSpareServers ...... maximum number of server processes which are kept spare
# MaxClients ........... maximum number of server processes allowed to start
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 20
MaxRequestsPerChild 0
</IfModule>

# pthread MPM
# StartServers ......... initial number of server processes to start
# MaxClients ........... maximum number of server processes allowed to start
# MinSpareThreads ...... minimum number of worker threads which are kept spare
# MaxSpareThreads ...... maximum number of worker threads which are kept spare
# ThreadsPerChild ...... constant number of worker threads in each server process
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial number of worker threads in each server process
# MinSpareThreads ...... minimum number of worker threads which are kept spare
# MaxSpareThreads ...... maximum number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum number of worker threads in each server process
# MaxRequestsPerChild .. maximum number of connections per server process (then
it dies)
<IfModule perchild.c>
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
AcceptMutex fcntl
</IfModule>

User www-data
Group www-data

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combine
d
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
# Global error log.
ErrorLog /var/log/apache2/error.log

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf

# Include generic snippets of statements
Include /etc/apache2/conf.d/[^.#]*

#Let's have some Icons, shall we?
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

# Set up the default error docs.
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can Internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections. We use
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
heba is offline   Reply With Quote
Old 10-03-2006   #6 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
I apologize, but it's all morning I tryed to post all configuration but the browser wirte me that the server to submit the post don't received the package.

I don't succeed to post all configuration, I apologize.

If you say me which part you need, I write it.

Thanks
heba is offline   Reply With Quote
Old 11-24-2006   #7 (permalink)
ram_88
Just Joined!
 
ram_88's Avatar
 
Join Date: Nov 2006
Location: /europe/sr/vojvodina/kishegyes
Posts: 21
Send a message via ICQ to ram_88
Hi!
Your docs root is: "/etc/apache2". Save your .php file there.
If you are using suse change this to "/srv/www/htdocs/".
Send me this part from your httpd.conf file:

Code:
DocumentRoot "/home/httpd/abc"
      ServerName www.openna.com
      ServerAdmin admin@openna.com
      ErrorLog /var/log/httpd/error_log
ram_88 is offline   Reply With Quote
Old 11-25-2006   #8 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
The only part of httpd.conf I've got is this:

Code:
# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
~
any ideas?...
heba is offline   Reply With Quote
Old 08-26-2007   #9 (permalink)
heba
Just Joined!
 
Join Date: Sep 2006
Posts: 14
Quote:
Originally Posted by ram_88 View Post
Send me this part from your httpd.conf file:

Code:
DocumentRoot "/home/httpd/abc"
      ServerName www.openna.com
      ServerAdmin admin@openna.com
      ErrorLog /var/log/httpd/error_log


hi, you're great!

There is'nt this part you're post here.

Thanks, thanks again...
heba is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 03:46 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0