Linux Apache PHP problem

Discussion in 'Software' started by c.cam108, 25 Jul 2005.

  1. c.cam108

    c.cam108 Minimodder

    Joined:
    14 Feb 2004
    Posts:
    907
    Likes Received:
    3
    I have just followed this guide to installing a LAMP setup. http://www.niblet.us/server.html

    All went well up to the end and I managed to get a fully working server. Untill I rebooted. Now when I try to start Apache I get the error "Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: invalid ELF header"

    So what is happening? Why is Apache not loading, when it did before I rebooted?

    Any help would be appreciated, as this is my first LAMP setup, and I need to be able to fully configure a server for wednesday.

    _C
     
  2. c.cam108

    c.cam108 Minimodder

    Joined:
    14 Feb 2004
    Posts:
    907
    Likes Received:
    3
    Fixed it, I just reinstalled PHP and it works fine. I must have messed something up somewhere.

    _C
     
  3. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Have fun with it :)
     
  4. c.cam108

    c.cam108 Minimodder

    Joined:
    14 Feb 2004
    Posts:
    907
    Likes Received:
    3
    Another quick question. How do I get Apache and MySQL to start automatically on boot. Now, I have to type "bin/mysqld_safe --user=mysql &" to start MySQL and "/usr/local/apache2/bin/apachectl start" to start Apache. Then I have vsftp and who knows what else to manually start. I guess I'm looking for the linux version of autoexec.bat.

    _C

    EDIT: also, how do I set a folder to be writable by all users?
     
    Last edited: 26 Jul 2005
  5. trigger

    trigger Procrastinator

    Joined:
    22 Mar 2004
    Posts:
    1,097
    Likes Received:
    30
    What distro are you using? You should be looking for something like /etc/init.d/* there are a whole load of scripts in there which start at boot. If you are using KDE, they have a nice app called ksysv which helps with loading stuff at boot.

    edit: To give the everyone read/write permissions: chmod +rw filename
     
    Last edited: 26 Jul 2005
  6. c.cam108

    c.cam108 Minimodder

    Joined:
    14 Feb 2004
    Posts:
    907
    Likes Received:
    3
    I'm using slackware, as the guide I linked to says. I'll google it a bit more to see what comes up.

    It's a folder I want to give the permissions to, not a file. Is the proccess the same?

    _C
     
  7. trigger

    trigger Procrastinator

    Joined:
    22 Mar 2004
    Posts:
    1,097
    Likes Received:
    30
    I think in Slackware it's /etc/rc.d for the startup scripts, and yes you can use the same command to chmod a folder.
     
  8. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    I've not read the article, but if you've used the offical Slackware packages for Apache, MySQL, etc then the scripts to start them are /etc/rc.d/rc.http and rc.mysql respectivly. If they are executable (chmod 755) then they will be run during startup :)
     
  9. CaseyBlackburn

    CaseyBlackburn Network Techie

    Joined:
    27 Jul 2004
    Posts:
    1,846
    Likes Received:
    0
    Doesn't really matter what distro you are using he is talking about KDE, one of the graphic user interfaces, such as Gnome.
     
  10. BBurger

    BBurger What's a Dremel?

    Joined:
    7 Apr 2005
    Posts:
    155
    Likes Received:
    0
    Interesting - Apache on this Ubuntu Linux machine starts automatically on boot, and I didn't have to do anything about bootup confs.
     
  11. c.cam108

    c.cam108 Minimodder

    Joined:
    14 Feb 2004
    Posts:
    907
    Likes Received:
    3
    OK, if any of you had even glanced at the guide I linked to, you would see that I have a stripped-down slack install with no GUI and that I installed Apache seperately, not as a package.

    _C
     
Tags:

Share This Page