Find the answer to your Linux question:
Results 1 to 9 of 9
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 ...
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16

    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.

  2. #2
    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.

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16
    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:

    # 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

  4. #4
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16
    the apache.conf is more long and the sistem don't insert it correctly, I more posts, I apologizes.

    my apache2.conf


    # 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

  5. #5
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16
    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

  6. #6
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16
    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

  7. #7
    Just Joined! ram_88's Avatar
    Join Date
    Nov 2006
    Location
    /europe/sr/vojvodina/kishegyes
    Posts
    21
    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

  8. #8
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16
    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?...

  9. #9
    Just Joined!
    Join Date
    Sep 2006
    Posts
    16
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •