LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-26-2007, 06:49 PM   #1
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Rep: Reputation: 32
LAMP setup and using Mediawiki


I searched the forum on how to setup lamp, and i guessed right. everything was pretty much there with version 11.0. just have to mark MYSQL and Apache durring the install.
to start the database i did
Code:
su - mysql
mysql_install_db
since i need php5 for mediawiki i installed it as a package.
i also refrenced xushi's AMP install guide so i knew what files i needed to edit.
http://xushi.co.uk/guides/amp.php

i made a test.php like xushi has in his guide and i do get a webpage back saying it's working.

when i try to run the wiki php pages to setup, i see lots of code inside of them. it almost looks like it's not translating the php correctly.
im not too sure whatelse info i could put in here... im using the 2.6.17.13 kernel.

any idea's?
 
Old 04-27-2007, 11:34 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,477

Rep: Reputation: Disabled
What does your mod_php.conf look like? Have you uncommented the mod_php.conf include line in httpd.conf?

Brian
 
Old 04-30-2007, 12:08 AM   #3
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
im not at work right now so i can't post it and sorry it took so long to reply.
I did uncomment the line in the httpd.conf file.
and my mod_php.conf file was only changed to add in the libphp5.so (i think thats the file name) since i installed php5.
 
Old 04-30-2007, 01:28 AM   #4
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Hmm, If the setup pages aren't working I am pretty sure you haven't set up AMP correctly.

How about giving output of phpinfo()?

make a file named info.php with content
Quote:
<? phpinfo(); ?>
and see the output yourself or post it.
 
Old 04-30-2007, 07:53 AM   #5
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
i did create a page that had that in there. everything appeared to be working.
and then when i tried to view the setup php page for mediawiki it was like part of the php code was working and part of it wasn't.

i scrolled down that page and it showed some errors about how certain settings were turned on. again im not at work just yet.. when i get there i will start to display what im seeing. anyhoot... i found the settings in the php.conf in the /etc/apache folder. but they were the oposite of what wiki was saying they were... if it said it was on, it was off in the file.. was really weird.... then there was a file that said php.conf.recomended in there as well. so i tried to use that one... ever since i switched php files... apache doesn't work anymore. it starts but when i type in http://localhost in the browser nothing comes up. i haven't looked at the logs to see why yet... this happened on friday when i was leaving work.. so like i said earlier i'll be sure to post output and such to be more helpful.
 
Old 04-30-2007, 11:43 AM   #6
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
Okay so this morning i figured out my issue and i think i fixed my problem... well the AMP issue. i haven't trying running mediawiki yet.

Anyways, i started from scratch and blew away everything. what i was doing is installing php5 over php4. once i removed php4 and then installed php5 everything worked just dandy.

i will give a progress report on the mediawiki when done.
 
Old 04-30-2007, 12:26 PM   #7
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 38
This might sound a little silly, but did you try refreshing your browser?
I faced similar problems when I installed wordpress on my machine awhile back: the initial PHP configuration was bad, so loading index.php showed only the code. Once I got PHP installed correctly, phpinfo() displayed correctly, but the wordpress links were still weird and continued to display code.. until I hit the refresh button.
Since then I cleaned my cache often while I was testing the site
 
Old 04-30-2007, 01:48 PM   #8
agentc0re
Member
 
Registered: Apr 2007
Location: SLC, UTAH
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 32
Yeah, i checked that too.. and at the time still a no go. however i have everything up and running right now. i think it was all due to the fact i had php4 installed and i installed php5 over the top of it.. cuz once i removed both and installed php5 by itself everything worked right away.

Wiki is installed and working. im happy about that. got the setup completed and everything. once i moved the localsettings.php file over though and clicked on the link it told me the page didn't come up. it comes up with an error and the reason why is because it's forcing a www. in front of my FQDN. anyone know how to make that stop?

also, the other question i have is about MYSQL. durring the wiki configuration it asks for a mysql user. you can put in a new one or use the superuser. i tried having it create one for me but that didn't work. so i tried the superuser, which wasn't working either. i tried mysql and root. well i looked up some stuff and one step i missed from xushi's guide was this
Code:
/usr/bin/mysqladmin -u root password 'new-password'
however i don't understand it. once i added that, the mysql user worked... but before that i had already gone to that user to set a password (through KDE). if anyone can shed some light in that direction as well that would be very helpful.
 
Old 04-30-2007, 10:06 PM   #9
indeliblestamp
Member
 
Registered: Feb 2006
Distribution: Fedora
Posts: 341
Blog Entries: 3

Rep: Reputation: 38
About the mysql user problem you faced, that's because mysql users are independent of normal linux users. You can add users to mysql and grant them specific priveleges, and set passwords for them, etc, and this password is independent of the normal linux login/password for that user (you can give the same password if you want, of course)
Here's a post that explains this a little better.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom LAMP setup linuxmandrake DamnSmallLinux 1 09-15-2006 02:15 PM
How can I setup a server (LAMP)? Aziz Linux - Server 1 09-06-2006 06:55 PM
LAMP server setup Wim Sturkenboom Linux - General 3 04-20-2006 01:36 PM
mediawiki setup on fedora core 5 (noob here) shallowz Linux - Software 1 04-19-2006 07:41 AM
LAMP setup on suse 10.0 Doug.Gentry Suse/Novell 4 01-03-2006 09:41 PM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration