I've got a local MAMP install of WordPress and am trying to get permalinks working. But when I click my links after setting permalink setting to 'Day and name' http://localhost/wordpress_1/2011/01/12/sample-post/
I get 404ed
Not Found: The requested URL
/wordpress_1/2011/01/05/hello-world/
was not found on this server.
Is this a mod_rewrite issue? mod_rewrite is listed in the 'loaded modules' section of my phpinfo. Do I need to do something else to enable it?
Thanks
UPDATE:
From my httpd.conf:
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
Changed my httpd.conf from
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
To
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
And it works.
Follow symlinks needs to be turned on in MAMP.
Open your httpd.conf file in /Applications/MAMP/conf/apache/
Look for <Directory />
Make sure that you have the following Options set:
Options Indexes FollowSymLinks
You can also setup a local virtual host for better testing of your WordPress site. It's beyond the scope of this question/topic, but if you'd like I can create an example config file and instructions on how to do that.
Related
If I use my safari browser, I cannot get to my website example.com. I have to use www.example.com for it to work. I tried editing htaccess numerous times and still, it doesn't work.My website is using bitami wordpress image (https://docs.bitnami.com/)which is hosted in AWS.
Bitnami Engineer here:
By default, we disable .htaccess files due to security and performance reasons. We also move .htaccess files content to a file called htaccess.conf in the folder /opt/bitnami/apps/wordpress/conf. You can check more about it at https://docs.bitnami.com/aws/infrastructure/lamp/administration/use-htaccess/.
If you want to enable .htaccess usage, you would need to set it to AllowOverride All in /opt/bitnami/apache2/conf/bitnami/bitnami.conf file:
<VirtualHost _default_:80>
DocumentRoot "/opt/bitnami/apache2/htdocs"
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All <---- HERE
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
And restart Apache after applying your changes.
For more info, find WordPress documentation below:
https://docs.bitnami.com/aws/apps/wordpress/
Regards
Good day:
I have my website in digitalOcean, in Ubuntu Droplet. I have both Wordpress site and CakePHP sites. CakePHP is working well.
Wordpress I have a little issue:
If I access for example www.mywebpage.cl then it shows my "Apache2 Ubuntu Default Page" page (apache1.jpg attached):
If I access on my browser:
http://www.mywebpage.cl/alianzaWordpress/datos1/ then it goes to my webpage (mysite.jpg).
I want to go to www.mywebpage.cl and automatically directs to http://www.mywebpage.cl/alianzaWordpress/datos1/
I have tried to modify /etc/apache2/sites-available/000-default.conf with no success.
I have tried set DocumentRoot as /var/www/html/alianzaWordpress/datos1 or but still not working properly
<VirtualHost *:80>
ServerAdmin webmaster#localhost
DocumentRoot /var/www/html
#DocumentRoot /var/www/html/alianzaWordpress/datos1
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
After I modify I do "a2enmod rewrite ; service apache2 restart"
enter image description here
Please any recommendation is fine for me, also I am using permalinks "post names" in my site. (permalinks.jpg)
Regards,
Felipeenter image description here
Pictures
I found something easy to do, thanks anyway.
I modifed this file /var/www/html/index.html with this information to redirect to the folder I wanted:
<meta http-equiv="Refresh" content="0; url=http://www.mywebpage.cl/alianzaWordpress/datos1/">
Sorry for easy question, now I learn, Regards,
Felipe
I'm trying to make my apache visible on my local network for being able to acces my wordpress site hosted there, by editing httpd.conf file on /bin/apache/conf/ and im getting a Permision Error, but I can't find any clear content on the Internet.
Im using UWAMP 3.1.0 and It must be something related with this part of the code:
<VirtualHost *:80>
#UWAMP Generate Virtual Host
DocumentRoot "F:/UwAmp/www/"
ServerName "main-serveur"
Alias "/mysql/" "F:/UwAmp/phpapps/phpmyadmin/"
Alias "/mysql" "F:/UwAmp/phpapps/phpmyadmin/"
Alias "/uwamp/" "F:/UwAmp/phpapps/uwamp/"
Alias "/uwamp" "F:/UwAmp/phpapps/uwamp/"
<Directory "F:/UwAmp/phpapps/phpmyadmin/">
AllowOverride All
Options FollowSymLinks Includes Indexes
Require local
</Directory>
<Directory "F:/UwAmp/phpapps/uwamp/">
AllowOverride All
Options FollowSymLinks Includes Indexes
Require local
</Directory>
<Directory "F:/UwAmp/www/">
AllowOverride All
Options FollowSymLinks Indexes
Require local
</Directory>
more concretely at the end:
<Directory "F:/UwAmp/www/">
AllowOverride All
Options FollowSymLinks Indexes
Require local
</Directory>
This is what I get after entering the IP where the site is hosted.
sorry for asking something so simple but I'm learning
Thank you in advance
{ONLINE_MODE}
If UwAmp is on Online mode, your website is available for all.
{ONLINE_MODE} will be replaced by :
Order allow,deny
Allow from all
If UwAmp is on Offline mode, your website is available only for your computer.
{ONLINE_MODE} will be replaced by :
Order deny,allow
Allow from 127.0.0.1 localhost
I have spent 4-5 hours to sort it out but not able to solve it.
I have setup my wordpress website on AWS.Everything is working file except the permalinks of wordpress.
When permalinks are set to default pages/posts are working but not working with "%post-name%".
I have tried almost all the things by searching over google but no success.
I saw so many solutions all related to httpd.conf file but on my root there is no file httpd.conf neither no directory of http.
I changed the following code in apache.conf file but still not working
<Directory />
Options FollowSymLinks
AllowOverride All
Require all denied
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
Restarted apache again and again but no luck.
Please help me guys.
Thanks.
I've just managed to fix this error. Make sure you restart Apache service after making the httpd.conf change!
Documentation here has a checklist of all the changes you need to get wordpress working correclty on AWS - including getting permissions correct: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hosting-wordpress.html
The bit you need to fix for permalinks is tp update the httpd.conf file
(1) Location: /etc/httpd/conf/httpd.conf
(2) Find the section that starts with <Directory "/var/www/html">
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Require all granted
Change the AllowOverride None line in the above section to read AllowOverride All
Note
There are multiple AllowOverride lines in this file; be sure you change the line in the section.
AllowOverride All
(3) Restart the Apache service
If you dont have much experience using aws, then i guess its because you have not granted enough permissions to your apache. If you are unware of how to grant permissions to your apache, you can use this command in your console
sudo CHOWN -R apache:apache /var/www/html
Once done try going to your settings page and saving the new settings.
I have Redmine in subfolder /var/www/redmine and Drupal in folder /var/www/
When I go to URL mysite.com/redmine, Redmine shows ok, but mysite.com/redmine/login is (over)handled by Drupal.
Apache config is as follows
<VirtualHost *:80>
ServerAdmin webmaster#localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
RailsBaseURI /zoo-redmine
PassengerResolveSymlinksInDocumentRoot on
Options Indexes FollowSymLinks -MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
It seems a Drupal configuration issue. Try to look in your Drupal configuration panel to exclude from Drupal's login system the /redmine/ subfolder. I can't point you to the exact url because my drupal configuration uses CAS, but it is probably in
Start -> Administration -> Configuration -> People
It was as simple as RewriteRule ^zoo-redmine - [L] before other rewrites in .htaccess
This code exits .htaccess file if encounters zoo-redmine string and don't allow Drupal to readdress this request to index.php with arguments