Re: [OT] Apache/PHP question or resource

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/15/16 09:50, Rick Stevens wrote:

> 1. Are you sure the code you got from the guy is installed in the
> document root for your Apache (check the "DocumentRoot" directive in
> your Apache config file) and that the files including the document root
> directory itself are all readable by Apache (the default is that Apache
> runs as user "apache", group "apache").

Yes, the Document Root is /var/www/html and the files are there owned by apache:apache and
all references in the files to other files are relative.
>
> 2. You may be using the default index directive which only uses
> "index.html" as the substitute for a directory listing.
>
> a. Edit your httpd.conf file. Assuming a normal, repo-based install,
> this will be the "/etc/httpd/conf/httpd.conf" file.
>
> b. You'll probably find a default section like:
>
>     <IfModule dir_module>
>         DirectoryIndex index.html
>     </IfModule>
>
> in it. If you do, then change that second line to read something like:
>
>         DirectoryIndex index.html index.htm index.php
>
> This causes the system to look for one of those three files if someone
> requests a directory listing, e.g. "http://your.server.com/"; and serves
> it up in place of a directory listing.
>
> c. Save the file.

I added that...

>
> d. Verify you have mod_dir.so:
>
>     ls /usr/lib[64]/httpd/modules/mod_dir.so
>
> (obviously, use "/usr/lib" on 32-bit, "/usr/lib64" on 64-bit).

I have that...
>
> e. If you have all of that stuff, restart Apache and try to access the
> top level again:
>
>     http://localhost

I've always been able to access the top level.

As I pondered why http://localhost/index.php?action=contact shows that in my browser but
http://localhost/index.php is served up....but if I change the name to
http://localhost/index-X.php I get what I would expect with the
http://localhost/index.php?action=contact URL  I wonder if my version of PHP is
incompatible with the very used on the guy's working server.

Thanks for you help and suggestions to this point.  Not sure it is worth the time to
continue banging my head without visiting the working server.


-- 
You're Welcome Zachary Quinto
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://lists.fedoraproject.org/admin/lists/users@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux