Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I'm running Fedora Core 4 with Gnome. I am asking how to set up PHP/MySQL to
create a LAMP server. I got apache up and running, so I have an LA, so now I
need to get the MP.
1. I did ./configure, make, and make install last week, and I can't really
remember if there were error messages, but I don't think there were errors.
I also changed the owner from root to mysql; although I don't know if it
worked or not. So now I'm at the step of mysql_install_db:
I enter:
# /usr/src/mysql-4.1.12/scripts/mysql_install_db --user=mysql
returns:
/usr/src/mysql-4.1.12/scripts/mysql_install_db: line85: my_print_defaults:
command not found
Could not find help file 'fill_help_tables.sql' in .support-files or inside
..
At some point during the past few days, I tried running mysqld and got this
(from mysqld.log)
050719 15:21:10 InnoDB: Flushing modified pages from the buffer pool...
050719 15:21:10 InnoDB: Started; log sequence number 0 43634
050719 15:21:10 [ERROR] /usr/local/src/mysql/mysql-4.1.12/bin/mysqld: Can't
create/write to file '/var/run/mysqld/mysqld.pid' (Errcode: 2)
050719 15:21:11 [ERROR] Can' start server: can't create PID file: No such
file or directory
050719 15:21:11 mysqld ended
I've searched forums online and read messages about this error being a
permissions problem. I've dabbled with commands they provide as solutions
but i don't think they are working.
Thanks for any help. As for PHP, I tried to make with mysql extension, but I
got a mysql error and it didn't work. so i tried make and installing it
without mysql to see if i could just get it running, and make & make install
seemed to work fine with no errors. I made sure the httpd.conf file has the
line to tell the server to recognize php files. Then I put a php file called
test.php in the html directory, and tried to make it executable (chmod u+x
test.php) I got the error message
chmod: cannot access 'test.php': No such file or directory.
when i look in the directory (dir) there are 4 files: hello.html index.html
\ test.php \ test.php~
hello.html & index.html both work. what does the backslash mean in front of
the test.php? so maybe php is working alright but the problem is I can't
make the file executable?
everything i've done has been done on the root username.
so i just want to have them up and running, and i've searched around a bunch of posts but nothing seems to work. thanks for any help.
looks like the blackslash is part of the filename; do `mv "\test.php" test.php`
You don't need to make test.php or \test.php executable, the user apache is running as just needs read access to the file.
At the MySQL site it is recomended to use the binaries and not compile from source, If I were you I would follow their advice and follow the installtation instructions absolutely to the letter, MySQL spits its dummy if the slightest thing is not to its liking
For mysql problem
the owner of /var/run/mysqld/ must be mysql
if not you must change it with "chown -R mysql /var/run/mysqld" but you must create
mysql user before.
OR
Try XAMPP
with xampp you can manage the hole system easily.
i searched and found the english files here:
/usr/share/mysql/english and
/usr/local/src/mysql/mysql-4.1.12/share/mysql/english
i think it would be easiest just to start over with mysql and install using an RPM. But I don't know which one to get for x86, FC4. can someone look at the download site and let me know which to get? also, how can i uninstall whatever mysql files are already on the hard drive? thanks
i searched and found the english files here:
/usr/share/mysql/english and
/usr/local/src/mysql/mysql-4.1.12/share/mysql/english
i think it would be easiest just to start over with mysql and install using an RPM. But I don't know which one to get for x86, FC4. can someone look at the download site and let me know which to get? also, how can i uninstall whatever mysql files are already on the hard drive? thanks
Create a symlink from
/usr/local/src/mysql/mysql-4.1.12/ to /usr/local/mysql/
eg.
ln -s /usr/local/src/mysql/mysql-4.1.12/ /usr/local/mysql/
Your better off using the binary distros provided
ok well it looks like the mysql extension was not included on the php installation. when i look at the phpinfo(), the configuration includes "--without-mysql". however, i've configured & installed it it twice using --with-mysql and i haven't had any errors.
i searched the filesystem for mysql.so, and it's not there.
what else can i do? do i just need to get the .so file?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.