Forum Replies Created

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter cchildspi

    (@cchildspi)

    Someone on the Raspberry forum told me to try this and IT FINALLY WORKED!

    Tried as suggested:

    sudo a2dismod mpm_event
    sudo a2enmod php7.0
    sudo systemctl restart apache2

    Don’t know what all that means, but I’m glad it worked

    Thread Starter cchildspi

    (@cchildspi)

    Tried it:
    ERROR: Module php does not exist!

    Thread Starter cchildspi

    (@cchildspi)

    trying it now…thanks

    Thread Starter cchildspi

    (@cchildspi)

    Anyone know what this means:

    The first item for mods available does indeed show php7.0.conf and php7.0.load
    The second item for mods available:
    When I typed in ls /etc/apache2/mods-enabled/ | grep php, it just moved to the next command line. So I proceeded with sudo a2enmod php7.0 and it gave me the following results:

    Considering dependency mpm_prefork for php7.0:
    Considering conflict mpm_event for mpm_prefork:
    ERROR: Module mpm_event is enable – cannot proceed due to conflicts. It need to be disable first!
    Considering conflict mpm_worker for mpm_prefork:
    ERROR: Could not enable dependency mpm_prefork for php7.0, aborting

    Thread Starter cchildspi

    (@cchildspi)

    William, I have copied your advice for when I try to continue. Just for kicks and giggles, I completely started over on my original sd card. I uninstalled everything (Apache2, MySQL, PHP, WordPress) and reinstalled to try again. I’m still getting the actual .php code instead of the content. It bothers me that I cant find the culprit. For those of you that don’t know, the tutorial has you install Apache 2, PHP and PHP module for Apache, and then onto WordPress setup. I installed Apache 2 and tested. No Problem. Step 2 Install PHP and PHP module for Apache. The installation portion went just like it was supposed to. The tutorial then has you test the PHP. It has you enter in the index.php file:

    <?php echo “hello world”; ?>

    At this point the output should be:

    “hello world”

    But the output I get is:

    <?php echo “hello world”; ?>

    That should have been my first clue that I was going to have problems when I got to the WordPress .php items at my first attempt at this project. But being new, I had no idea. I just continued the tutorial. Now that I have tried on numerous occasions I am stopping here just to see if a solution can be found. If anyone knows where I went wrong, please chime in. This is the tutorial I was following.

    https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md

    Thread Starter cchildspi

    (@cchildspi)

    Thanks for the encouraging response William. You are correct regarding my original issue which was the .php content was not displaying correctly. It was displaying the actual .php code. However installing blog in a box on a different SD card solved that problem. When I downloaded blog in a box then booted on the Rasp PI, I had no idea how to get to it since the download only had terminal command. It turns out as you mentioned that I just had to type in my ip address into a browser on any other computer. I spent several hours on the Rasp PI trying to find a browser to type the IP address in. So I just grabbed my laptop, typed in the IP address and it loaded bright as day. I didn’t know it worked that way. I also didn’t know that if you try to access that same IP address on a computer not on the network that it wont work. That’s essentially what I wanted to do, but it sounds like there is more involved to be able to access the pi server outside the local network. I also now know that blog in the box is a (I forgot the wording) but a basic Lite setup of Rasbian so, no, it does not have a GUI (no Desktop nor Browser) installed at all. Just for the record I tried startx during my trial and error experience, and it didn’t work.

    On the bright note out of all this frustration, I am learning. Fun and frustrating at the same time.

    Thread Starter cchildspi

    (@cchildspi)

    Then how do I get to a browser if it doesn’t have a GUI/destktop/browser. When I type in sudo hostname -I, it comes back with an ip of 127.0.1.1. Although for some reason, I though my ip was 192.168.1.39. That’s what it shows on my router configuration. So to be honest, your guess is as good as mine. As I am typing this message, I just so happened to type in the 192.168.1.39 in the browser on my laptop which is separate from the Rasp PI, and something came up. Now I am really confused because I thought I was supposed to be working on my Rasp PI not my laptop. I apologize in advance for the silly questions as this is brand new to me.

    Thread Starter cchildspi

    (@cchildspi)

    Update….I was able to login into blog in a box. I am at the command terminal. I don’t see a way to open a browser or anything

    Thread Starter cchildspi

    (@cchildspi)

    well, I got the blog in a box installed, however on initial boot when I try to login it tells me login incorrect. I have done it 3 times.

    Thread Starter cchildspi

    (@cchildspi)

    I will give a shot. At this point, it cant hurt

    Thread Starter cchildspi

    (@cchildspi)

    Firstly, I did try to get assistance over at the Raspberry forum. They suggested I come here for help. No you say I should go there. I’m at a lost on this. I have PHP installed. It is version 7. Apparently, version 5 is outdated. I have MYSQL installed as well. As for the configuration of these various programs, I’m not 100 percent sure, but they are all installed. As previously mentioned, I followed the installations to the letter. I just don’t know where to turn at this point.

Viewing 11 replies - 16 through 26 (of 26 total)