• agray19

    (@agray19)


    I performed the following:

    I already have WordPress installed in its own folder (i.e. http://example.com/wordpress):

    Go to the General panel.
    In the box for Site address (URL): changed the address to the root directory’s URL. to: http://example.com
    Saved Changes.

    Copied index.php from /var/www/wordpress/ to root

    Opend your root directory’s index.php file in a text editor
    Change the following and save the file. Change the line that says:
    require(‘./wp-blog-header.php’);
    to the following, using your directory name for the WordPress core files:
    require(‘./wordpress/wp-blog-header.php’);

    Logged in site OK.

    However, from the internet the site is still only available at:
    http://www.domain.info/wordpress instead of what I need: http://www.domain.info

    Any additional sugestions?
    Thanks,

Viewing 15 replies - 31 through 45 (of 45 total)
  • Thread Starter agray19

    (@agray19)

    esmi

    You are correct, I don’t have experience with Linux but, it is changing as we … type. Anyway, I was hoping that somebody knows how to build a WordPress server, not a localhost let’s play server, and I assumed that this forum might be the place. Perhaps I am mistaken, it will not be the first of last time.
    Thanks,
    AG

    govpatel

    (@govpatel)

    WordPress is a php program which needs

    PHP 5.2.4 or greater
    MySQL 5.0 or greater
    The mod_rewrite Apache module
    and Apachie is part of php and you need to configure your server and for taht as @esmi said you need help from some one who has knowledge with servers.

    Thread Starter agray19

    (@agray19)

    OK, if anybody wants to jump in here would be helpful. It sams that I know how to build a server which can live on Internet and respond to http://www.domain.xxx/wordpress with the right response and it works. All I have to do now is figure out how to eliminate the need for /wordpress. Anyway, I will figure it out and perhaps I will be able to help the next person.
    Thanks,
    AG

    Clayton James

    (@claytonjames)

    It seams that folder /www/ does not exist in Ubuntu without Apache2. It appears that Apache2 install creates /www/

    That’s absolutely correct. “/www” is the default directory for serving web documents, and it isn’t there if you don’t have apache installed.

    Apache serves documents out of /var/www by default on Ubuntu.
    This: http://www.domain.xxx/wordpress works because you installed wordpress at /var/www/wordpress.

    You are getting the default “It Works!” page because you haven’t installed any web documents in the default “web root”. That would mean installing the wordpress files at /var/www, not /var/www/wordpress.

    The default host config is serving from /var/www. You can view the default host configuration by navigating to /etc/apache2/sites-enabled/000-default.

    I was hoping that somebody knows how to build a WordPress server, not a localhost let’s play server, and I assumed that this forum might be the place.

    To be direct, it isn’t. You may find frequent tips and help here for installing locally for development purposes on an enormous number of different platforms, but teaching one to assemble and configure a web server for responsible and safe production use is beyond the scope of the WordPress support forums.

    There are a TON of excellent tutorials to be found. You might start be taking a look at some of “the perfect server” series often found on howtoforge.com. The Ubuntu forums themselves are an excellent source of knowledge. Google is ripe with info for those just learning about server builds and configuration.

    Thread Starter agray19

    (@agray19)

    ClaytonJames,
    Thanks, you confirmed my deductions based on observation. I will post the results but, I believe that by installing WordPress in /var/www/ the system will behave as expected and will respond correctly to:

    http://www.damain.xxx

    The rest of the installation, MYSQL, Apache2 and PHP and creating the database will remain the same. It should work and … we shall see.
    Thanks,
    AG

    govpatel

    (@govpatel)

    I told the same that www is your root in my post above and domain normally point to root and if you add content of wordpress folder in www it should work as long as there nothing else in www.

    Thread Starter agray19

    (@agray19)

    govpatel,
    Thanks,
    AG

    Thread Starter agray19

    (@agray19)

    The website works as expected. It now runs on an Ubuntu 10.04 which also has a GUI. It is public at http://www.domain.xxx and it can also be accessed locally on the server with a browser. Next step install TeamViewer and see it they coexist in peacefully.

    The only problem I found is that when I did:

    sudo tar -xzvf wordpress-3.3.2.tar.gz

    it created a wordpress directory and, as before with latest.tar.gz, it put all the files inside it. I still had to move each file out of there and into /www/

    Is there any way to tar it in place without having it make a directory?

    AG

    Thread Starter agray19

    (@agray19)

    Interesting note:

    Both WordPress and TeamViewer use pot 80. and no other port is opened on the system. Shouldn’t this be a conflict?

    AG

    Port 80 is the port for the webserver. Each web application doesn’t get its own port: the server itself does. No conflict there.

    govpatel

    (@govpatel)

    I think it will be conflict as skype use port 80 and I could not use teamviewer I had to change the port settings on skype to accommodate both. Same with Xampp I can not use teamviewer and Xampp at same time as they both use port 80

    Thread Starter agray19

    (@agray19)

    govpatel

    That is exactly what I thought however, Amy knows better. I tried and they both coexist peacefully, no conflict.

    AG

    Clayton James

    (@claytonjames)

    Is there any way to tar it in place without having it make a directory?

    Extracting the archive itself is what makes the directory. If you’re working right at the server and using the 10.04 Gnome desktop, it’s a quick copy/paste operation very similar to what you would expect to do on a windows OS. If you want to use the terminal, (and keep it as simple as possible) I think this would probably work okay:

    Download wordpress tar.gz to your home directory (I keep a copy there just in case I find a need to restore a core file, or whatever)

    Extract the archive:

    tar -zxvf wordpress-3.3.2.tar.gz

    Enter the wordpress directory:

    cd wordpress

    Copy all files and directories recursively from the wordpress folder to the destination directory:

    cp -R * /var/www

    If you anticipate using the Ubuntu desktop frequently, you can run the Nautilus file browser as root from the terminal using “sudo nautilus” (when you need root privileges to move/remove files) and the wordpress files located in /www should be owned by your user account, not owned by “root”.

    [edit] also – you should examine the difference between sudo and gksudo (relative to graphical applications) while working as “root”, if you are interested.

    Thread Starter agray19

    (@agray19)

    ClaytonJames
    Thanks, this is exactly what I was looking for. I have been using sudo gedit which lets me do whatever editing I wand but I don’t know many commands to do the rest. I have been looking for a GUI fila management tool I will try Nautilus.
    Thanks,
    AG

    Clayton James

    (@claytonjames)

    You’re welcome. Good luck with it.

Viewing 15 replies - 31 through 45 (of 45 total)

The topic ‘Installation’ is closed to new replies.