Jump to content

Recommended Posts

OK, I know NOTHING about Linux (OK, I know just enough to install it).  I want to just set up a simple web server with PHP and MySQL support using Apache2.  Should be simple enough.  So I tried ...

I installed Apache2 following the directions on the site, and that worked beautifully.  So then I downloaded the latest php tarball (5.1.6) and attempted to install that.  I opened a terminal and did "su root" to switch to root, then did:

gzip -d php-5.1.6.tar.gz
tar xvf php-5.1.6.tar
cd php-5.1.6
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

Errored out on finding "libxml2" -- so I found that online, downloaded, and installed the same way I did Apache2 ... worked!  So then I tried the same commands above, and it errored out in finding MySQL ... well duh, I didn't install that yet.  So here's my question:

If i take off the --with-mysql switch, do I need to do something after installing PHP to get it work with MySQL?  Or should I install MySQL first?  Which is another issue -- I tried that, but it wouldn't let me run ./configure because it said it didn't need that and just worked!  So do I just un-tar it to /user/bin/mysql5 or something?

AAAHHHH!  Linux is so foreign!

Thanks!

--Nathan
Link to comment
https://forums.phpfreaks.com/topic/19306-lamp-issues-in-suse-101/
Share on other sites

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.