LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-01-2006, 02:19 PM   #1
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Rep: Reputation: 15
phpMyAdmin troubles, please help!!!


Upon running the "setup.php" file to create/configure "config.inc.php" I received this error:

" Warning: main(./libraries/common.lib.php) [function.main]: failed to open stream: No such file or directory in /srv/www/htdocs/phpMyAdmin/setup.php on line 10

Fatal error: main() [function.require]: Failed opening required './libraries/common.lib.php' (include_path='/usr/share/php') in /srv/www/htdocs/phpMyAdmin/setup.php on line 10"


What does this mean? How do I fix it? "common.lib.php" exsists as well as all mentioned directories, I checked. I was just checking my PHP test page, and discovered that in the configure command section it reads '--without-mysql'. Now, I'm not sure if that has anything to do with it, but figured I'd pass it by you incase it did.
 
Old 06-01-2006, 03:18 PM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Check your files perms. The "libraries" directory (and the others) should be readeable and executable by your web server and all files should be readable. Issuing the following commands inside the phpMyAdmin directory should insure you have correct perms:
Code:
find . -type d -exec chmod a+rx {} \;
find . -type f -exec chmod a+r {} \;
 
Old 06-01-2006, 03:42 PM   #3
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Still getting the same error.
 
Old 06-01-2006, 03:48 PM   #4
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Can you move to your "libraries" folder and post the result of these 2 commands ?
Code:
pwd
ls -l
 
