Konqueror and phpMyAdmin--opens in Kwrite, won't display PHP
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Rep:
Konqueror and phpMyAdmin--opens in Kwrite, won't display PHP
I am trying my damnedest to get phpMyAdmin to play nice with SOMETHING on my computer. I am running SuSE 8.2 and have Apache 2, PHP 4.3.3 and phpMyAdmin 2.4.0 installed. And of course, mySQL. I try to open phpMyAdmin with Konqueror, but I run into problems. First, it associated it with Kwrite, so I just got a screen full of source code. I tried to associate it with Konqueror, and now I get this message:
There appears to be a configuration error. You have associated Konqueror with text/x-c++src, but it can't handle this file type.
I also tried it with Opera, and I get some weird php output, not what it actually is supposed to be. I tried Galeon and Mozilla, too, just for the hell of it, and they give me the source code, just like Konqueror did originally (before I screwed it up, evidentally).
Any ideas what I'm doing wrong, and what I can do to get this working? Other php files (ones on the net) work okay... Keep in mind I am a complete newb. I tried searching here and Google, but alas, most people's comprehension seems a little more advanced than mine.
If you ar egetting php output then it is likely to eb a server problem. Have you used php on that system before? Create a file called phpino.php and put it in the root of your web server
Code:
<?php
phpinfo();
?>
And access it via your webserver - do you get the code back or a list of installed php modules and a version number?
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
Thanks for replying.
I was a little confused, so I created an actual php file (and got code back), which is what I think you meant.
I also queried info via the shell about php, and got this Status: 404
Content-type: text/html
X-Powered-BY: PHP/4.3.3
I'm not sure if that's helpful.
Here's the scoop: I don't intend on using this to do any database management on the web... I'm setting it up with the necessary files on my Linux desktop, mainly because I'm taking a database management class and I need it to do homework, not because I actually have ANY idea what I'm doing. So I installed all the parts and kind of hoped phpMyAdmin would fall into place. So please forgive me if I ask really stupid questions along the way here... I'm setting this up as localhost and going from there...
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
Hey David,
Sorry, didn't realize I posted it in another forum... must have been a couple days ago (between this and a VERY uncooperative application in Windows, I've been out straight in front of this freakin' computer), or I clicked something wrong or something...
I didn't see a loadmodule line... Honestly, I looked through httpd.conf, and googled, and saw that there should be a line that says something like AddType application/x-httpd-php, and that wasn't ANYWHERE to be seen. So I added it. I'm going to take another looksie, though. Didn't see a loadmodule line anywhere.
It looks like the more I google, the more confused I get.
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
Okay. I got this error message after I configured and ran "make" again... I figured I'd not configured with mysql or --/usr/local/apache2 so I think that might have been half my problem...
In function 'php_stat': /php4-200310141930/ext/standard/filestat.c:575: undefined reference to 'php_check_open_basedir_ex'
collect2: ld returned one exit status
make: *** [sapi/cli/php] Error 1
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
good news bad news
Well, make distclean worked (that's a handy little command... I am PAINFULLY new at Linux. Never would have guessed, huh?). I got it installed again, and LoadModule actually showed up in my Apache conf file. I added what it said to add on that link you so kindly gave...
Alas, everything is still opening as if my computer's never seen php before. I have tried fiddling with the settings in Opera, adding application/x-httpd-php to Mime Types, but still no luck.
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
Better news
After some playing, I got the phpinfo script to work (yeeha). However, I still can't get phpMyAdmin to work. Does it also need to be in the Apache htdocs dir? Or is there some other configuration I can use to get it to work? I haven't seen much about this.
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
I moved phpMyAdmin and....Okay, I got phpMyAdmin to come up (the saga continues) but I get this error message:
phpMyAdmin - Error
phpMyAdmin was unable to read your configuration file!
This might happen if php finds a parse error in it or php cannot find the file.
Please call the configuration file directly using the link below and read the php error message(s) that you receive. In most cases a quote or a semicolon is missing somewhere.
If you receive a blank page, everything is fine.
config.inc.php
I look at the ever so descriptive config.inc.php, and discover that it's blank. I'm guessing that I have a link problem, but I'm not sure where. Actually, I'm not entirely sure what a parse error even is. My guess, however, is that php can't find the file. I'm assuming I link php.ini-recommended to something? Maybe? Bueller? Any suggestions will be entertained.
Thank everyone who's tried to help me. I must be driving you bats.
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Original Poster
Rep:
I'm sorry, David, I was unclear with my description in what I reported earlier... I just read what I wrote again...
My config.inc.php has content... I get all the configuration settings and such. However, when I get the error message, it flashes a link to config.inc.php. If I click on the link, instead of getting an error message, I just get a blank document.
The error message on index.php says if that happens, everything is fine. However, it's pretty obvious that everything isn't if I'm still getting the error message. I'm going to play with the configuration a little more... I must have something set wrong somewhere, though I don't know whether it's with phpMyAdmin or somewhere else.
thanks
shoe
Edit: Does php need a link of some sort to be able to find phpMyAdmin? Perhaps that's it?
Last edited by hindenbergbaby; 10-15-2003 at 01:58 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.