Saturday, April 6, 2013

Re: Stop django admin

Hey,

You can run phpmyadmin on different port by creating a virtualhost having default phpmyadmin conf.

    NameVirtualHost *:8888  Listen 8888    <VirtualHost *:8888>
    # Paste contents of default phpmyadmin conf here
    
    
</VirtualHost>

For example, visit http://pastie.org/7347686.

Save this in /etc/apache2/sites-enabled/phpmyadmin

After restarting apache server you can visit phpmyadmin at http://<your ip>:8888/phpmyadmin/

On Sun, Apr 7, 2013 at 2:52 AM, Hylda <xiayh2012@gmail.com> wrote:
Hi all,

After I switch to apache, I cannot run myphpadmin. I wonder how I can vist them simultaneously or stop django admin? Thanks so much! 

  • run sudo yum install mod_wsgi to install the apache and the module necessary for serving your django app.
  • Add these lines to /etc/httpd/conf/httpd.conf
        Alias /static /var/www/mysite/static  <Directory /var/www/mysite/static>    Order deny,allow    Allow from all  </Directory>  WSGIScriptAlias / /var/www/mysite/apache/django.wsgi


  • Page not found (404)

    Request Method:GET
    Request URL: http://ec2-xx-xxx-x-xx.compute-1.amazonaws.com/phpmyadmin

    Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:

    1. ^polls/
    2. ^admin/

    The current URL, phpmyadmin, didn't match any of these.

    You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.


    --
    You received this message because you are subscribed to the Google Groups "Django users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
    To post to this group, send email to django-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/django-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
     
     



    --

    Sincerely,
    Pankaj Singh

    --
    You received this message because you are subscribed to the Google Groups "Django users" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
    To post to this group, send email to django-users@googlegroups.com.
    Visit this group at http://groups.google.com/group/django-users?hl=en.
    For more options, visit https://groups.google.com/groups/opt_out.
     
     

    0 Comments:

    Post a Comment

    Subscribe to Post Comments [Atom]

    << Home


    Real Estate