Sorry didn't check for that. Your php.ini file looks fine. Have you tried adding that mysql.so file to the include path and then restarting apache?
|
i just tried copying that so file into the include directory that the ini points to
i still get [client 24.163.113.48] PHP Fatal error: Call to undefined function mysql_connect() in /var/www/html/phpinfo.php on line 8 i also restarted apache |
try changing extension to = php_mysql.so
Edit = Sorry just remebered that is for windows. |
OK, Lets get back to basics. First was php with your system or did you install yourself? Second if you did complie the program yourself how did you do it? What version are you using?
|
i used yum to install both mysql and php, apache came pre installed when i ordered the VPS
php vesion 5 mysql version4 (would like it ot be 5 but yum doesnt have mysql 5) im thinking abuot deleting apache php and mysql and installing it all by hand from a manual is there a good place that would explain the how to for a complete beginner like myself? (i mean like almost line by line commands of every step) |
To install Apache and PHP download apache2.0.53 and php5
Install for Apache Code:
tar -zxvf httpd2.versionNumber Code:
./configure --with-mysql \ --with-apxs=/usr/local/apache2/bin/apxs Also add the following AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps edit the DirectoryIndex DirectoryIndex index.php index.htm index.html default.php check /usr/bin for apache2ctl if not there then issue the following command Code:
ln -s /usr/local/apache2/bin/apache2ctl /usr/bin/apache2ctl I really think you should compile them for your self. That way you will have a tighter control on where things are and how they are. |
hey thanks i got apache and php installed now, just waiting for your next post :}
|
First did your installation go off with out any problems? Also can you post the information from the phpinfo().
|
Just go here and download from the nearest mirror.
tar -zxvf mysql-version.tar.gz Then just do the following. Code:
./configure --prefix=/usr/local Code:
mysql_install_db --user=mysql |
i would prefer to use mysql 5 becasue on my development machine i use mysql 5
http://dev.mysql.com/downloads/mysql/5.0.html but i dont know which download i need |
http://dev.mysql.com/get/Downloads/M...r.gz/from/pick
Choose that one. Then use the same install instructions from other post. If it is a binary install then let me know. |
i feel dumb becasue i did the apache and php without much of any problem
everytime i use the configure command it says not found but i did ls and i see configure right there btw this is all in /home/mysql should i of done this in /usr/local? |
Doesn't matter. are you doing ./configure
|
yes, the file is extracted
i type cd /home/mysql ./configure |
does it say anything about being a binary installation.
|
All times are GMT -5. The time now is 09:29 AM. |