hey, i can't find any fo the Apache (1.3) config files. they are not where they usally are.... running slackware 10. thanks
Printable View
hey, i can't find any fo the Apache (1.3) config files. they are not where they usally are.... running slackware 10. thanks
try /etc/apache/
:)
very odd.... i thought i check there. so i set php to work with apache, now
why is it not going to index.php, only index.html? how would i change this?
U should scan and change the following in ur httpd.conf file:
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
Notice that order means priority, so in this case apache would first serve index.php and than if it doesn't exeist it would try to serve index.html
what can i say, your the best. :wink: one last problem/question. when ever i start mysql, (or it starts itself on boot), it immediately shutsback down. how do i get it to keep running?
glad i could help....
now about mysql problem, well u could try and check error log of mysql, but i never used mysql so i don't know where it puts log files, but u can check /var/log ....
no luck...... i searched google for the erorr logs, but i couldn't find the location of them there either. This is the error i get when i try to start it up:Code:ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)
well google for it
try typing mysql "ERROR 2002" or something similar, i don't use mysql so i don't know.
I use PostgreSQL, so if u have any problems with it u can ask me ...
I'm guessing you're getting this error when you try to start the client and not the server? That message means that the server is most likely not up. Try typing as root:Quote:
Originally Posted by forceflow501
(note: you may have to give the correct permissions to rc.mysqld, so do this if you get permission denied)Code:cd /etc/rc.d
./rc.mysqld start
If you don't get any error messages after doing ./rc.mysqld start, then mysql is working. But chances are, if this is a clean installation, you won't get it running because for some reason slackware 10 doesnt come mysql-out-of-the-box ready. Try this series of commands (as root)Code:chmod a+x rc.mysqld
What that just did was install the base database for the mysql user, and then give the mysql user permissions to the mysql folder in /var/lib. This fixes the problem of mysql failing to start. So after you do all of the go back to the first step and try again:Code:mysql_install_db --user=mysql
cd /var/lib
chown -R mysql mysql
If you don't get any errors then mysql is up and running!Code:cd /etc/rc.d
./rc.mysqld start
yeah it seems even though i did a full install slackware had not installed the nessary mysql stuff. i have it running, but seem unable to connect.... i'm using root as username and nothing as the password.......thanks, that helped alot