|
|
Posted in Computers & Tech / Networking
Author: Nuwan Total-Replies: 30 Hi... I downloaded and installed the newest version of xampp. But when i try to start the Apache service it does not get started. The MySql and FileZilla services start without any problem. But the Apache service does not start. It returns with a message saying Apache service not started [-1]. I tried by stopping the windows firewall but didn't have any luck. If there is anyone who can help me out here i would be really great full. Thanks in advance. Nuwan.
Thu Sep 6, 2007
Reply New Discussion
Posted in Computers & Tech / Software / Internet & Network Clients..
Author: sonoftheclayr Total-Replies: 2 I use XAMPP as the development server on my laptop but recently the Apache version bundled hasn't been working saying that there are "no listening sockets available". It is currently set to the default port of 80 but even when I cahnge it to something unused it still doesn't work. I can't find a version of XAMPP with Apache 1 installed as I heard that downgrading it might work. I can't thinkof anything that would cause it to stop working but even when I close all the programs and stop running all the background services except explorer it still doesn't work. Can anybody help me with this problem as it is really stalling the development of my web page and I am starting to get desperate.
Sun Aug 27, 2006
Reply New Discussion
Posted in Computers & Tech / Software / Internet & Network Clients..
Author: Flamez Total-Replies: 8 I will start writing my php files soon and would want to know how to see my output file(what it looks like). I have installed apache and when i put in the address for it, it just shows me my coding. How can i display what i have actually done without having to use my hosting service. I want to test it first? A little confused on that.
Sun Aug 10, 2008
Reply New Discussion
Posted in Computers & Tech / Internet and Websites
Author: justme Total-Replies: 2 QUOTELet's start by installing apache (http server) . you can download theapache installer on www.apache.org . download the verion you like , even thought , in win systems i recomand verion 2 (this tutorials is for apache 2) . here is a link for it : http://apache.mirror.nedlinux.nl/dis...x86-no_ssl.msi for a faster mirror , visit http://httpd.apache.org/download.cgi . After downloading the file (.msi installer) , run it . The installation wizard is a next , next , finish 'work' ... The installer will ask you some details like your server name , your server adress and the admin's mail adress . if you have a domain name or a hostname , enter the info's like this : Server Name : your_domain.org Server Adress : www.your-domain.org Admin Email : admin@yourdomain.org if you don't have one , you should get on e free at : http://www.no-ip.org/ Check the 'Run as a service for all users on port 8080' option and click next , finish to fiinish the instllation . Advice : Install it in c: (he creates a folder for it , don't worry) to make sure you configure it easyer . If you are finished , open up a browser and write in the adress bar : [note=jeigh]Article was ripped from http://www.programmerworld.net/articles/ti...tall_apache.php . Check there if you are interested in the rest of the information.[/note]
Mon Aug 14, 2006
Reply New Discussion
Posted in Computers & Tech / Databases
Author: yordan Total-Replies: 2 Which mysql distro are you using ? On which OS ? I would recommend you to use the portable version of XAMPP, it does not need to be "installed", you find it here : http://portableapps.com/apps/development/xampp QUOTEXAMPP is an integrated server package of Apache, mySQL, PHP and Perl (the AMPP in XAMPP) that all run from a removable drive. Everything is pre-configured and ready to go just by unzipping or installing it.
Fri Jul 24, 2009
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / PHP
Author: frazz86 Total-Replies: 6 If you need the link to download xampp here they are Linux XAMPP Window's XAMPP Mac OS XAMPP Solaris XAMPP After the download has finished it should automatic come up with its setup if it does not come up with a set up follow these instructions: Step1: Go to where you Installed the files Step2:Click Setup_XAMPP Step3:Follow its steps Step4 Your back to where you should be! Now click XAMPP_start and wait for it to load OR Click XAMPP_control This also serves the same purpose as XAMPP_start Once you have opened the control then click start on Apache and Mysql Once (xampp start) has finished loading and auto close Once (xampp control) you have started Apache and Mysql You can now start making PHP files Oh YEY! once you have made a php file you can test it Put the php file in your XAMPP folder Under HT_Docs And then type in your browser http://localhost/phpfilename And your Php file will load !! Have fun
Wed Aug 25, 2010
Reply New Discussion
Posted in Computers & Tech / Databases
Author: WeaponX Total-Replies: 5 Maybe you should try requesting this in the Tutorials section? It would get better exposure over in that forum. I assume you want to do the hosting? If you just want to set one up for your own testing purposes (not for outside use), you should be ok installing the MySQL package. Or use a program like XAMPP which has Apache, PHP and MySQL.
Fri Jun 24, 2005
Reply New Discussion
Posted in Computers & Tech / Databases
Author: HannahI Total-Replies: 5 Hi Guys. I am a developer the does a lot of developing for the web in PHP, I need MySQL. I have Apache Web Server and phpMyAdmin installed on my laptop. I can get phpMyAdmin to work but I can't use it because I can't find a file that will let you set up an account. Cheers
Wed Oct 7, 2009
Reply New Discussion
Posted in Computers & Tech / What's New...?
Author: 8ennett Total-Replies: 5 This has taken me the best part of two days to solve and now I've got it working I feel so relieved I think I'll share the solution for anyone online who has the same problem. After constant googling I came up with either useless solutions that state the obvious or contain responses from people who offer no help what so ever. The problem was I installed Apache 2.2.17 and PHP 5.2.14 on a x32 Vista Home SP2 HP Laptop. When I tried to start the apache server it wouldn't work. It did initially but when attempting to restart or stop and start the server it wouldn't. I even tried manually starting the apache server through the windows services app but it kept returning an Error 1067, which was no help at all, and the apache error log simply said it was PROBABLY a bad shutdown of the server previously. I eventually narrowed the problem to PHP and not apache, after a lot of tedious trial and error work I might point out. As soon as I realised this then I gave up for the night and watched some DS9. Today I ran through a lot more tedious trial and error (because yet again the error log was NO help) and eventually narrowed the problem down to the extensions. If you don't have any PHP extensions included in your php.ini file then php and apache work perfectly. I thought it might have been a particular dll however the same error occurred no matter which or how many extensions were included in the .ini file. Obviously having no extensions in php is useless if you want to use a database, use OpenSSL in your php and so on so to make the whole excercise worthwhile I had to knuckle down and work on this specific problem as fast as I possibly could without hesitation or delay...12 hours later I finally got a working solution which you need to follow exactly if you are having the same problem. Download Apache 2.0.64 Download PHP 5.2.9-2 Install apache as you normally would, then when installing PHP ensure you install EVERY sub-option. A spare copy of the php manual and also PEAR can't hurt really can it? Plus the client script is essential. Next right-click on "Computer" (either on your desktop or start menu depending on how you have vista configured), "Properties" then on the side bar "Advanced system settings" and at the bottom of the new window click "Environment Variables". Now in the lower box scroll down until you find an entry where the "variable" name is "Path", double-click on it and check the value of "Variable value" contains: C:\Program Files\PHP\ext\; If it doesn't contain that value then add it to the start of the "Variable value" value, just MAKE SURE THE REST OF THE TEXT IN THIS BOX REMAINS UNCHANGED OR YOU CAN REALLY SCREW YOUR SYSTEM. Right, now the problem should be solved. There seems to be some kind of problem with PHP 5.2.11-5.2.14 when installing it on Vista, and personally the 2.0.x version of apache is in my opinion the most stable. So I hope this solves the problem in case anyone is having similar problems, and if one single person mentions Wamp in this thread then I swear to god I will e-Punch you lol Wamp is terrible, a complete novices choice, it's both unnecessarily complicated to configure both apache and php and also doesn't enable all configuration options in either as well. What they fail to mention is that it is a stripped down version of apache, mysql, apache and phpmyadmin and serves no advanced uses what so ever. So yes, any mention of Wamp and I will hunt you down and slap you round the face with a wet kipper. And don't even get me started on Xampp lol
Tue Nov 9, 2010
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / PHP
Author: BAJIEPA Total-Replies: 11 f you would like to learn PHP you will find all you need to get started here... http://www.php.net/ - official documentation is here http://www.hotscripts.com/PHP/ - includes many tutorials, selections of PHP programming-related books. http://www.faqts.com/knowledge_base/index.phtml/fid/51 - Tutorials http://www.php-help.net/ http://httpd.apache.org/docs/ Starting Apache...
Sat Feb 19, 2005
Reply New Discussion
Posted in Computers & Tech / How-To's and Tutorials / MISC (no matching category)
Author: mastercomputers Total-Replies: 4 Installing Apache Web Server on Windows XP This article deals with installing Apache Web Server on Windows XP. This guide is easy to follow, for everyone to make use of it and it will help you have your very own personal web server for local web designing and development. Out of the numerous web servers on the internet, none of them prevail as the open source Apache web server does, the majority of all web servers out there run on Apache. This should make perfect sense to why I chose to use this server, because I want to familiarise you with the most widely used web server. To get ourselves up and running quickly, we will be using the easy to install distribution known as XAMPP to ease our troubles. I could show you a step by step basis, of installing each component but because this is primarily aimed at beginners but suitable for everyone to use, we needed an easy way to do this. If you are familiar with XAMPP then you may not need this guide, since all I do is outline how to install it and later on if people still have problems, I would like to help them out in this thread, so if you do have problems with my steps and something isn't going right for you then ask in here and I'll try to help you out. Many people know from their own experience that it is not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and PERL. XAMPP is an easy to install Apache distribution containing MySQL, PHP and PERL as well as some other programs that provide more features you can take advantage of. XAMPP is really very easy to install and to use it - just download, extract and start. Please Note: XAMPP is configured with all features turned on, From a security point of view, this default configuration is not secure enough for a live production environment. Do not run XAMPP for this type of environment. (Unless you know how to configure it correctly) What You Will Need [tabl][trow][tcol]Product[/tcol][tcol]Version[/tcol][tcol]Size[/tcol][tcol]Download[/tcol][/trow][trow][tcol]XAMPP Windows [Basic package][/tcol][tcol]1.5.5[/tcol][tcol]32.9MB[/tcol][tcol]Installer[/tcol][/trow][/tabl] What You Need to Do Start off by downloading the XAMPP installer and save it to your Desktop or a location that will be easily accessible to you. We will be using the desktop for this tutorial. For the latest version of XAMPP you should check out the XAMPP for Windows website for a more uptodate version. Getting Started I will now run through the installation process with you, I am providing images to illustrate the steps, but remember things may look different for you since not everyone's computer is exactly alike. Now that we have downloaded the XAMPP installer, we run the program by using the left mouse button and double clicking on the icon for xampp-win32-1.5.5-installer.exe, this will start verifying the file integrity, if the download is corrupted this will let you know and you should re-download the file again. It will then present us with the Installer Language dialog box. I will be using English, if you use another language then see if they have your language there but this tutorial will remain with the English version. ![]() Next up you will be presented with the welcome screen which starts off the Setup Wizard that will guide you through the installation, I'm just trying to give you a sense of what's going on but you can ignore me and follow the Wizard if you're comfortable, but if things go wrong, you can check back or ask here. To save me repeating what it says though, please be sure to read it as XAMPP does make this quite easy to install. ![]() After clicking on Next you are now presented with the install location screen which is the location you'll pick, that you would like XAMPP to be installed at, the default location is C:\Program Files\. Due to my computer configuration, I'll be using E:\Program Files\ which is where I store all my programs, but you should have no problems leaving it as default. ![]() After clicking on next, another screen appears, this time it's the XAMPP Options, the default does not automatically run Apache and MySQL on start up, so we should change it so that it does, unless you are comfortable with starting it manually. If you aren't comfortable, then check Install Apache as service and Install MySQL as service. ![]() After you click install, it starts installing XAMPP by extracting the files to the location you picked for installation. This could take a while depending on your system specifications, so why not make yourself something to eat, or have a cup of your favorite beverage. If you made it this far, then you should celebrate. Just be patient while it is installing. Do not be alarmed if more Windows pop up during this process, this is part of the installation routine for installing PHP. XAMPP should now be installed and we can leave the Setup Wizard. ![]() The final steps installs the services, to make sure that Apache and all the features are installed correctly and work, during this stage you may see more pop ups, this is to be expected. If running Windows Firewall or any other firewall, you may receive a Windows Security Alert/Warning about it wanting to block Apache, just click on Keep Blocking or Deny, or whatever allows your firewall to stop it allowing access over the Internet. ![]() We should now be notified that the services installed correctly. ![]() We are finally finished, another dialog box appears congratulating us. We are then asked if we would like to start the XAMPP Control Panel, and Yes we do. ![]() The XAMPP Control Panel allows us to control which services we want running, the location we installed XAMPP. The important part is what we have running though. We should have Apache and MySQL running, if you think you need FileZilla (FTP server) or Mercury (Mail Transport Agent, like sendmail) then you can start them through this control panel. You can either exit or left click in the taskbar system tray (near the clock iun the corner) the XAMPP icon to minimise the control panel to the tray. ![]() To test if everything is installed, we now open up our web browser (Internet Explorer, Firefox, Opera, etc) and type in the address bar http://localhost/ and we should be presented with the XAMPP splash screen, select your language. Explore around this area, familiarise yourself with everything presented here, your own personal web server is now installed. I wish I could talk more about this area but to not throw you in the deep end yet, I should show you how to test your own pages out first. Lets test it I want you to open up notepad, inside I want you to type or copy and paste this: CODE<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>My Index Page</title> </head> <body> <h1>My Index Page</h1> <?php echo '<p>This is my index page test.</p>'; ?> </body> </html> Save this file as index.php inside C:\Program Files\xampp\htdocs\ and then try http://localhost/ again in your web browser to see if it works. This should be a simple HTML page that has one heading and a paragraph that is created by PHP, this should show PHP is working fine. To get back to the XAMPP page, you will now be required to type http://localhost/xampp/ in your web browser. The End, Well Done Now you have your very own web server installed and can begin working on your own web site locally. Thank you all for reading. MC P.S. I needed hosting credits.
Fri Feb 2, 2007
Reply New Discussion
Posted in Computers & Tech / Programming / Scripting / PHP
Author: Jimmy89 Total-Replies: 10 Welcome to Astahost! To your first question, you can easily download either of the applications to host your own server. XAMPP is a cross-platform web server using Apache, MySQL and PHP plus some other tools. WAMP is the same thing, except its designed for windows and doesn't have all the features that XAMPP has. I have used both, and both are very simple to use. Once one of them is installed and running, you have a web server. If you go to Internet Explorer (or whatever browser you use) and go to http://localhost you should see the test page for the server you installed. Secondly, setting up the server is the easy bit, getting in onto the Internet is a lot harder. It depends on how your connected to the Internet, what hardware you have and what connection you have. Some ISP's don't like people hosting their own servers and block the HTTP Port (TCP 80). This makes it incredibly hard to host your own server. If you are allowed to host a server, you then need to be able to access the computer via the internet with your Public IP. If you have a router, you will probably have to use port forwarding to forward Port 80 to your computer's server port. For more information on Port Forwarding, and examples on how to forward ports with specific routers, go to www.portforward.com. If you are lucky to connect to your PC via the Internet using a Public IP, your doing well! Lastly, once you have a web server running, both applications that you mentioned include MySQL. This is a standard database that can be used with your websites. MySQL is used all over the Internet and is what runs these forums! WAMP comes with PhpMyAdmin which is a very simple-to-use application to manage databases. If you get to being able to setup databases, many people here can help you setup a database. If this seems like it is going to be very complicated for you, or you can't manage to do it. I suggest becoming a hosted member here at Astahost or at Trap17 (Astahost's sister site) and hosting your site here. This means that all the hard work is done and all you need to do is make the website! Hopefully, this has been helpful to you, If you need any questions answered, don't hesitate to ask.
Wed Apr 2, 2008
Reply New Discussion
Posted in Computers & Tech / How-To's and Tutorials / Programming / PHP
Author: Frazzman Total-Replies: 1 Welcome to my PHP tutorial on how to create a Login script using PHP that connects to a MySQL database and reads usernames and passwords before continuing. STEP 1 (ONE) - Getting prepared First off, you will need to install a program called XAMPP. You can download it from Here. Just follow their step-by-step tutorial on how to set it up. You will need this so you can code in PHP and test it by using phpmyadmin and MySQL. Now, the program I recommend for coding PHP is Notepad++. This is an epic program that can be used to code many different languages. You can download it from Here. STEP 2 (TWO) - Setting up the files First off, we need to create the files for this tutorial. Go ahead and open Notepad++ and create 2 new files. Save them both in the same file, one with the name "index.php" and "login.php" STEP 3 (THREE) - The Login Form Now we need to make the login form for our login script. Open up the index.php and enter this code. CODE<form action='login.php' method='POST'>This will start off the form. action='' means what file this form will be relying on for input data, so we put login.php as our action. The method can either be POST or GET. POST means that a user will be inputting data to send a request, which in this case will be our action. Now put this underneath CODEUsername:<br /><input type='text' name='username' /><br /> Password:<br /> <input type='password' name='password' /><br /> <input type='submit' value='Login' /> </form> Username: is just the text in front of the textbox The input is an option for some sort of input for the user. type='text' means is will be a normal textbox for a user to type something. name='username' is just the name of the textbox. This is crucial for this tutorial. <br /> is just a line break, meaning the next line of coding will be placed on a separate line. input type='password' means this will be a textbox for a password. When a user types something in, it will show up as Dots or *. The name is password. Once again, this is crucial. input type='submit' is the code for a button. value='Login' is the text that will be shown on the buttton. That is the index.php done, now to the next step. STEP 4 (FOUR) - Starting the Login Script and creating our database Open up the "login.php" First, we need to put the PHP tags for our PHP code to work. [PHP]<?php ?>[/PHP] Our coding will go in between these tags. We are going to start off by defining 2 (two) variables. Our Username and password. Enter this code: [PHP]$username = $_POST['username']; $password = $_POST['password'];[/PHP] $username and $password are the 2 (two) variables we are going to be defining. $_POST['username'] and $_POST['password'] is what our variable is. $_POST is the method we put in our login form, which was POST. The ['username'] and ['password'] is the name of those textboxes in our login form. The login will be reading off of those textboxes. Now after that, type this: [PHP]if ($username&&$password) { } else { die("Error: Please enter a username AND password!"); }[/PHP] This means, is the 2 (two) textboxes have something in them, then it will continue on with the script between the { and }. If 1 (one) or both are empty, then the script will terminate itself, showing an error of "Error: Please enter a username AND password!". That is our else statement. Now we need to create an SQL database for the next step. If you did what I said before and installed XAMPP, go to your browser and in the address bar, type: http://localhost/ NOTE: Make sure your Apache and MySQL services are running! Enable them in your XAMPP control panel. When you are at the XAMPP main screen, select phpMyAdmin In the text area where it says Create new database, type whatever name you want your database and click Create. Don't worry about the other stuff. It will take you to a new screen, saying it created the database. In the text field where it says Create new table..., Name the table accounts and put the number of fields as 3 (three). In the first field, put the name as id and the type as INT. Go down to where it says index and choose PRIMARY. Also tick the box for AUTO_INCREMENT. This means the id will start at 0 or 1 and continue everytime a new user is made. In the second field, name it username and the type and VARCHAR, set the max length to 25. For the third field, name it password and the type as VARCHAR. Again, set the max length to 25. Now click Save down the bottom. Now that we got the database out the way, we need to make a username and password for it. Go back to the database you made and at the top of, select the tab that says Privileges. Select New User and choose a username and password for the database. Make sure you have ALL privileges. Ok, that is phpMyAdmin out the way. Still a lot more to go (: STEP 5 (FIVE) - The rest of the Login Script. In between the { and } type: [PHP]$connect = mysql_connect("Host","DB Username","DB Password") or die("Couldn't connect"); mysql_select_db("Name of the database here") or die("Couldn't find database");[/PHP] In this, we are defining the variable $connect. This will execute a MySQL command to connect to the databse, mysql_connect. In the brackets, change the Host to your MySQL host. In this case, it would be localhost. DB Username and DB password is the user you created for the privileges to the database. If it cannot connect, it will terminate the script with the message "Couldn't connect". If all is good, it will execute a MySQL command to select a database, mysql_select_db. In the brackets, type the name of the database you created. Make sure you keep the ""! If it can't find the database, it will terminate. After this we are going to perform a MySQL query. Type this after the above code. [PHP]$query = mysql_query("SELECT * FROM accounts WHERE username='$username'");[/PHP] $query is the variable we are defining. mysql_query is the command to execute a query. In the brackets it says "SELECT * FROM accounts WHERE username='$username'", this means it will search every row in the table accounts for a username $username which was the variable we defined at the top of the script for our username text box. After that, type: [PHP]$numrows = mysql_num_rows($query); if ($numrows!=0) { } else { die("That user does not exist!"); }[/PHP] We are defining the variable $numrows to scourer through the table, mysql_num_rows, for the username you entered for the $query variable. If it finds a username that is the same as the one you entered, it will perform the next step. If it does not find it, it will terminate the script with a message That user does not exist!. Now, in between the { and }, enter: [PHP]while ($row = mysql_fetch_assoc($query)) { $dbusername = $row['username']; $dbpassword = $row['password']; }[/PHP] This one is pretty much defining a variable associated with one of the columns from your database. In this case, we are defining $dbusername and the row username in your table and $dbpassword as the row password in your table. After that, type: [PHP]if ($username==$dbusername&&$password==$dbpassword) { header( 'Location: Your location here'); $_SESSION['username']=$username; } else die("Incorrect Password!");[/PHP] This will check if the username textbox, $username, matches one of the usernames from the table, $dbusername. It will also make sure on top of that the password textbox, $password, is exactly the same as one of the passwords in the table, $dbpassword. If this is true, then it will redirect you to your desired webpage. Change your location here to your desired address, It will also make a session. This means we need to go back to the top of the script and after the <?php we need to put: [PHP]session_start();[/PHP] I will explain this a little further down. If this is not true then it will terminate the script. STEP 6 (SIX) - The session Where we put $_SESSION['username']=$username, this will make a session for that username. What this means is: -If you make a webpage where you want a user to login, then you would put [PHP]if ($_SESSION['username']){ } else { }[/PHP] In between the { and } you would put the code that the user must be logged in to see, and at the top of the webpage, you must put [PHP]session_start();[/PHP] STEP 7 (SEVEN) - Testing the Script Now, in you phpMyAdmin, make an account in the table accounts to test your script. If all went well, you will be fine (: You have no idea how long this took me to type up lol. Thanks would be greatly appreciated.
Fri Aug 12, 2011
Reply New Discussion
Posted in Computers & Tech / Software / Internet & Network Clients..
Author: JohnNitro Total-Replies: 13 I downloaded both but I think I only need one but not sure, and can I start using them before I have a website?
Wed Dec 29, 2004
Reply New Discussion
Posted in General Discussion / Computer Talk
Author: sandeep Total-Replies: 15 Hi friends, I have learnt that one can host own website using apache web server. Does that mean that I will have to keep my computer ON all the time. What about browsing? How will people visit my website. I mean what address will they have to put in the address bar of browser where currently I am putting the address of my website. And what all security policies will I need to apply to prevent my computer being hacked. I was just browsing internet when I came to know that a windows based machine gets hacked in 2 days and a Linux based machine in 4 days on average. If that's true, isn't it quite difficult to be connected to internet for a long time and hosting website. I curious to know more about how to host my website on my web server. I have plans to host my website on the LAN I have in my hostel. Do supply your comments. Regards.
Fri May 12, 2006
Reply New Discussion
|