SLES 9 PHP

anyone know an easy way to get PHP into Suse Linux Enterprise Server 9.  It has Apache2 which is working fine, but I want to use gallery, which requires mysql, and I want to use phpadmin to manage mysql.  Thanks!
LVL 6
wirthrAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grbladesCommented:
Hi wirthr,
Is it not installed by default?
You should be able to go into the YAST2 admin program and choose to install additional software from the cd's.
0
wirthrAuthor Commented:
not sure, it should be, I did a full installation, told it to install everything.  I untarred everything into /srv/www/htdocs, but when I go to http://www.mydomain.com/phpmyadmin/index.php , it asks me if I want to download the file.
0
wirthrAuthor Commented:
sorry, when I said I untarred everything, I meant the phpmyadmin package
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

grbladesCommented:
Type 'which php' to check if php is installed.
If it is then you probably need to configure Apache so that it treats php as a CGI program. There may be a apache-php module you also need to install.

Type the following command and post the output:-
rpm -qa | grep php
0
wirthrAuthor Commented:
ran both commands, didnt get any output from either one.
0
grbladesCommented:
PHP is not installed in that case. Run YAST2 and choose to install software from the CD and when you get the list up do a search for 'php' and install everything.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
wirthrAuthor Commented:
the server is at home, I am at work, I am ssh'd into it.  I can do it through yast, but I cant go home to put int the cd's.  When I set it up, I told it to install the sources to the drive, does that mean its on the pc.  If I change the install source to local directory, where would it have put the sources.

Thanks
0
grbladesCommented:
No the sources are the source code for the applications incase you wish to recompile them yourself.

0
wirthrAuthor Commented:
ok, thank you.  Will try this tonight, and post and update
0
wirthrAuthor Commented:
mail:/srv/www/htdocs/phpmyadmin # /etc/init.d/apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate)         done
Starting httpd2 (prefork)                                            done
mail:/srv/www/htdocs/phpmyadmin # which php
/usr/bin/php
mail:/srv/www/htdocs/phpmyadmin # rpm -qa | grep php
selfphp-1.0.1-273
php4-dbase-4.3.4-26
php4-gettext-4.3.4-26
php4-mhash-4.3.4-26
php4-servlet-4.3.4-26
php4-unixODBC-4.3.4-26
phplib-7.4-71
php4-4.3.4-26
php4-ctype-4.3.4-26
php4-filepro-4.3.4-26
php4-mbstring-4.3.4-26
php4-qtdom-4.3.4-26
php4-swf-4.3.4-26
phprojekt-4.0.3-143
php4-bcmath-4.3.4-26
php4-curl-4.3.4-26
php4-domxml-4.3.4-26
php4-ftp-4.3.4-26
php4-iconv-4.3.4-26
php4-mcal-4.3.4-26
php4-mysql-4.3.4-26
php4-readline-4.3.4-26
php4-shmop-4.3.4-26
php4-sysvsem-4.3.4-26
php4-xslt-4.3.4-26
mod_php4-core-4.3.4-26
phpdoc-4.3.0-129
php4-bz2-4.3.4-26
php4-dba-4.3.4-26
php4-exif-4.3.4-26
php4-gd-4.3.4-26
php4-imap-4.3.4-26
php4-mcrypt-4.3.4-26
php4-pear-4.3.4-26
php4-recode-4.3.4-26
php4-snmp-4.3.4-26
php4-sysvshm-4.3.4-26
php4-yp-4.3.4-26
phpMyAdmin-2.5.6-34
php4-calendar-4.3.4-26
php4-fastcgi-4.3.4-26
php4-ldap-4.3.4-26
php4-pgsql-4.3.4-26
php4-sockets-4.3.4-26
php4-zlib-4.3.4-26
apache2-mod_php4-4.3.4-26
php4-devel-4.3.4-26
php4-gmp-4.3.4-26
php4-mime_magic-4.3.4-26
php4-session-4.3.4-26
php4-wddx-4.3.4-26
0
wirthrAuthor Commented:
installed it, thats what i get, and going to my site /index.php still asks me to download it.  Whats the next step?  Thanks again.
0
grbladesCommented:
The next step is to check the apache configuration. The names and locations of the files vary a little between Linux versions but I will tell you where they are on SuSe Pro 9.1 as yours is most likly the same.

Have a look at the file /etc/apache2/conf.d/php4.conf (or a file similarly named) and check that the following line is there :-
AddType application/x-httpd-php .php
This associates .php files with php.

Also check to make sure the php module is loaded by looking in /etc/apache2/sysconfig.d/loadmodule.conf to see if the following exists:-
LoadModule php4_module                    /usr/lib/apache2-prefork/libphp4.so
0
wirthrAuthor Commented:
yes, everything is in order, and the directory structure is the same.  
0
wirthrAuthor Commented:
Those entries are in the respective files
0
grbladesCommented:
I am not sure what could be wrong in that case.

If you do choose to download the file and then open it with a text editor do you see the php source code or HTML code?

Are there any errors listed in the apache log files?
0
wirthrAuthor Commented:
0
wirthrAuthor Commented:
I think this is the end of this question.  Thanks for the help grblades.  Have a good one!
0
grbladesCommented:
Thanks.

What is your website going to be for out of interest.
I live in the UK but was on holiday in the USA for a couple of weeks last month and went diving for the day in Key Largo.
0
wirthrAuthor Commented:
I used to live in key largo, worked there as a dive instructor and have tons of pics and what not.  Im not sure yet what I am going to do, probably just offer my pictures, some of which are really good if I do say so myself.  not sure what after that.  Havent got that far yet.  Thanks again.
0
wirthrAuthor Commented:
I just posted the next question in this area, regarding locking down mysql, you should check it out, the title is "phpmyadmin, locking down"  Maybe you'll have the answer to that one too!
0
grbladesCommented:
When I was in Key Largo I went into the Caribean Club in the evening. The locals were great although we did end up drinking more than we planned :)

I'll leave the mysql question to someone else as I haven't used it much. I normally use Postgres myself.
0
wirthrAuthor Commented:
lol I would stay away from the carribean club, thats a rough crowd.  next time your there go to big fish, sharky's, or down to hog heaven.  Carribean club is pretty trashy, different crowd that hangs out there.  When where you in key largo?
0
grbladesCommented:
We stayed in the place next door. It was the cheapest place we could find which still had rooms.
I dived with Ocean Divers who were recomended to me by someone on a forum I know.
If you are interested check out the forum at http://www.yorkshire-divers.co.uk/ as it is very popular and has a good galery of peoples photos.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.