logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Apache and Wordpress (Mint linux) SOLVED
Author
ipsofacto



Joined: 26 Apr 2012
Posts: 4
Location: England, Chepstow

PostPosted: Thu 26 Apr '12 17:29    Post subject: Apache and Wordpress (Mint linux) SOLVED Reply with quote

EDIT: LOOKS WINDOWS ONLY FORUM!!

Hello to the Board!

I'm trying to set up a website running my own server using WP. I have installed LAMP and everything locally seems to work fine locally , e.g. if i type
Code:
http://localhost/wordpress/
into my browser everything appears as it should i.e. my potential site.

However, whenever I try to go 'live' it all tends to go t!ts up. The configuration I need help with is apache (far, far too complex!).

You should note that WP has been installed in /var/www/wordpress.

Code:
$ ls /var/www
index.html  info.php  wordpress


WP Database has been created successfully using mySQL and PHPMYADMIN seems fine. Basically everything works, I just need help to get to the next level and go 'public'. I have set dns setting with the company that registered the domain name and have allowed port forwarding for port 80 on my router (am not worried about dynamic dns at this stage).

Here are the files (I think) I need help with to tell apache where my domain will go (and possibly help with adding sym links in the process):

Code:
ipsofacto@MyBoX /etc/apache2/sites-enabled $ cat 000-default
<VirtualHost *:80>
   ServerAdmin webmaster@localhost

   DocumentRoot /var/www
   <Directory />
      Options FollowSymLinks
      AllowOverride None
   </Directory>
   <Directory /var/www/>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
   </Directory>

   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   <Directory "/usr/lib/cgi-bin">
      AllowOverride None
      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 None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


By reading another forum I added the following to my /etc/aqpache2.conf (as was advised as was a /www/wordpress install:

Code:
AddType application/x-httpd-php .html


Any help/further questions much appreciated! You should note that I am a nube and that I am trying to do this for having 'fun' with linux and learning as opposed for setting up a commercial site. I will most prob move it to a company once up - just wanted th have a go myself !


Last edited by ipsofacto on Fri 27 Apr '12 11:18; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 26 Apr '12 17:59    Post subject: Reply with quote

in
<Directory /var/www/>
</Directory>

it must be AllowOverride All so that the .htaccess file works. Why AddType application/x-httpd-php .html ?

What is your question?
Back to top
ipsofacto



Joined: 26 Apr 2012
Posts: 4
Location: England, Chepstow

PostPosted: Thu 26 Apr '12 18:35    Post subject: Reply with quote

Thanks for your quick response (and apologies for not making myself clear)

The question specifically I was asking was how to tweak 'sites-enabled' so I can put my website live for others to see.

It was my understanding that I had to include the word 'wordpress' after the www in the config below.

Code:
DocumentRoot /var/www/
        <Directory />
                Options FollowSymLinks
                AllowOverride All


However, every time I do that and type in localhost/wordpress into my browser it says not found on this server.

I appreciate that these forums aren't exactly for noobs. As for including the line of code that you alluded to above, then I saw the following:

Quote:
Next, you’ll need to add a line to your /etc/apache2/apache2.conf file, so Apache will properly interpret WordPress’s PHP files. (Note that this is only necessary if you install WordPress in a subdirectory of /var/www, as we are doing in this example.

AddType application/x-httpd-php .html


I appreciate your patience..
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Thu 26 Apr '12 20:02    Post subject: Re: Apache and Wordpress (Mint linux) Reply with quote

ipsofacto wrote:
EDIT: LOOKS WINDOWS ONLY FORUM!!


Nope, see at the top of the forum index page:

The forum, although primarily committed to Windows environments, is about Apache in general. All flavors of OS, like Linux and Mac OS X, are welcome here.

Steffen
Back to top
ipsofacto



Joined: 26 Apr 2012
Posts: 4
Location: England, Chepstow

PostPosted: Fri 27 Apr '12 11:19    Post subject: Reply with quote

Kind of solved! Site up but can only view it by proxy.

Anyway, consider thread closed.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 03 May '12 6:48    Post subject: Reply with quote

Using a proxy for DNS solution?
Back to top
ipsofacto



Joined: 26 Apr 2012
Posts: 4
Location: England, Chepstow

PostPosted: Thu 03 May '12 9:11    Post subject: Reply with quote

Thanks for the reply. Have professional hosting now. lol.

The point about proxy was that I could only view it via proxy whereas friends could view it fine.

Thread closed.
Back to top


Reply to topic   Topic: Apache and Wordpress (Mint linux) SOLVED View previous topic :: View next topic
Post new topic   Forum Index -> Other Software