Active 4 months ago. Viewed k times. I'm also running Ubuntu Tyler Montney. Tyler Montney Tyler Montney 1, 1 1 gold badge 14 14 silver badges 23 23 bronze badges. By default, DirectoryIndex is index. Just create index.
Add a comment. Active Oldest Votes. I recommend using. You only need to add: DirectoryIndex home. EDIT : basic htaccess tutorial.
Augustin 2, 20 20 silver badges 23 23 bronze badges. How do I use htaccess? My landing. My root directory is something else as I changed it in the httpd. Would that be the root directory to which you're referring? Check my edit in the original post for my situation. Actually everything is working now. This will open a console window and start Apache inside it. If you don't have Apache installed as a service, the window will remain visible until you stop Apache by pressing Control-C in the console window where Apache is running in.
The server will exit in a few seconds. However, if you do have Apache installed as a service, the shortcut starts the service. If the Apache service is running already, the shortcut doesn't do anything. If Apache is running as a service, you can tell it to stop by opening another console window and entering:.
Running as a service should be preferred over running in a console window because this lets Apache end any current operations and clean up gracefully. But if the server is running in a console window, you can only stop it by pressing Control-C in the same window. You can also tell Apache to restart. This forces it to reread the configuration file.
Any operations in progress are allowed to complete without interruption. To restart Apache, either press Control-Break in the console window you used for starting Apache, or enter. Change to the folder to which you installed Apache, type the command httpd.
Then change to the logs folder, and review the error. When working with Apache it is important to know how it will find the configuration file. You can specify a configuration file on the command line in two ways:.
In both of these cases, the proper ServerRoot should be set in the configuration file. This built-in path is relative to the installation directory.
Apache will then try to determine its ServerRoot by trying the following, in this order:. If you did not do a binary install, Apache will in some scenarios complain about the missing registry key. This warning can be ignored if the server was otherwise able to find its configuration file. The value of this key is the ServerRoot directory which contains the conf subdirectory. When Apache starts it reads the httpd.
If this file contains a ServerRoot directive which contains a different directory from the one obtained from the registry key above, Apache will forget the registry key and use the directory from the configuration file. If you copy the Apache directory or configuration files to a new location it is vital that you update the ServerRoot directive in the httpd.
After starting Apache either in a console window or as a service it will be listening on port 80 unless you changed the Listen directive in the configuration files or installed Apache only for the current user.
To connect to the server and access the default page, launch a browser and enter this URL:. Apache should respond with a welcome page and you should see "It Works! If nothing happens or you get an error, look in the error.
If you happen to be running Apache on an alternate port, you need to explicitly put that in the URL:. If you prefer to have it somewhere else, change the path. This change is needed for WordPress due to. In the above code, the index. Now we need to add a PHP module. Go to the end of the LoadModule list and add the following two lines at the end:. Without the ServerName directive, the Apache server might give you the following warning:.
And we are done with modification of Apache configuration file. Save the httpd. All that is left to do is to start the Apache server. A window with a command prompt should open and remain open. Now, let's test if the Apache server is really running. The browser should now show you the content of the folder that was set in DocumentRoot and Directory directives when we modified the httpd.
Open text editor, create a test. You should see the white page with the " hello world " message. A better way is to run it as a service. First, close the Command Prompt window running httpd. Next, we need to run a command prompt as an administrator. There are many ways to do this, one quick way is to type " cmd " in the Windows Search:.
Command Prompt should show up as the best match. On the right side, click on " Run as administrator ". User Account Control Window should show up asking you to confirm this.
After clicking " Yes ", the command prompt window should show up. Inside the command prompt, first type the line shown below, so that we will be inside the Apache bin folder:. The easiest way to control the Apache Service is by running ApacheMonitor.
After running this utility, you should see that the notification icon on the taskbar has been added for the ApacheMonitor utility. If you click on it, you can start the Apache service by going to Apache2. You can also Stop and Restart the Apache service the same way. After selecting Apache2.
So far we have a Web server that is able to process PHP files. Go to MySQL download page. There should be two installers available for downloads. One is a much smaller web online installer which is handy if you have a slow internet connection as it will download only stuff you need. The other one is an offline installer with all the features and due to that is a much larger file.
Choose whichever you prefer and click " download ". After the download is complete, run the installer. User Account Control Window should show up. Check that the verified publisher is " Oracle America, Inc. I need help with my OpenOffice Help is at hand whenever you need it. I want to participate in OpenOffice Apache OpenOffice is made with help from people all over the world.
Feel free to contribute! I want to stay in touch with OpenOffice Follow the progress of OpenOffice via announce list, our blog or social media. Udine moves to OpenOffice, will save , Euro 16 September The City of Udine, in Italy, announced a process that will lead to the installation of OpenOffice on municipal desktops, saving the city , Euro.
0コメント