Click to See Complete Forum and Search --> : Apache+php+mysql not working
MaxxxaM
03-21-2004, 07:47 PM
OK this is what I got: Mandrake 9.1 From What i can tell is that I have php4 installed and I see some files in there that make me think that mysql is installed. I have limited knowlage of Linux. I figured out how to get to the www diretory. I don't know how to bring up the mysql admin and i can't edit anything in the www dir. whats the easyest way to use the server and to set everything up. I wan't to use phpnuke I have some knowlage with it in windows. If you can make any since of what i just said your a better person than me ;) any help would be great.
MaxxxaM
blingbling!!
03-21-2004, 08:15 PM
Are these things running already? Type ps -aux in to a command prompt, and look through the list for 'httpd' (apache) and mysqld (the mysql daemon). (BTW this lists all the running processes on your system). Point a web browser at 127.0.0.1.
Failing that:
Does Mandrake have a GUI for setting these things up? Have a dig around your 'start' menu and see if you can find anything there.
Failing that:
Lots of different possibilities. You should do some reading of how-tos and tutorials on the web. Check the Mandrake site for more specific documentation.
Sorry to throw the old RTFM thing at you, but it sounds like you are a bit of a noob, so this is maybe the best advice for you!
HTH
Robin
MaxxxaM
03-21-2004, 08:37 PM
I am a n00b. I know this. and yes i know the server is running cause pointing the browser to 68.64.172.117 brings the default page up. I'm haveing a problem with using mysql and edilint the defualt web page. is there a GNU/mysqladmin? and yeas i did try google and there isn't anything that I could find easyenough for a n00b.
MaxxxaM
blingbling!!
03-21-2004, 09:31 PM
Editing the fefault web page is simple - just open the file in a text editor and bingo ;)
I dont know what you mean by 'GNU/mysqladmin', do you want a gui for mysql?? There are a number of these available, there's one on the mysql site called mysqlcc (mysql control center). To test the server install try putting an index.php in your server root (the www directory i expect) and place this code in it :
<?php
phpinfo();
?>
Look at this through a browser, and if you see a nicely formatted page then apache is set up to use php ok. The items on the page are configuration parameters that could be of use to you. One of these will be the server root (i think).
As for articles and tutorials, try phpbuilder.com - i found thisreally useful when learning php a while ago.
Good luck
Robin
MaxxxaM
03-21-2004, 09:41 PM
Thats the thing I can't put any thing in the www folder "Access Denied
could not write to /var/www/html/index.php" I hate beind a pain
MaxxxaM
Choozo
03-22-2004, 05:30 AM
You probably need to be 'root' to write to that directory.
In a console/terminal:
su
<rootpassword>
echo "<?php phpinfo(); ?>" > /var/www/html/index.php
exit
Cheers :)
Corrected a little typo in my suggested solution