shiva86 Posted April 12, 2011 Share Posted April 12, 2011 Hi, I have PHP,Apache server, Mysql installed and running successfully on windows vista operating system. I have all the PHP code and the imported mysql dump file. I need to setup the test server up and running. Can any one help me to set my server up and running please. Thanks in advance shiva Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/ Share on other sites More sharing options...
trq Posted April 12, 2011 Share Posted April 12, 2011 I have PHP,Apache server, Mysql installed and running successfully on windows vista operating system. Um... isn't that your test server already? Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200469 Share on other sites More sharing options...
shiva86 Posted April 12, 2011 Author Share Posted April 12, 2011 Firstly thanks for your kind reply. I have everything with me now, but the problem is to configure PHP with PHP code and then with Mysql and apache server. All the code are separate in PHP . Can u please tell me the process of set the server up and running , so i can see the outputs and make changes readily ........ thanks in advance shiva Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200474 Share on other sites More sharing options...
trq Posted April 12, 2011 Share Posted April 12, 2011 I thought you said you have them successfully installed? All you need do is place your php code within your servers document root then visit http://localhost/filename.php (where filename.php is the name of the php file you wish to view) in your browser. Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200477 Share on other sites More sharing options...
shiva86 Posted April 12, 2011 Author Share Posted April 12, 2011 hey thanks for your quick reply. I want to execute the entire file at the same time, instead of including a single file. I want to see the output as if we are browsing on the net. So in this case should i include al the files at the same time, if so what file name should i use .... shiva Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200486 Share on other sites More sharing options...
trq Posted April 12, 2011 Share Posted April 12, 2011 Sorry but your last post made little sense. I want to execute the entire file at the same time, instead of including a single file. I want to see the output as if we are browsing on the net. Um, to browse the internet you point your browser to a resource. To execute php is no different. Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200489 Share on other sites More sharing options...
shiva86 Posted April 12, 2011 Author Share Posted April 12, 2011 actually the problem is i have been modifying a website, which has been already built and working. so i have all the code and everything, i need to keep it running to make changes. But i m facing problems like above Warning: require_once(../../global-inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\\Apache2.2\htdocs\login.php on line 2 Fatal error: require_once() [function.require]: Failed opening required '../../global-inc.php' (include_path='.;C:\php5\pear') in C:\\Apache2.2\htdocs\login.php on line 2 please let me know what to do ... shiva Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200493 Share on other sites More sharing options...
trq Posted April 12, 2011 Share Posted April 12, 2011 These are likely either coding issues or permissions issues (or both). You'll need to open a new thread in the PHP Help forum and try to be a bit more detailed with what your issues actually are. Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200495 Share on other sites More sharing options...
shiva86 Posted April 12, 2011 Author Share Posted April 12, 2011 ok .. thank you for your help .... Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1200496 Share on other sites More sharing options...
genebom Posted April 28, 2011 Share Posted April 28, 2011 The error message - Warning: require_once(../../global-inc.php) [function.require-once]: failed to open stream: No such file or directory in C:\\Apache2.2\htdocs\login.php on line 2 says that that login.php is trying to include a file called global-inc.php. The problem is that it is using a path (../..) that refers to the C: root directory. So what it's really trying to find is "c:\global-inc.php". If you edit line 2 of login.php and remove the path leaving just the file name it ought to work. Also note that windows uses backslashes rather than forward slashes in file name paths. That may also cause you a problem somewhere else down the line. Best of luck, Gene Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1207549 Share on other sites More sharing options...
genebom Posted April 28, 2011 Share Posted April 28, 2011 Oops - I should have said that using just the filename willl work provided "global-inc.php" is located in the C:\\Apache2.2\htdocs directory. Sorry, Gene Quote Link to comment https://forums.phpfreaks.com/topic/233465-how-to-set-the-server-up-and-running/#findComment-1207551 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.