Re: Enable PHP on local Apache2 server

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

 



Am 28.12.2011 15:35, schrieb Dennis Kaptain:

    ------------------------------------------------------------------------
    *De:* Klaus-Peter Schrage <kpschrage@xxxxxx>
    *Para:* Fedora <users@xxxxxxxxxxxxxxxxxxxxxxx>
    *Enviado:* Miércoles, 28 de diciembre, 2011 8:28:44
    *Asunto:* Enable PHP on local Apache2 server

    I have set up a local webserver for testing static html (of which
    I have some basic knowledge) and dynamic html (which is quite new
    to me). After I had set proper permissions on /var/www/ and had
    copied my testfiles to the appropriate locations, httpd worked out
    of the box (i. e. with the original httpd.conf that came with
    Fedora 16). I could run Perl scripts (e. g. a guestbook) in
    cgi-bin, but no PHP scripts. Apache's error log gave:

    (8)Exec format error: exec of '/var/www/cgi-bin/test.php' failed
    Premature end of script headers: test.php

    The script test.php simply calls phpinfo() and works on my hired
    external webspace, so this must be a configuration issue with my
    local webserver. Strange enaugh, I didn't find many clues on
    enabling PHP in the Apache.org documentation and even elsewhere.

    Thanks for any pointers
    Klaus

    -- users mailing list
    users@xxxxxxxxxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxxxxxxxxx>
    To unsubscribe or change subscription options:
    https://admin.fedoraproject.org/mailman/listinfo/users
    Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
    Have a question? Ask away: http://ask.fedoraproject.org




    Try moving the file to /var/www/html/test.php

    DK

Thanks, but than calling /localhost/test.php simply lists the contents of test.php

--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
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