Basics - Get Apache - MySQL - PHP Running
Posts: 3
I am new to MEPIS Linux. It would be great if there were instructions on how to get Apache, MySQL and PHP up and running on MEPIS Linux with a simple example all in one place. I can't believe someone hasn't done this already. MEPIS Linux is very easy and simple enough, but it's just hard enough that if you're new you can get stuck very easy. I've searched all over for documentation so I can try and help myself first, but I'm not having any luck. I can't even start Apache, MySQL or PHP. I keep getting connection refused for Apache when I try http://localhost I did read somewhere you need a STATIC IP, is this true? Thanks.
Thank You!
Posts: 3
I was under the impression Apache, MySQL and PHP was automatically installed after I installed MEPIS on my hard drive, that would be nice! silly me.?? I do see PHP files on my hard drive after installation, so I thought everything was there.?? I thought all I had to do was start these packages up, I didn't know I had to install them myself.?? hmmm, okay cool, thanks.
Whoa, it'll be difficult to
Posts: 2299
Whoa, it'll be difficult to answer all that in one post. It's not really complex, but I don't think I can enumerate all steps.
Let's start with Apache. To check if you installed it correctly, go to a Konsole, type SU and give your root password. Now type dpkg-reconfigure apache. You'll get some basic questions about how apache should be configured. Most of these will make sense. Keep the path where you publish your sites as /var/www. Apache should be restarted and you should be able to connect to localhost.
To install mysql, you should have the packages mysql-common, mysql-server and mysql-client. Installing should be straightforward. Just check out the mysql doc to set a root password, since it is blank by default.
Install php with the package php4. Also install php4-mysql and php4-gd2. You need to edit your php.ini file in order to be able to use these extensions. Look for the word mysql.so in the ini file. It is commented out (together with gd.so) but you can uncomment it. The only thing you would then need is to set the path to the extensions. THis will probably be /usr/lib/php4/20020429/.
After installing it all, su to root, and type apachectl restart. Apache will then be aware of the fact that PHP is installed.
Hope it gets you going...
BTW: phpmyadmin comes in a package as well. Works great!
Newbie or not Newbie, there's always a question