Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

php not working on linode

  • 19-05-2015 11:54AM
    #1
    Closed Accounts Posts: 431 ✭✭


    So i setup LAMP and php is installed but not working, it just shows the scripts rather than executing them anyone know how i might troubleshoot this issue?

    Check for your self:


Comments

  • Registered Users, Registered Users 2 Posts: 2,011 ✭✭✭colm_c


    Looks like you need to update your apache config - vhost & the PHP module

    You can learn about apache here:
    http://httpd.apache.org/docs/2.4/

    If it's for a production site and you're not familiar with apache/server setup, I'd advise getting someone to do it for you (or read up on LAMP hardening) as you want to ensure it's secure and not open to compromise.


  • Closed Accounts Posts: 431 ✭✭whats newxt


    colm_c wrote: »
    Looks like you need to update your apache config - vhost & the PHP module

    You can learn about apache here:
    http://httpd.apache.org/docs/2.4/

    If it's for a production site and you're not familiar with apache/server setup, I'd advise getting someone to do it for you (or read up on LAMP hardening) as you want to ensure it's secure and not open to compromise.

    Yea i don't know, It's a strange one.

    In /etc/apache2/mods-enabled it list the php5 module:

    LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

    Have you any idea?

    The site is just for a personal blog for myself so nothing serious.

    Setting it up i followed this tutorial:https://www.linode.com/docs/websites/lamp/lamp-server-on-ubuntu-14-04
    so i don't know where i went wrong.


  • Closed Accounts Posts: 431 ✭✭whats newxt


    Ah, silly me. It just needed sudo apt-get install update


  • Closed Accounts Posts: 431 ✭✭whats newxt


    Ok so i have another problem now the url's are weird how do i make the directory http://sudozen.org/sudozen.org/public_html/anchor-cms-0.9.2/ my default page when i search/type sudozen.org?

    Anyone have any idea. Sorry for noobish questions but it's my first time installing on an actual server.


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    I'd have a bit of a rethink how you're approaching this, cobbling together a LAMP server is a bad idea from a security perspective. Your machine could be compromised in seconds.

    Have you considered one of the control panel solutions?


  • Advertisement
  • Closed Accounts Posts: 431 ✭✭whats newxt


    Graham wrote: »
    I'd have a bit of a rethink how you're approaching this, cobbling together a LAMP server is a bad idea from a security perspective. Your machine could be compromised in seconds.

    Have you considered one of the control panel solutions?

    I haven't please tell me more? Where do i get a control panel are they open source? Easy to install?


  • Closed Accounts Posts: 431 ✭✭whats newxt


    Right i'll turn off the server and start reading.


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    All will have fairly comprehensive setup instructions and you're better off starting from a clean build as per the specs of whichever you choose:

    cPanel (commercial)
    Plesk (commercial)
    VirtualMin
    WebMin
    VestaCP

    http://en.wikipedia.org/wiki/Comparison_of_web_hosting_control_panels


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    FWIW I have some experience with Vesta but I don't use the built it DNS, I use Cloudflare instead.


  • Closed Accounts Posts: 431 ✭✭whats newxt


    Graham wrote: »
    All will have fairly comprehensive setup instructions and you're better off starting from a clean build as per the specs of whichever you choose:

    cPanel (commercial)
    Plesk (commercial)
    VirtualMin
    WebMin
    VestaCP

    http://en.wikipedia.org/wiki/Comparison_of_web_hosting_control_panels

    Sorry to bother you again but what would you recommend as a base distro for VirtualMin?


  • Advertisement
  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    Sorry, can't help you with virtualmin. I'm using Ubuntu/Vesta on a couple of my VMs, that's where my recent experience of the CPs ends.


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    [url]Http://serverpilot.io[/url] is a hosted control panel. That would be an even easier option, they have a free plan too.


  • Closed Accounts Posts: 431 ✭✭whats newxt


    Thanks guys i got setup with serverpilot heres the site http://www.sudozen.org


  • Moderators, Society & Culture Moderators Posts: 17,642 Mod ✭✭✭✭Graham


    Excellent, delighted to see you got it all up and running in the end.

    Did you design the theme for your site?


  • Closed Accounts Posts: 431 ✭✭whats newxt


    Graham wrote: »
    Excellent, delighted to see you got it all up and running in the end.

    Did you design the theme for your site?

    No, used this bootstrap theme here:http://startbootstrap.com/template-overviews/clean-blog/

    Just tweaked it a small bit was all.

    Anyway thanks for all your help.


Advertisement