[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SLES 9 PHP

Posted on 2004-11-03
23
Medium Priority
?
232 Views
Last Modified: 2013-11-13
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!
0
Comment
Question by:wirthr
  • 14
  • 9
23 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 12484518
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
 
LVL 6

Author Comment

by:wirthr
ID: 12484771
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
 
LVL 6

Author Comment

by:wirthr
ID: 12484777
sorry, when I said I untarred everything, I meant the phpmyadmin package
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 36

Expert Comment

by:grblades
ID: 12485610
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
 
LVL 6

Author Comment

by:wirthr
ID: 12485639
ran both commands, didnt get any output from either one.
0
 
LVL 36

Accepted Solution

by:
grblades earned 2000 total points
ID: 12485682
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
 
LVL 6

Author Comment

by:wirthr
ID: 12485949
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
 
LVL 36

Expert Comment

by:grblades
ID: 12486045
No the sources are the source code for the applications incase you wish to recompile them yourself.

0
 
LVL 6

Author Comment

by:wirthr
ID: 12486570
ok, thank you.  Will try this tonight, and post and update
0
 
LVL 6

Author Comment

by:wirthr
ID: 12488349
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
 
LVL 6

Author Comment

by:wirthr
ID: 12488351
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
 
LVL 36

Expert Comment

by:grblades
ID: 12491205
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
 
LVL 6

Author Comment

by:wirthr
ID: 12494893
yes, everything is in order, and the directory structure is the same.  
0
 
LVL 6

Author Comment

by:wirthr
ID: 12496322
Those entries are in the respective files
0
 
LVL 36

Expert Comment

by:grblades
ID: 12497557
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
 
LVL 6

Author Comment

by:wirthr
ID: 12497845
0
 
LVL 6

Author Comment

by:wirthr
ID: 12497857
I think this is the end of this question.  Thanks for the help grblades.  Have a good one!
0
 
LVL 36

Expert Comment

by:grblades
ID: 12498253
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
 
LVL 6

Author Comment

by:wirthr
ID: 12498476
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
 
LVL 6

Author Comment

by:wirthr
ID: 12498515
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
 
LVL 36

Expert Comment

by:grblades
ID: 12498711
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
 
LVL 6

Author Comment

by:wirthr
ID: 12498908
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
 
LVL 36

Expert Comment

by:grblades
ID: 12499071
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

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question