PHP not running for FOG web management serverHow do I get my files from my Windows machine to my Ubuntu web...

School performs periodic password audits. Is my password compromised?

Replacing tantalum capacitor with ceramic capacitor for Op Amps

An Undercover Army

Convert an array of objects to array of the objects' values

How spaceships determine each other's mass in space?

In the world of The Matrix, what is "popping"?

Is this nominative case or accusative case?

Can a Mexican citizen living in US under DACA drive to Canada?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

What is the meaning of option 'by' in TikZ Intersections

Naming Characters after Friends/Family

Iron deposits mined from under the city

Linear Combination of Atomic Orbitals

Why aren't there more gauls like Obelix?

Create chunks from an array

Does the US political system, in principle, allow for a no-party system?

If nine coins are tossed, what is the probability that the number of heads is even?

Can you run a ground wire from stove directly to ground pole in the ground

Named nets not connected in Eagle board design

I can't die. Who am I?

Is every open circuit a capacitor?

Does the in-code argument passing conventions used on PDP-11's have a name?

Where is the fallacy here?

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?



PHP not running for FOG web management server


How do I get my files from my Windows machine to my Ubuntu web server for development?How do I set up a Tor server?PHP script not executing on Apache serverApache won't start - PHP issues?Why don't my php files work on my Apache2 server?Trying to disable a working site; a2dissite returns 'ERROR: Site [such] does not exist!'PHP Code is not running on my Apache serverZabbix and apache2 confCannot enable pdo_mysql moduleApache web Server cannot Running













1















I am making an imaging server for my computer engineering course.



I have installed Ubuntu Server 12.04 32-bit on the dual processor server, then I upgraded using d-release-upgrade to 14.04.



I then tried to install the fog imaging tools using the provided installfog.sh script. I had already successfully completed the install on a different computer (Ubuntu desktop 14.04 64-bit). After installing onto the desktop you could access the web tools by accessing /fog/management on a web browser. On the desktop the page rendered completely fine.



The last step of installing fog asks you to update the mysql database (IIRC) by logging into the website. Whereas the desktop worked fine, the server does not. Yesterday, when trying to access the website, it would instantly ask you to download a file, as if it were a download link. The file was always a random set of letters capital and lowercase with no file extension. When opened the file was a PHP file. When I looked in htop for any PHP process I could not find one.



This morning, I sudo apt-get purge 'd php5 and a few other php5 packages that the fog install log said it installed, then I reinstalled them. After starting the FOG installation again, I once again came to the last step. This time instead of prompting for a download, it appeared to display a "half-rendered" webpage, with the default FOG blue background and FOG logo, but also with random strings of (what I assume is) PHP code simply strewn around the screen.



I really need this problem fixed but I have never done web server things before. I have totally stumped my instructor in the process.










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Can you provide more info? Logs, screenshots, and the installfog.sh script will be very helpful.

    – Alexandre Teles
    Sep 24 '14 at 2:30













  • Here is a screenshot of the issue... i.imgur.com/e8iP38z.png

    – Hugo K
    Sep 24 '14 at 15:32













  • Can you, please, provide the exit of this command: "sudo apache2ctl -M | sort" Remember to remove the quotes, please.

    – Alexandre Teles
    Sep 24 '14 at 20:17













  • pastebin.com/EeuhyK7v

    – Hugo K
    Sep 25 '14 at 13:55
















1















I am making an imaging server for my computer engineering course.



I have installed Ubuntu Server 12.04 32-bit on the dual processor server, then I upgraded using d-release-upgrade to 14.04.



I then tried to install the fog imaging tools using the provided installfog.sh script. I had already successfully completed the install on a different computer (Ubuntu desktop 14.04 64-bit). After installing onto the desktop you could access the web tools by accessing /fog/management on a web browser. On the desktop the page rendered completely fine.