Old 06-01-2006, 04:15 PM   #5
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Results were as follows:
linux:/srv/www/htdocs/phpMyAdmin/libraries # pwd
/srv/www/htdocs/phpMyAdmin/libraries
linux:/srv/www/htdocs/phpMyAdmin/libraries # ls -l
total 1086
drwxrwxrwx 10 root root 3048 Jun 1 15:53 .
drwxrwxrwx 9 root root 2704 Jun 1 15:53 ..
-rw-rw-rw- 1 root root 95 Jun 1 15:53 .htaccess
-rw-rw-rw- 1 root root 26067 Jun 1 15:53 Config.class.php
-rw-rw-rw- 1 root root 7057 Jun 1 15:53 Theme.class.php
-rw-rw-rw- 1 root root 9235 Jun 1 15:53 Theme_Manager.class.php
drwxrwxrwx 2 root root 168 Jun 1 15:53 auth
-rw-rw-rw- 1 root root 27577 Jun 1 15:53 blowfish.php
-rw-rw-rw- 1 root root 6659 Jun 1 15:53 bookmark.lib.php
-rw-rw-rw- 1 root root 10268 Jun 1 15:53 charset_conversion.lib.php
-rw-rw-rw- 1 root root 8714 Jun 1 15:53 check_user_privileges.lib.php
-rw-rw-rw- 1 root root 124583 Jun 1 15:53 common.lib.php
-rw-rw-rw- 1 root root 37912 Jun 1 15:53 config.default.php
-rw-rw-rw- 1 root root 40748 Jun 1 15:53 database_interface.lib.php
-rw-rw-rw- 1 root root 2246 Jun 1 15:53 db_config.lib.php
-rw-rw-rw- 1 root root 1855 Jun 1 15:53 db_details_common.inc.php
-rw-rw-rw- 1 root root 5420 Jun 1 15:53 db_details_db_info.inc.php
-rw-rw-rw- 1 root root 3793 Jun 1 15:53 db_details_links.inc.php
-rw-rw-rw- 1 root root 2508 Jun 1 15:53 db_table_exists.lib.php
drwxrwxrwx 2 root root 112 Jun 1 15:53 dbg
drwxrwxrwx 2 root root 128 Jun 1 15:53 dbi
-rw-rw-rw- 1 root root 1677 Jun 1 15:53 display_create_database.lib.php
-rw-rw-rw- 1 root root 4550 Jun 1 15:53 display_create_table.lib.php
-rw-rw-rw- 1 root root 39094 Jun 1 15:53 display_export.lib.php
-rw-rw-rw- 1 root root 6693 Jun 1 15:53 display_import.lib.php
-rw-rw-rw- 1 root root 3465 Jun 1 15:53 display_select_lang.lib.php
-rw-rw-rw- 1 root root 97914 Jun 1 15:53 display_tbl.lib.php
-rw-rw-rw- 1 root root 2321 Jun 1 15:53 display_tbl_links.lib.php
drwxrwxrwx 2 root root 392 Jun 1 15:53 engines
drwxrwxrwx 2 root root 264 Jun 1 15:53 export
-rw-rw-rw- 1 root root 2400 Jun 1 15:53 file_listing.php
-rw-rw-rw- 1 root root 4897 Jun 1 15:53 footer.inc.php
-rw-rw-rw- 1 root root 284 Jun 1 15:53 footer_custom.inc.php
drwxrwxrwx 3 root root 152 Jun 1 15:53 fpdf
-rw-rw-rw- 1 root root 3318 Jun 1 15:53 get_foreign.lib.php
-rw-rw-rw- 1 root root 3724 Jun 1 15:53 grab_globals.lib.php
-rw-rw-rw- 1 root root 10214 Jun 1 15:53 header.inc.php
-rw-rw-rw- 1 root root 284 Jun 1 15:53 header_custom.inc.php
-rw-rw-rw- 1 root root 720 Jun 1 15:53 header_http.inc.php
-rw-rw-rw- 1 root root 1973 Jun 1 15:53 header_meta_style.inc.php
-rw-rw-rw- 1 root root 2649 Jun 1 15:53 header_printview.inc.php
drwxrwxrwx 2 root root 144 Jun 1 15:53 import
-rw-rw-rw- 1 root root 9337 Jun 1 15:53 import.lib.php
-rw-rw-rw- 1 root root 4307 Jun 1 15:53 information_schema_relations.lib.php
-rw-rw-rw- 1 root root 7091 Jun 1 15:53 ip_allow_deny.lib.php
-rw-rw-rw- 1 root root 3994 Jun 1 15:53 kanji-encoding.lib.php
-rw-rw-rw- 1 root root 3724 Jun 1 15:53 left_header.inc.php
-rw-rw-rw- 1 root root 2701 Jun 1 15:53 mcrypt.lib.php
-rw-rw-rw- 1 root root 17201 Jun 1 15:53 mult_submits.inc.php
-rw-rw-rw- 1 root root 14646 Jun 1 15:53 mysql_charsets.lib.php
-rw-rw-rw- 1 root root 3500 Jun 1 15:53 ob.lib.php
-rw-rw-rw- 1 root root 10095 Jun 1 15:53 plugin_interface.lib.php
-rw-rw-rw- 1 root root 6940 Jun 1 15:53 read_dump.lib.php
-rw-rw-rw- 1 root root 34304 Jun 1 15:53 relation.lib.php
-rw-rw-rw- 1 root root 6928 Jun 1 15:53 relation_cleanup.lib.php
-rw-rw-rw- 1 root root 1249 Jun 1 15:53 sanitizing.lib.php
-rw-rw-rw- 1 root root 21284 Jun 1 15:53 select_lang.lib.php
-rw-rw-rw- 1 root root 4175 Jun 1 15:53 select_server.lib.php
-rw-rw-rw- 1 root root 1673 Jun 1 15:53 server_common.inc.php
-rw-rw-rw- 1 root root 2242 Jun 1 15:53 server_links.inc.php
-rw-rw-rw- 1 root root 4540 Jun 1 15:53 session.inc.php
-rw-rw-rw- 1 root root 20816 Jun 1 15:53 sql_query_form.lib.php
-rw-rw-rw- 1 root root 21026 Jun 1 15:53 sqlparser.data.php
-rw-rw-rw- 1 root root 94298 Jun 1 15:53 sqlparser.lib.php
-rw-rw-rw- 1 root root 13610 Jun 1 15:53 sqlvalidator.class.php
-rw-rw-rw- 1 root root 2985 Jun 1 15:53 sqlvalidator.lib.php
-rw-rw-rw- 1 root root 9859 Jun 1 15:53 storage_engines.lib.php
-rw-rw-rw- 1 root root 10615 Jun 1 15:53 string.lib.php
-rw-rw-rw- 1 root root 10490 Jun 1 15:53 tbl_indexes.lib.php
-rw-rw-rw- 1 root root 21469 Jun 1 15:53 tbl_move_copy.php
-rw-rw-rw- 1 root root 30012 Jun 1 15:53 tbl_properties.inc.php
-rw-rw-rw- 1 root root 1030 Jun 1 15:53 tbl_properties_common.php
-rw-rw-rw- 1 root root 4148 Jun 1 15:53 tbl_properties_links.inc.php
-rw-rw-rw- 1 root root 3537 Jun 1 15:53 tbl_properties_table_info.inc.php
-rw-rw-rw- 1 root root 9403 Jun 1 15:53 tbl_replace_fields.inc.php
drwxrwxrwx 2 root root 864 Jun 1 15:53 transformations
-rw-rw-rw- 1 root root 8335 Jun 1 15:53 transformations.lib.php
-rw-rw-rw- 1 root root 16057 Jun 1 15:53 unzip.lib.php
-rw-rw-rw- 1 root root 6180 Jun 1 15:53 url_generating.lib.php
-rw-rw-rw- 1 root root 6478 Jun 1 15:53 zip.lib.php
 
