I'm a 'complete' newbie to wordpress. I've just installed 2.8.4 and am now trying to go thru the lessons. First step is to go to the admin panel, but the page seems to have been deleted or moved. I have no idea on how to get started.
please help.
I'm a 'complete' newbie to wordpress. I've just installed 2.8.4 and am now trying to go thru the lessons. First step is to go to the admin panel, but the page seems to have been deleted or moved. I have no idea on how to get started.
please help.
Did yo install through an ftp program? There is always a chance that some files are missing or corrupted. Try re-uploading the basic files like wp-admin.php
A web address would help a lot, if you've got one.
I'm sorry, I should have mentioned that I am trying to run this locally on my mac using MAMP. It appears that I may be stuck on step #4 (I'm following these instructions: http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP).
Where do you access the local site or what file is that? The config-sample.php that comes in the word press zip file?
The files are located wherever you you put them in step #2.
Lastly, on the Apache tab, you'll need to set a document root. This is where all of your files are going to be for your local web server. An example of a document root is /Users/USERNAME/Sites/wordpress/.
Where that is, I don't know. I'm not sure if MAMP has a default path or not.
Step #4 mentions a database setup form... that doesn't ring any bells. Does WP or MAMP have such a thing? I've always edited the wp-config directly. Have I missed something, someone?
At any rate, the file you need to edit is wp-config-sample.php but you have to re-save it as wp-config.php.
After that, you should be able to access your site via http://localhost or http://localhost:8888 (See step #2) plus any subdirectory there might be-- /mysite, or /wordpress or whatever.
Making progress... THANK YOU!
Now, I can see an index of my wordpress files. But I still do not know where to access my admin categories (managing options, users, user profiles, look/feel of site, etc.).
I'm having a hard time trying to figure out why I only see static code pages. I'm not a developer, so code is not my strong suit.
Where in the documentation do I find out where to access the front end admn tools that would lead to themes and other options?
What do you mean 'you see only static code pages'? You can actually see the PHP code? Or you can only see .html pages? Or maybe you see a directory index? That's beginning to sound like a server configuration problem.
If you can get to the control panels in /wp-admin you'll see all of the admin tools there be. It sounds like you can't get there though. Is that right?
You are seeing the static code because your php is either not running or is not configured properly. The code is not executing.
Check your MAMP console to see if all the required applications are running.
Hi There:
I'm thinking that there is a config problem cause when I type in my "local url" in my browser, I get a page with a file hierarchy. When I click on a file, I get a static page that has code on it (some with input fields, though I think those are supposed to be a part of the html page).
I am trying to learn how to use wordpress locally, so I've followed the directions to have MAMP run on my mac (seemed like it all installed properly).
I began with following the directions here: http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
Then I went to: http://codex.wordpress.org/WordPress_Lessons and started at the beginning (WordPress for beginners), but I can't seem to make any forward progress :(
Hi ZGani:
My MAMP panel has two green lights for Apache and MySQL... I've used the step by step process at: http://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
Quick test: Open TextEdit and type the following.
<?php
phpinfo();
?>
Save the file to your web directory as phpinfo.php (the name doesn't really matter). Make sure you save as plain text and not rtf. The settings are in the Preferences panel. Now open the file. If you get a pretty table of Apache, PHP, and MySQl configuration values, then you are doing good.
I get a page with a file hierarchy
Looks like your Apache isn't reading index files properly. You need to have a line like this in your httpd.conf file-- DirectoryIndex index.php index.html. I sort of thought that MAMP wouldn't taken care of this for you.
When I click on a file, I get a static page that has code on it...
Is this true with all files, or just ones you've edited? If the latter, then you probably got a weird character in your file. Sounds like its the former though. That would mean that your server isn't executing PHP. For that you need at least this line in your httpd.conf--AddType application/x-httpd-php .php. Unfortunately, I'm not sure where MAMP puts that file.
Hi Adljdi:
Ok, here are the results to the php test... this file launches in my browser, but what I see is the exact code that you asked me to type and test.`<?php
phpinfo();
?>`
I found the httpd.conf file in MAMP... where should I insert the directoryindex line that you suggested above?
With regard to opening all files and having code display, this happens on all files. So, looks like I'll need to add the line "Addtype..." as detailed above. Where should this line go?
Is there some way that I could forward you my MAMP httpd.conf file for you to take a look at?
Were these lines that I should have added in the MAMP setup process?
Thank YOU for all your help and patience. It is very much appreciated.
There really should already be a DirectoryIndex line in your httpd.conf. Try to find it. It should read at least: DirectoryIndex index.html. It needs to read DirectoryIndex index.php index.html.
Your httpd.conf should already have several AddType lines already. Look for those, then add the one for PHP.
You'll probably need a LoadModule line too-- LoadModule php5_module path/to/libphp5.so. You need to get the path to libphp5 right for your system. Of course, the name will be different if you have PHP4.
If you have a mod_php.conf file you can load PHP using that too. Look for something like this in httpd.conf (This one is already uncommented): `
# Uncomment the following line to enable PHP:`
Include /etc/httpd/mod_php.conf
I've never setup a server using MAMP. I don't what you are supposed to do during setup, though, I thought that avoiding this cryptic configuration stuff was the reason folks cooked up MAMP and XAMP... ah, well... more fun this way anyway :)
Hi Again,
I've added all the lines that you suggested, except the LoadModule php5 one as I'm not sure what the 'libphp5' is... is that a file? I have a "php5" folder within the MAMP/conf/apache/php5
I don't think I have a mod_php file... is that also supposed to be in MAMP somewhere?
Thanks,
If you don't have mod_php don't worry about it.
libphp5.so is a file. Its the bit that lets Apache run PHP.
What's in MAMP/conf/apache/php5?
Ok, I found the libphp.so file and added the path to the loadmodule section in the MAMP httpd.conf file.
I tried starting MAMP and I now receive a "red" light indicator which means somethings wrong (prior to making all the lines of code insertions, apache had a green light).
The MAMP/conf/apache/php5 has two files... 1) pear.conf 2) php.ini
Another question regarding the addtype line... this is what is in my file: AddType application/x-httpd-php .php .phtml
Per your note above, I shouldn't need the "phtml" part, right?
I believe you are getting red light indicator for Apache. It seems you have made some mistake while editing httpd.conf. A single line error can stop apache to start.
I'd agree with Kailash1. You must've introduced an error in your http.conf. Look it over very carefully. Maybe post the few lines you edited.
You shouldn't need the ".phtml" part for running WP, but it shouldn't hurt either. All it means is that Apache will run a .phtml file as a PHP file if it finds one.
Okay, here are the lines that I touched (I've copied the entire section so that you can see if I've edited the correct line in the conf file):
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.php index.html
#
----------------------------------------------------------
#
AddType application/x-httpd-php .php .phtml
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On
Please note that for addtype above, this section was already in the MAMP conf file.
----------------------------------------------------------
And, I see that there are two lines for loadmodule... the loadmodule php5 line in the middle of all the other loadmod lines is the one I added, but I now see there is another php5 line at the very bottom. Maybe I need to remove the line that I added and append the last one with the correct path?
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
<IfDefine SSL>
LoadModule ssl_module modules/mod_ssl.so
</IfDefine>
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule echo_module modules/mod_echo.so
LoadModule charset_lite_module modules/mod_charset_lite.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule example_module modules/mod_example.so
LoadModule case_filter_module modules/mod_case_filter.so
LoadModule case_filter_in_module modules/mod_case_filter_in.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule php5_module applications/MAMP/Library/modules/libphp5.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule bucketeer_module modules/mod_bucketeer.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule php5_module modules/libphp5.so
#
Ok. I hope that the stuff above that looks like notes but isn't commented is not in the original file. Everything has to be valid directives or commented comments.
Second, you don't want to load the module twice, but exactly where is the libphp5.so? You said you found it but the path you give is different from the one inserted by MAMP? Do you have two PHPs on your system? Here is what I'd do. The order that you load a module can matter, if I remember right, so copy your LoadModule up so that is directly under the one inserted by MAMP. Now comment one and restart Apache. If it works, good. Otherwise, uncomment the one and comment the other. And restart Apache.
Ok, I tried the above experiment and I now get apache to recognize php (even received the confirmation MAMP screen).
I tried loading my local WP path into my browser and I am still getting an index of files and when I click on one of the links, it opens a page with code, so we're back to the start of my issue.
When I open wp-admin, I should get a "user friendly" front end interface that allows me to edit different categories and set styles, etc., right?
This topic has been closed to new replies.