The last step of installing fog asks you to update the mysql database (IIRC) by logging into the website. Whereas the desktop worked fine, the server does not. Yesterday, when trying to access the website, it would instantly ask you to download a file, as if it were a download link. The file was always a random set of letters capital and lowercase with no file extension. When opened the file was a PHP file. When I looked in htop for any PHP process I could not find one.



This morning, I sudo apt-get purge 'd php5 and a few other php5 packages that the fog install log said it installed, then I reinstalled them. After starting the FOG installation again, I once again came to the last step. This time instead of prompting for a download, it appeared to display a "half-rendered" webpage, with the default FOG blue background and FOG logo, but also with random strings of (what I assume is) PHP code simply strewn around the screen.



I really need this problem fixed but I have never done web server things before. I have totally stumped my instructor in the process.










share|improve this question
















bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Can you provide more info? Logs, screenshots, and the installfog.sh script will be very helpful.

    – Alexandre Teles
    Sep 24 '14 at 2:30













  • Here is a screenshot of the issue... i.imgur.com/e8iP38z.png

    – Hugo K
    Sep 24 '14 at 15:32













  • Can you, please, provide the exit of this command: "sudo apache2ctl -M | sort" Remember to remove the quotes, please.

    – Alexandre Teles
    Sep 24 '14 at 20:17













  • pastebin.com/EeuhyK7v

    – Hugo K
    Sep 25 '14 at 13:55














1












1








1








I am making an imaging server for my computer engineering course.



I have installed Ubuntu Server 12.04 32-bit on the dual processor server, then I upgraded using d-release-upgrade to 14.04.



I then tried to install the fog imaging tools using the provided installfog.sh script. I had already successfully completed the install on a different computer (Ubuntu desktop 14.04 64-bit). After installing onto the desktop you could access the web tools by accessing /fog/management on a web browser. On the desktop the page rendered completely fine.



The last step of installing fog asks you to update the mysql database (IIRC) by logging into the website. Whereas the desktop worked fine, the server does not. Yesterday, when trying to access the website, it would instantly ask you to download a file, as if it were a download link. The file was always a random set of letters capital and lowercase with no file extension. When opened the file was a PHP file. When I looked in htop for any PHP process I could not find one.



This morning, I sudo apt-get purge 'd php5 and a few other php5 packages that the fog install log said it installed, then I reinstalled them. After starting the FOG installation again, I once again came to the last step. This time instead of prompting for a download, it appeared to display a "half-rendered" webpage, with the default FOG blue background and FOG logo, but also with random strings of (what I assume is) PHP code simply strewn around the screen.



I really need this problem fixed but I have never done web server things before. I have totally stumped my instructor in the process.










share|improve this question
















I am making an imaging server for my computer engineering course.



I have installed Ubuntu Server 12.04 32-bit on the dual processor server, then I upgraded using d-release-upgrade to 14.04.



I then tried to install the fog imaging tools using the provided installfog.sh script. I had already successfully completed the install on a different computer (Ubuntu desktop 14.04 64-bit). After installing onto the desktop you could access the web tools by accessing /fog/management on a web browser. On the desktop the page rendered completely fine.



The last step of installing fog asks you to update the mysql database (IIRC) by logging into the website. Whereas the desktop worked fine, the server does not. Yesterday, when trying to access the website, it would instantly ask you to download a file, as if it were a download link. The file was always a random set of letters capital and lowercase with no file extension. When opened the file was a PHP file. When I looked in htop for any PHP process I could not find one.



This morning, I sudo apt-get purge 'd php5 and a few other php5 packages that the fog install log said it installed, then I reinstalled them. After starting the FOG installation again, I once again came to the last step. This time instead of prompting for a download, it appeared to display a "half-rendered" webpage, with the default FOG blue background and FOG logo, but also with random strings of (what I assume is) PHP code simply strewn around the screen.



I really need this problem fixed but I have never done web server things before. I have totally stumped my instructor in the process.







apache2 php fog






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 29 '17 at 6:46









karel

59.9k13129152




59.9k13129152










asked Sep 24 '14 at 2:26