Old 06-01-2006, 04:23 PM   #6
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
I'm still receiving the same errors, now I read the documentation and that's what I'm following. Now what I think might have happened was that I misinterpreted the directions and the problem I was receiving is due to the fact that I had copied the setup.php file to the main /phpMyAdmin/ directory. Instead I think I should have left it in the /phpMyAdmin/scripts/. Can anyone confirm?

While attempting to access the /phpMyAdmin/scripts/setup.php i get the "Object not found". All permissions are read/write.

Last edited by cweepy; 06-01-2006 at 04:27 PM.
 
Old 06-01-2006, 04:58 PM   #7
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Ok, got it.... line 9 of script is "chdir('..');" now I understand the error on line 10...

The setup script should remain in the script folder.

Meanwhile.. in my opinion, the easiest way to install (and actually understand what your are doing) is.
Code:
cd path/to/phpMyAdmin
cp librairies/config.default.php config.inc.php
Then just edit the config.inc.php file with your favorite editor, save, load, enjoy.

I just installed this new version (2.8.1) in place of my 2.8.0-beta. I just copied my old config file over and its done

Good luck.

PS: It is always a good idea to read the documentation and follow the direction before posting to a forum
 
Old 06-01-2006, 08:00 PM   #8
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
I did read: the provided documentation, exsisting postings on two separate support forums, as well as a HOWTO, all prior to posting. That was mentioned in my previous post. I am however a newbie, and I came to believe that setup.php was the easiest way to accomplish the creation of config.inc.php; mistakes will happen. I thank you for your help.

I'd welcome your participation in any future problems I might encounter, .
 
Old 06-01-2006, 09:45 PM   #9
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Resolved, your solution was correct! Thankyou so very much. phpMyAdmin is now up and running. I must make note to anyone that runs into this same problem, you must use for the controluser/password fields the actual password to the mysql server. Also, remember to reboot the server once all configuration modifications are completed.
 
Old 06-01-2006, 09:46 PM   #10
cweepy
Member
 
Registered: Mar 2006
Location: Il, USA
Distribution: SUSE, Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Oh, and make sure you have installed PHP4-extension module!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
phpMyAdmin kcals Linux - Software 3 05-30-2006 08:23 PM
troubles with SATA, troubles with NVIDIA aevangelica Linux - Hardware 6 10-17-2005 02:39 AM
can not use phpmyadmin haola Debian 1 06-09-2005 10:42 PM
phpMyadmin riluve Linux - Software 4 02-13-2005 05:04 PM
phpmyadmin? gruessle Linux - Newbie 4 01-09-2004 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration