Link to home
Start Free TrialLog in
Avatar of wirthr
wirthr

asked on

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!
Avatar of grblades
grblades
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of wirthr
wirthr

ASKER

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.
Avatar of wirthr

ASKER

sorry, when I said I untarred everything, I meant the phpmyadmin package
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
Avatar of wirthr

ASKER

ran both commands, didnt get any output from either one.
ASKER CERTIFIED SOLUTION
Avatar of grblades
grblades
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wirthr

ASKER

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
No the sources are the source code for the applications incase you wish to recompile them yourself.

Avatar of wirthr

ASKER

ok, thank you.  Will try this tonight, and post and update
Avatar of wirthr

ASKER

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
Avatar of wirthr

ASKER

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.
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
Avatar of wirthr

ASKER

yes, everything is in order, and the directory structure is the same.  
Avatar of wirthr

ASKER

Those entries are in the respective files
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?
Avatar of wirthr

ASKER

I think this is the end of this question.  Thanks for the help grblades.  Have a good one!
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.
Avatar of wirthr

ASKER

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.
Avatar of wirthr

ASKER

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!
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.
Avatar of wirthr

ASKER

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?
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.