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
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?
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
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
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.
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
Doesn't really matter what distro you are using he is talking about KDE, one of the graphic user interfaces, such as Gnome.
Interesting - Apache on this Ubuntu Linux machine starts automatically on boot, and I didn't have to do anything about bootup confs.
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