Click to See Complete Forum and Search --> : need help installing PHP/Apache


pepper
09-12-2004, 06:57 PM
Hello,

I am going to install php 5.0.1 on my system which is an upgrade from 4.3.8. I have abook that is telling me that there should be a directory named apache somewhere on my system. I don't. Do I need to download the source code and install it so I can use the apxs module? and if so will I lose my deamon autostart on bootup if I install it?

Thanks

fatTrav
09-12-2004, 08:07 PM
what distro do you use? can you upgrade apache/php using your distro's package manager? regarding php5, do you have a pressing need for it? ...i've heard that php5 isn't quite ready yet...there must be a reason why the php team is still releasing updates to version 4

pepper
09-12-2004, 08:33 PM
the distribution I use is Fedora Core 1.

I checked my cd's and package manger for the rpms for the webserver. It seems that fedora's webserver is in the httpd rpm. I can't upgrade the httpd package because it is the latest avaliable for the OS. And the reason why I am upgrading to php is because I bought a book on php. The version they use in the book is 5 and I felt I should keep everything the same between the book and my computer.

fatTrav
09-12-2004, 10:32 PM
i'm just curious, what book did you get? you can always either upgrade your distro or compile apache and php from source. it's not difficult and there are plenty of docs how to do so. (my mysql and php book covers it in the appendix)

pepper
09-12-2004, 10:57 PM
the book I have is "Web Database Applications with PHP and MySQL"

Yeah I know I found the instructions in the back of my book as well. That's how I found out that i didn't have a directory called apxs2

I found a program within my OS that configures the webserver "redhat-config-httpd" I am hoping that when I compile apache I will be able to use the redhat config to configure the webserver as well as start and stop it.

fatTrav
09-12-2004, 11:15 PM
sometimes the location of files are different if something is installed via rpm or source.

i think the redhat-config-httpd can start/stop apache. but i'd still recommend reading up Apache docs to learn how to configure httpd.conf by hand.

pepper
09-14-2004, 02:40 AM
got a quick question

How do I set a password for a mysql user and add a user?

Thanks

fatTrav
09-14-2004, 03:12 AM
http://dev.mysql.com/doc/mysql/en/Post-installation.html

I think you can do some of this though mysqladmin (installed with any mysql installation) and though the add-on application of phpMyAdmin. I don't particularly like mysql because this type of stuff is easier (to me) in postgres sql. But mysql is a damn fine db.

I'd REALLY recommend that you get phpMyAdmin up adn running. It makes life so much easier. Get it from freshmeat.net