This has me stumped as after transfering my site from a Windows server to a Unix, its generating a lot of errors. Despite configuring to the new server and importing the sql database, I have a feeling these errors arent true and that its a configuration problem? These errors happen every time I run any php file, including the test. Here are some of the erros.
Quote:
Warning: require_once(mainfile.php) [function.require-once]: failed to open stream: No such file or directory in /home/lordxant/public_html/Index.php on line 15
Fatal error: require_once() [function.require]: Failed opening required 'mainfile.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lordxant/public_html/Index.php on line 15
By the way, mainfile.php is in the firectory.
When I ran the test to see the setup, it shows the configuration but still gets 5 errors as well.
Quote:
Warning: include(config.php) [function.include]: failed to open stream: No such file or directory in /home/lordxant/public_html/Test.php on line 2
Warning: include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lordxant/public_html/Test.php on line 2
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'lordxant'@'localhost' (using password: NO) in /home/lordxant/public_html/Test.php on line 2
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'lordxant'@'localhost' (using password: NO) in /home/lordxant/public_html/Test.php on line 2
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/lordxant/public_html/Test.php on line 2
Access denied for user 'lordxant'@'localhost' (using password: NO)
Here are some of the stats.
PHP version 5.2.5
Cpanel
Unix system (running some type of apachie) I know more info will be needed, so please let me know what else. Windows was easy to fix, Unix is giving me more hair loss then my wife >_< Well almost.
Evaders99 Site Admin
Joined: Aug 17, 2003
Posts: 12397
Posted:
Wed Feb 13, 2008 4:28 pm
Check the permissions of your files and folders?
Generally folders are 755 and files are 644 unless there are special circumstances.
Cpanel had an option to install phpnuke, so just as a test, I did that instead of using my setup and discovered something that unless theres an easyer way, is going to be a HUGE headache. Unlike xp, Unix is caps sensative so a file can be named Index.php and index.php. So guess what? Reason files couldnt be found was because it couldnt find mainfile.php because on the server it was Mainfile.php. Now, is there some easy command to make all the files lower case or am I going to have to change each small file?
gnaunited Corporal
Joined: Jun 22, 2003
Posts: 66
Location: Northglenn, Colorado
Posted:
Wed Jun 11, 2008 11:06 am
Linux / Unix / BSD filesystems are case sensitive, I only bring this up because I noticed that Index.php and Test.php start with a capital letter. So in L/U/B Mainfile.php is a separate from from mainfile.php
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum