New to VPS

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hello everyone! :) Just a few hours ago I bought my VPS package and so far I am very pleased about the service X10VPS is offering. I have chosen the CentOS 5.5 32-BIT system for my VPS, and followed the instructions on the LXCenter website to install Kloxo onto it. However, I'm having a few problems.

My domain is resolving /var/www/html/ at the moment, when my Kloxo control panel is using /home/admin/. However, the /var/www/html/ will not process PHP, like it hasn't been installed.

So, here is my question. :)
- How can I set my Kloxo control panel to use /var/www/html/; I have not bought Additional IPs?
- How can I install PHP to /var/www/html/?

Or is there something I'm doing wrong? Thanks! :D
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Anna solved this problem for me via the IRC - thanks! :D
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
To solve the problem, log in to SSH as root and edit the httpd.conf file with nano or a similar editor. Here is an example of what I would run:
Code:
nano /etc/httpd/conf/httpd.conf

Then, find the section of the file named DocumentRoot. If you are using nano, push CTRL+W and enter 'DocumentRoot' to find it. Once you have found it, change it accordingly. For example:
Code:
DocumentRoot = "/home/myuser/mydomain.com"

Then save the file - in nano, push CTRL+X, push the y key, then push the ENTER key.

Once your configuration file as been changed, you will need to restart httpd for the changes to take effect. Run the following code to restart httpd:
Code:
service httpd restart

Now you're done! :biggrin:
 
Top