Hugo KHugo K

612




612





bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 16 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Can you provide more info? Logs, screenshots, and the installfog.sh script will be very helpful.

    – Alexandre Teles
    Sep 24 '14 at 2:30













  • Here is a screenshot of the issue... i.imgur.com/e8iP38z.png

    – Hugo K
    Sep 24 '14 at 15:32













  • Can you, please, provide the exit of this command: "sudo apache2ctl -M | sort" Remember to remove the quotes, please.

    – Alexandre Teles
    Sep 24 '14 at 20:17













  • pastebin.com/EeuhyK7v

    – Hugo K
    Sep 25 '14 at 13:55



















  • Can you provide more info? Logs, screenshots, and the installfog.sh script will be very helpful.

    – Alexandre Teles
    Sep 24 '14 at 2:30













  • Here is a screenshot of the issue... i.imgur.com/e8iP38z.png

    – Hugo K
    Sep 24 '14 at 15:32













  • Can you, please, provide the exit of this command: "sudo apache2ctl -M | sort" Remember to remove the quotes, please.

    – Alexandre Teles
    Sep 24 '14 at 20:17













  • pastebin.com/EeuhyK7v

    – Hugo K
    Sep 25 '14 at 13:55

















Can you provide more info? Logs, screenshots, and the installfog.sh script will be very helpful.

– Alexandre Teles
Sep 24 '14 at 2:30







Can you provide more info? Logs, screenshots, and the installfog.sh script will be very helpful.

– Alexandre Teles
Sep 24 '14 at 2:30















Here is a screenshot of the issue... i.imgur.com/e8iP38z.png

– Hugo K
Sep 24 '14 at 15:32







Here is a screenshot of the issue... i.imgur.com/e8iP38z.png

– Hugo K
Sep 24 '14 at 15:32















Can you, please, provide the exit of this command: "sudo apache2ctl -M | sort" Remember to remove the quotes, please.

– Alexandre Teles
Sep 24 '14 at 20:17







Can you, please, provide the exit of this command: "sudo apache2ctl -M | sort" Remember to remove the quotes, please.

– Alexandre Teles
Sep 24 '14 at 20:17















pastebin.com/EeuhyK7v

– Hugo K
Sep 25 '14 at 13:55





pastebin.com/EeuhyK7v

– Hugo K
Sep 25 '14 at 13:55










1 Answer
1






active

oldest

votes


















0














Using the provided information as a base, you don't have PHP installed to run with Apache (as an Apache module). The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this:



sudo apt-get install php5 libapache2-mod-php5
sudo service apache2 restart


This should solve your problem.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f527731%2fphp-not-running-for-fog-web-management-server%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Using the provided information as a base, you don't have PHP installed to run with Apache (as an Apache module). The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this:



    sudo apt-get install php5 libapache2-mod-php5
    sudo service apache2 restart


    This should solve your problem.






    share|improve this answer






























      0














      Using the provided information as a base, you don't have PHP installed to run with Apache (as an Apache module). The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this:



      sudo apt-get install php5 libapache2-mod-php5
      sudo service apache2 restart


      This should solve your problem.






      share|improve this answer




























        0












        0








        0







        Using the provided information as a base, you don't have PHP installed to run with Apache (as an Apache module). The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this:



        sudo apt-get install php5 libapache2-mod-php5
        sudo service apache2 restart


        This should solve your problem.






        share|improve this answer















        Using the provided information as a base, you don't have PHP installed to run with Apache (as an Apache module). The common installation is to use PHP as a module of Apache, what can be easily be achieved using apt-get like this:



        sudo apt-get install php5 libapache2-mod-php5
        sudo service apache2 restart


        This should solve your problem.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 9 '15 at 18:24









        muru

        1




        1










        answered Sep 30 '14 at 10:13









        Alexandre TelesAlexandre Teles

        1,062812




        1,062812






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f527731%2fphp-not-running-for-fog-web-management-server%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

            Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

            Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...