Guest Lethe Posted August 31, 2006 Report Share Posted August 31, 2006 /*first of all sorry my english :mellow: */ Hi, i'm using mandriva 2006, and i tried some php scripts on my local host.. when i tried to install invision power board i get some error like that Warning! The following errors must be rectified before continuing! ·You cannot install Invision Power Board. IPB requires that the XML functions in PHP are enabled, please ask your host to enable XML. How can i install xml..? :unsure: And i wanna upgrade my Php version PHP4 to PHP5, what can i do.. thank you.. Can Quote Link to comment Share on other sites More sharing options...
Guest Lethe Posted September 1, 2006 Report Share Posted September 1, 2006 (edited) now i got one problem more.. i start mozilla, and go http://localhost/index.html... it's seems work fine until i try to go to the other files for example http://localhost/other.html, http://localhost/php/index.php etc. browser don't work.. and still http://localhost/index.html running.. i think i must learn lots of things in linux.. :S :S i hope you understand.. thank you Can Edited September 1, 2006 by Lethe Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted September 1, 2006 Report Share Posted September 1, 2006 How can i install xml..? unsure.gif And i wanna upgrade my Php version PHP4 to PHP5, what can i do.. Just do this: urpmi php-xml that will install the php5 version. The best thing to do next is this: rpm -qa | grep php will list all packages with php installed. Make a note of the version 4 packages, and then do this command: urpmf --name php this command will list all php packages available, including php5. If you don't get any, make sure you visited the easyurpmi link at the top of this page, and have added main, contrib, updates, plf-free and plf-nonfree for all possible packages. Then do the above command again, and just install the ones you need using: urpmi packagename Here is an example I used for finding your xml package: [ian@europa ~]$ urpmf --name php | grep xml php-xml:php-xml-5.0.4-1mdk.i586.rpm php-xmlrpc:php-xmlrpc-5.0.4-1mdk.i586.rpm php-domxml:php-domxml-20030407-2mdk.i586.rpm php-simplexml:php-simplexml-5.0.4-1mdk.i586.rpm php-pear-XML_sql2xml:php-pear-XML_sql2xml-0.3.2-6mdk.noarch.rpm php4-xml:php4-xml-4.4.0-1mdk.i586.rpm php4-domxml:php4-domxml-4.4.0-1mdk.i586.rpm php4-xmlrpc:php4-xmlrpc-4.4.0-1mdk.i586.rpm this command filtered all php packages for ones containing xml. So you see from the names, that the first part is separated with a colon ( : ) and then you see the full package name. You just need the first part, so for example: urpmi php-xml as mentioned before. Or php4-xml if you wanted version 4. If index.php isn't working, then you need to do this: [ian@europa ~]$ urpmf --name mod | grep php apache-mod_php:apache-mod_php-2.0.54_5.0.4-4mdk.i586.rpm apache-mod_php:apache-mod_php-2.0.54_5.0.4-4mdk.i586.rpm apache-mod_php4:apache-mod_php4-2.0.54_4.4.0-2mdk.i586.rpm apache-mod_suphp:apache-mod_suphp-2.0.54_0.5.2-2mdk.i586.rpm apache1-mod_php4:apache1-mod_php4-1.3.33_4.3.11-1mdk.i586.rpm apache1-mod_php5:apache1-mod_php5-1.3.33_5.0.4-1mdk.i586.rpm emacs-php-mode:emacs-php-mode-102-6mdk.noarch.rpm chances are a simple: urpmi mod-php will do the trick for php5 mod to apache to get it working. Restart the apache/httpd service for changes to take effect. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted September 1, 2006 Report Share Posted September 1, 2006 If some pages are viewable, and some others are not, it may be a permissions issue. See if either the 'apache' user or the 'apache' group has 'read' permission on the files you can't view. Yves. Quote Link to comment Share on other sites More sharing options...
Guest Lethe Posted September 1, 2006 Report Share Posted September 1, 2006 well.. solved xml and php problems.. but still i can't install some scripts on localhost.. i think it's mysql or chmod problem.. how can i solved it.. http://s10.photobucket.com/albums/a126/ask...t/snapshot6.jpg tnx.. ;) Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted September 1, 2006 Report Share Posted September 1, 2006 Maybe you need a php-mysql package as well: [ian@europa ~]$ urpmf --name php | grep mysql php-mysql:php-mysql-5.0.4-1mdk.i586.rpm php-mysql:php-mysql-5.0.4-1mdk.i586.rpm php-mysqli:php-mysqli-5.0.4-1mdk.i586.rpm php4-mysql:php4-mysql-4.4.0-1mdk.i586.rpm phpmyvisites:phpmyvisites-1.3.2-1mdk.noarch.rpm check and install from this list. Remember, the commands I've listed here, it will help you to solve your own problems too ;) Quote Link to comment Share on other sites More sharing options...
Guest Lethe Posted September 1, 2006 Report Share Posted September 1, 2006 [root@localhost /]# urpmf --name php | grep mysql php-mysql:php-mysql-5.0.4-1mdk.x86_64.rpm php-mysql:php-mysql-5.0.4-1mdk.x86_64.rpm php-mysqli:php-mysqli-5.0.4-1mdk.x86_64.rpm php4-mysql:php4-mysql-4.4.0-1mdk.x86_64.rpm [root@localhost /]# urpmi php-mysql The package(s) are already installed [root@localhost /]# :huh: Quote Link to comment Share on other sites More sharing options...
tyme Posted September 1, 2006 Report Share Posted September 1, 2006 something is incorrect with either the SQL config in your IPB install or with the configuration of your SQL Server - they aren't matching up (username, password, database name?), double check them. Quote Link to comment Share on other sites More sharing options...
Guest Lethe Posted September 2, 2006 Report Share Posted September 2, 2006 i tried lots of things for mysql.. but i couldn't solve the problem.. i get a lot of error.. i can't create db or change root password... etc. etc. now i want to delete all of the things of mysql and reinstall it... what can i do.. tnx Can Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted September 2, 2006 Report Share Posted September 2, 2006 [root@localhost /]# urpmf --name php | grep mysql php-mysql:php-mysql-5.0.4-1mdk.x86_64.rpm php-mysql:php-mysql-5.0.4-1mdk.x86_64.rpm php-mysqli:php-mysqli-5.0.4-1mdk.x86_64.rpm php4-mysql:php4-mysql-4.4.0-1mdk.x86_64.rpm [root@localhost /]# urpmi php-mysql The package(s) are already installed [root@localhost /]# :huh: Firstly, from my previous post, this shows what packages are available to install. To show what is installed on your system, do: rpm -qa | grep php will list all php installed packages. You can then see if php-mysql is installed or not. If you want to remove databases, you need to do: mysql -u root -p (enter password when prompted) drop database dbname replace dbname with the name of the database, do all this for any added. You can use: show databases; to see what databases are created. Then you can just do: urpme MySQL to get rid of mysql, it's case sensitive so type as above. Maybe also do: rpm -qa | grep mysql to see other packages installed, and: rpm -qa | grep MySQL as both are case-sensitive. Remember, urpmf is for seeing what packages are available for install, and rpm -qa for packages you want to see you have got installed. Quote Link to comment Share on other sites More sharing options...
Guest Lethe Posted September 2, 2006 Report Share Posted September 2, 2006 thanks for your help.. i deleted all apache php and mysql files and i installed 'xampp'.. my localhost works fine now.. thank you.. can Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.