Site Statistics
 
Threads: 3,853
Posts: 17,029
Members: 2,895
Users Online: 13
Newest Member: yhangjoy


Go Back   PC101 > PC Software > UNIX / Linux

UNIX / Linux Linux is the UNIX-like operating system that provides personal computer users a FREE or very low-cost operating system.


Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2006, 02:46 AM   #1
Junior Member
 
Join Date: Jul 2006
Posts: 3
Rep Power: 0 thestudent is on a distinguished road
Crash and Burn - Apache hitch...

Hi, me again

What does the guy who has just rebuilt a dead linux system from scratch (learning how to do it along the way) - do next?

He crashes and burns the system and does it again!

Yep, I thought I had it all running hunky dory, but there were things not quite right... I felt confident to take it all apart and re-build it and surprised myself by getting back to the stage where I was at the end of my last post - what took me a few weeks to do, I did in a day!

This time, I did a lot more things right - once the operating system was up and running, I went ahead and loaded the apps:

First came Samba without which I could not talk to the outside world. This was the cause of my initial cry for help - I installed locally as I did the first time round with no errors.

This done, I could now use apt-get to download and install the rest of the "LAMP" apps. Everything installed much cleaner than the first time around without all the strange errors and missing files. Apache2 and mysql-server started on re-boot and I can talk to mysql at command line level. So why this post? Well, I'm still green in experience terms and still have a long way to go - and I've hit another problem that is taxing the old brain cell!

I've got to the point where I can open apache from my Firefox browser and do the phpinfo bit - that's more than I could before. I can also display the initial apache index page telling you that if you can see this you've done something right...

What I can't do is open the phpmyadmin homepage. I get a pop-up telling me:

Quote:

"You have chosen to open

< this bit is blank >

which is a: application/x-httpd-php
from httpd//192.168.0.112

What should Firefox do with this file?



On our live server, Firefox simply opens the phpmyadmin index.php and I'm in to the mysql database. I've checked the setups of both systems and they seem to be the same (of course, this is where I've probably missed something). My development system is meant to mirror as closely as possible the live server, so its baffling that Firefox can open one index.php file but not another identical one on a different system.

I've checked out the htaccess file - as per manual it does contain the line:

AddType application/x-httpd-php .php

I added this line to httpd.conf for good measure (some manuals say to do this) and restarted apache. Still no good.

Anyone had a similar problem, or know how to get round it?
thestudent is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-12-2006, 06:53 PM   #2
Valued Member
 
firestorm's Avatar
 
Join Date: Jan 2006
Location: US of A!
Posts: 777
Rep Power: 3 firestorm is on a distinguished road
Send a message via AIM to firestorm Send a message via MSN to firestorm
Wow you have come a long way. When I first started out, Samba took me 2 days!
Not quite sure why this isn't working. Will throw in my semi-fresh install of FC5 and see what I can do. What flavor are you using? Will definately look into this tonight and tomorrow.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Registered Linux user #403288
firestorm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-12-2006, 07:31 PM   #3
Senior Member
 
OulZac's Avatar
 
Join Date: Apr 2006
Location: Wilbur
Posts: 346
Rep Power: 3 OulZac is on a distinguished road
This line: AddType application/x-httpd-php .php
in your httpd.conf file should look like this:

Code:
AddType application/x-httpd-php .php .php3 .php4
Then you may also want to put this line aswell directly after the AddType:

Code:
AddHandler application/x-httpd-php .php .php3 .php4
Then also make sure your mysql root password has been changed once since the install, this is 'some times' required to access phpmyadmin for the first time. ( I say this, as I have seen this issue on production servers many times )

To change the mysql root password use these commands:

Code:
mysql -u root
UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';
FLUSH PRIVILEGES;
Replace “newpwd” with the actual root password that you want to use.

now restart apache and mysql

If this sitll doesnt work, let me know, and if not please attache copys of your httpd.conf and php.ini files.
__________________
In the beginning, the Universe was created. This made a lot of people angry, and has been widely regarded as a bad idea.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Showing people there IP for no apparent reason!
OulZac is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:25 AM.

Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5