来源:蜘蛛抓取(WebSpider)
时间:2015-09-20 21:20
标签:
can not open url
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
I'm having small troubles and was wondering if someone can help me over the hump. I pulled a copy of a website down from Hostgator and I'm trying to set it up on my local machine using
WAMP but, I keep getting an error when trying to access the site. Here is what I have tried..I went to Apaches httpd.conf file and uncommented the # from LoadModule rewrite_module modules/mod_rewrite.so. Also I have changed the AllowOverride None to All. With that said, Im not sure what else to look for. Please note within my application my httaccess files do not have a (.) in front of them (.htaccess). I'm not sure if that is worth noting or not. Any ideas as to what I need to do to access my site? When I access the application I do see a cached version (white screen), but when I click the link to log in I see the 404 Not Found.
In httpd.conf file you need to remove #
#LoadModule rewrite_module modules/mod_rewrite.so
after removing # line will look like this:
LoadModule rewrite_module modules/mod_rewrite.so
I am sure your issue will be solved...
4,03581331
change this
Include conf/extra/httpd-vhosts.conf
#Include conf/extra/httpd-vhosts.conf
and restart all services
For saving a file as .htaccess, when using windows, you have to open notepad and then saveas .htaccess as windows does not create files starting with a dot. That should get your .htaccess working and it'll clear up the issue.
By the way, in order to receive specific error messages set Configure::write('debug', 0); to '2' in app/config/core.php for development purposes.
In wamp/alias/mySite.conf, be careful to add a slash "/" at the end of the alias' adress :
Alias /mySite/ "D:/Work/Web/mySite/www"
Alias /mySite/ "D:/Work/Web/mySite/www/"
Or the index.php is not read correctly.
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledStack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
Error is occurring when i am opening /phpmyadmin
The requested URL /phpmyadmin was not found on this server.
Apache/2.2.22 (Ubuntu) Server at myclassbook.in Port 80
I using digitalocean server hosting services.
I have completed the installation of apache2, mysql, php and phpmyadmin.
I have also inserted a link into /etc/apache2/apache2.conf and ServerName localhost into apache2.conf file.
Include /etc/phpmyadmin/apache.conf
but still it is not working.
my hosts file is
my 000-default file is
ServerAdmin webmaster@localhost
DocumentRoot /var/www/mcb/public
&Directory /&
Options FollowSymLinks
AllowOverride All
&/Directory&
&Directory /var/www/mcb/public/&
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
&/Directory&
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
&Directory "/usr/lib/cgi-bin"&
AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
&/Directory&
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
&Directory "/usr/share/doc/"&
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
&/Directory&
Please help!!!! where am i going wrong???
thanks friend...
Your problem will solve after Re-install phpmyadmin.
echo 'Include /etc/phpmyadmin/apache.conf' >> /etc/apache2/apache2.conf
Hope this help
Create a symbolic from the terminal: (it works for me)
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled