by DrumLib » 18. January 2005 12:02
It works!!! Thank you, and thanks for explaining about the parameters and the symbolic links, Dave.
Here is what worked for me with Mandrake 10.1. There are probably much better ways to do it, and hopefully others will add to this thread, but even this might be of some use to another frustrated newbie coming from a Windows background:
I started to make the lampp_start and lampp_stop files in Quanta web editor, but when I tried to save them in the /opt/lampp/ directory, the Linux security nanny wouldn't let me do it. Now, I'm sure this is VERY bad security karma, but I opened the "Terminal" program and typed "su" at the prompt and hit <enter>. Then, I entered the root password at the prompt and became root. As root, I have the power to tell the security nanny to leave the /opt/lampp/ directory alone by typing this in and hitting <enter>:
chmod -R 777 /opt/lampp/
Now it let me save the Quanta files (lampp_start and lampp_stop) to the /opt/lampp/ directory. There are no extensions like in Windows, so, for example, I just typed lampp_start and saved it as "All files, Plain text document." Then, I went back to the "Terminal" (I'm still root) and changed to the directory where I saved the files and made them executable.
To change directory:
cd /opt/lampp
To make the files executable:
chmod 755 lampp_start
hit <enter> and then do the next one:
chmod 755 lampp_stop
All that's left is to make the symbolic links to the files. Now as a Linux dummy who hates the command line, I don't know how to navigate from /opt/lampp/ to my runlevel directory, so I close the "Terminal" program so I can start at the beginning. Then I open a fresh "Terminal" and log in as root (see above), curse the command line and the security nanny, and then I change to my runlevel directory (runlevel 5 (rc5.d) is for Mandrake 10.1, it might be different if you use a different distribution):
cd /etc/rc.d/rc5.d
Now that we are in the runlevel directory type:
ln -s /opt/lampp/lampp_start S99lampp
hit <enter> and then do the next one:
ln -s /opt/lampp/lampp_stop K01lampp
That's it! I closed the terminal, rebooted and everything starts up fine. Finally, after three days (the first two struggling with mandrake's server installation), I have a fully functional server for web development (I want to play with Drupal). Thanks again, Dave.
Note on this command: ln -s /opt/lampp/lampp_stop K01lampp
The first letter is a lowercase l as in luck. The last part is K[zero][one]lampp
I should probably chmod my /opt/lampp/ directory back to whatever it is supposed to be. Does anyone know?
Tomorrow, I'll post some info to this thread on how to find your default runlevel. Is there a table somewhere that lists the runlevel and path info for different distributions?