LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-04-2009, 06:47 PM   #1
Archosz
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
Script that copies files/folders doesn't work


Hello, I recently signed up at Linode, deployed Ubuntu and installed Apache, Mysql and PHP5.

I'd actually made the change from a shared server to a vps in order to make an add-on for OsCommerce work. This add-on called Automatic stores generation (contribution at 14 May 2009) copies existing files and folders and this requires a LAMP environment with 'permissions of systems administrator'.

Unfortunately the script doesn't copy the files and folders.

Strange enough, the copying did work on the shared server. (symlinks didn't work there)

I just transferred all the files and sql data from the shared server to the Linode, edited config files and set all permissions to 777. (inc. public_html)

So now I'm wondering what needs to be done to make the script work. Some questions:
  • • Is it also considered a LAMP environment when one uses Ubuntu? Are there differences for the functioning of scripts?

    • What would be considered 'permissions of systems administrator' in this context? Like file permissions of 777?

    • Are there necessary things I need to install on the server to get these kinds of things to work? For instance, I once had to install cURL.

    • Would the script need a 'raw url' with the server name etc, rather than the url of the domain name? (like: /srv/www/domain.com/public_html) This 'raw url' was used in the config script on the shared host, but I don't know how this works.
I can't think of other reasons. Maybe you can?

Any advice is greatly appreciated!
 
Old 12-04-2009, 09:43 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Archosz View Post
Hello, I recently signed up at Linode, deployed Ubuntu and installed Apache, Mysql and PHP5.

I'd actually made the change from a shared server to a vps in order to make an add-on for OsCommerce work. This add-on called Automatic stores generation (contribution at 14 May 2009) copies existing files and folders and this requires a LAMP environment with 'permissions of systems administrator'.

Unfortunately the script doesn't copy the files and folders.

Strange enough, the copying did work on the shared server. (symlinks didn't work there)

I just transferred all the files and sql data from the shared server to the Linode, edited config files and set all permissions to 777. (inc. public_html)

So now I'm wondering what needs to be done to make the script work. Some questions:

• Is it also considered a LAMP environment when one uses Ubuntu? Are there differences for the functioning of scripts?
LAMP = Linux Apache MySQL Perl/PHP

Since Ubuntu is Linux, you're all set. No, no differences, aside from any you'd find from one system to another. Like path names, etc.
Quote:
• What would be considered 'permissions of systems administrator' in this context? Like file permissions of 777?
No, those are file/directory permissions. Systems administrator permissions mean root-level permissions...like being able to write and modify things in system directories (/etc, /sbin, and things like that). A 'regular' user can't...unless you are ABSOLUTELY INSANE, and make your system directories/files world editable.
Quote:
• Are there necessary things I need to install on the server to get these kinds of things to work? For instance, I once had to install cURL.
That depends on your script. If it depends on programs, you'll naturally have to install them, along with libraries, path modifications, etc.
Quote:
• Would the script need a 'raw url' with the server name etc, rather than the url of the domain name? (like: /srv/www/domain.com/public_html) This 'raw url' was used in the config script on the shared host, but I don't know how this works.
No way we can tell...we can't see your script. Quickest way to check it is to change it, try it, and see if it works.
 
  


Reply

Tags
copying, lamp, lampp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with script to organise files into folders as part of DVD backup script jasybee2000 Linux - Newbie 5 06-15-2009 07:29 PM
bash script to delete files / folders based on date and freespace nekawa Linux - Newbie 5 06-08-2009 09:00 PM
bash script help - finding last n log files in all sub folders jeepescu Programming 4 11-03-2007 07:57 PM
script or utility to copy files and folders m2azer Linux - General 1 12-22-2005 10:09 AM
Delete old files and folders Script? AsteX Linux - General 4 11-11-2004 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration