PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Phreya
New Member
New Member


Joined: Oct 29, 2005
Posts: 1
Location: Canada

PostPosted: Sat Oct 29, 2005 4:51 pm Reply with quote Back to top

I searched on the internet for resolutions to my issue and have tried several with no success.

This is my current error after reinstalling PHP and MySQL as recommended:

Warning: main(mainfile.php) [function.main]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\main\admin.php on line 39

Fatal error: main() [function.require]: Failed opening required 'mainfile.php' (include_path='.;C:\php5\pear') in C:\Inetpub\wwwroot\main\admin.php on line 39



I have

PHP installed in C:\PHP
MySQL installed in C:\MySQL
PHP-Nuke installed in C:\Inetpub\wwwroot\main



Thanks.
View user's profile Send private message ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat Oct 29, 2005 9:38 pm Reply with quote Back to top

Well, from the error message, it appears that mainfile.php either doesn't exist or is not set for READ permissions. The versions of PHP and MySQL that you are using are not ready for prime time and are beta at best. I would recommend that you stick with PHP 4.4.0 and MySQL 4.0.25 (maybe .24, I forget). Also, to avoid MANY headaches, scrap IIS completely and use Apache 1.3.34.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Steptoe
Involved
Involved


Joined: Oct 09, 2004
Posts: 291

PostPosted: Sun Oct 30, 2005 1:58 pm Reply with quote Back to top

I would also sugest u partition your hd, put all your install webserver stuff to say
E:\webserverstuff\
\Apachie
\mysql
\netpbm etc

Then it is a simple matter to run regular backups of the whole partition to another location preferably on the local network or at least a separate backup partition. Something goes wrong, turn off services, rename e:\webserver folder, copy last backup of \webserver back , turn on services.
Keeping files /folders that can be accessed from externally to that machine in the same place as your O/S is not a good idea.
Also a good idea is to have a partition where u can keep a Ghost file of C:\
O/S fall over..presto 10 mins later, machine is fully reinstaled and configured and back in business. And no need to run Windows restore any more. A note about Win Restore, it restores on bootup...a server on good hardware runs for months without a reboot except when updating windows and drivers.
"He who made a back up, Laughs last"
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum