By Roel Guldemond on
Who can help me start first use of Drupal on our eMac (1.25GHz-256Mb) running OSX 10.3.9?
Lately I have been all "pre installation questions", without success I have tried to get Drupal working, who can direct me in right direction?
(When I read in "Handbooks"tab, I see much technical stuff)
Kind regards, a mac-user.
Comments
On the handbook page "Mac OS
On the handbook page "Mac OS X-specific guidelines" http://drupal.org/node/5338 you find the link to "installing Drupal on Mac OS X 10.3." http://maczealots.com/tutorials/drupal/.
And yes it's technical, hard to avoid when you want to set up a web server.
maczealots.com
thx for reaction...
unluckily "Drupal on Mac OS X 10.3." http://maczealots.com/tutorials/drupal/." leads to text about OSX 10.4!
is it possible to use OSX 10.3?
Yes
Although the doc is for Tiger, I managed to create a webserver in my powerbook with MacOS 10.3 following the instructions in the link provided above.
The interface of Terminal.app is a bit different, but the procedure is the same.
You might want to have a look also at http://maczealots.com/tutorials/movabletype/panther/ as an additional reference.
It's about installing Movabletype on Panther. There are similar steps, such as installing MySQL.
Last but not least, download the freeware YourSQL - http://yoursql.ludit.it/ -, to create/manipulate databases in your local server. It has the same purpose of another popular app CocoaMYSQL. But YourSQL is more stable and functional.
Durval Tabach
Durval Tabach
yes- 10.3
That's a good tutorial on maczealots, and the process is essentially the same for 10.3 and 10.4- below are some more of my comments on this:
I assume you downloaded and have running mysql 4.1 or 5.0? Double check that you have a reasonble version of php (from terminal run "php -v"). Note, there may be password issues, since the installed version of apache/php under 10.3.9 uses the mysql 3 client library. Search the forums here for or on mysql.com for the solution.
I've set Drupal up on both Mac 10.3.9 and 10.4. The tricky part (as mentioned above) is that of setting up the web server properly. You have to enable personal web sharing, and the go in as super-user and edit /etc/httpd/httpd.conf so that .htaccess files will work, and so that you can (if you wish) set the document root to somewhere more accessible (I've made it /Users/Shared/www). You'll also have to enable mod_php by uncommenting the appropiate lines in httpd.conf. See below, for a diff of the original and the file I have working under 10.3.9.
Also, note, if you try to run Drupal out of your own /Sites folder, you'll have the problem again of .htaccess not being used. In this case, edit you own .conf file in /etc/httpd/users
Note 1- to edit as su: log in as a user with admin access, open terminal, cd to the right folder. Then execute "sudo nano httpd.conf". Enter your password, and you can edit away. note- pico is an alias to nano
You'll may also want to set up a cron job to execuate Drupal's cron.php. Use the command: "crontab -e". Note that you may need to used vim instead of the more friendly nano when you first create the file (use "export EDITOR=vim" or "export EDITOR=nano" to set the environment variable). From info about setting up a cron file run "man crontab" and "man 5 contab" from the terminal. The latter is especially useful, since it has examples.
Note 2- diff showing changes to /etc/httpd.conf
---------
---
Work: BioRAFT
from an e-mail from
from an e-mail from Roel
The httpd.conf file is located as listed: /etc/httpd/httpd.conf
You can probably only see this file by opening up a teminal window, and you probably have to use "sudo" to edit the file. For example, (when logged in as a user with administrator rights and in the terminal window):
Also, I assume you have personal web sharing turned on (under System Settings), etc?
I'm also a little confused by your comment, since how could you have edited this file if you can't find it?
---
Work: BioRAFT
"httpd not running" (+we decided we get Drupal working too!)
Thank you Peter (pwolanin)!
Since we are trying to get Drupal working on our eMac with OSX 10.3.9 in October, but did not have possibilities to make time free, we wil now be using this days off to try to get it working. Your quick and detailes answer encourages us.
We have changed:
Documentroot "/Library/Webserver/Documents"into:
Documentroot "/Users/Shared/www".Since there was no folder "www" in our "Users/Shared", we have been making such a "www"-folder by hand on this place
Question: Is this right to do it by hand?
Stan and I are carefully going step-by-step.
Today we went through the paragraph "Enabling and Testing PHP".
We have good hope since after:
eMac:~ roel$ sudo apachectl gracefulTerminal gives us back:
/usr/sbin/apachectl graceful: httpd gracefully restartedTomorrow we will be concentrating on the last paragraph of MacZealot's article: "Configuring Drupal"!
Best Regards from the Netherlands, Roel & Stan
P.S.
In answer to your 2 questions of Peter (plowanin):
1st)
"I assume you have personal web sharing turned on etc?":
Yes since we go through the article from top to bottom. (That will say that is father Roel's preference, his son Stan is more eager to try to make bigger steps!)
2nd)
"I'm also a little confused by your comment, since how could you have edited this file if you can't find it?"
I do now see how it works. However I cannot see httpd.conf-file after a search, with Terminal I can edit it after the command "sudo pico /etc/httpd/httpd.conf".
I would have liked to edit the httpd.conf-file in e.g. SubEthaEdit, so I can work quicker. But with the Terminal-option I also got where I wanted to be: a working httpd.conf-file! Thanks again!
*** I like contributing to improvement of systems. Hic sic: Boulding describes a system as: "that which is not chaos" ***
Who can help with 6th, and last!, step in "Configuring Drupal"?
So the a/m original line in settings.php:
$db_url = "mysql://root:mysql_password@localhost/drupal";,we changed in:
$db_url = 'mysql://username:123@localhost/database.4.0.mysql';
$db_prefix = '';
And we added:
$base_url = 'http://localhost/drupal';After pasting
http://localhost/drupal/in our browser, the article reads "The basic Drupal front page should come right up."But..... we get following:
"Not Found
The requested URL /drupal/ was not found on this server.
Apache/1.3.33 Server at emac.local Port 80"
*** I like contributing to improvement of systems. Hic sic: Boulding describes a system as: "that which is not chaos" ***
Do you have drupal installed
Do you have drupal installed in the directory /users/Shared/www/drupal or in Users/Shared/www?
If the later (a simpler option), then you don't need the /drupal part for the http URL. The instructions are a little confusing, since it also seems the database name is "drupal".
I usually have it working without setting the base URL (better to not set if if you can). If you need to set it, i'd do something like
http://127.0.0.1/drupal. However, for me http://localhost/drupal also works for me as a URL as I have Drupal 5.x installed in /User/Shared/www/drupal and Drupal 4.7.x installed in /Users/Shared/www/drupal-4-7.---
Work: BioRAFT
Trying to understand your (very welcome!) hints, I am asking:
Since my experience is somewhere on the level of opening the box of a Mac I bought, and start using it for my work, do not blame me for checking following points with you:
database.4.0.mysql, since in folder Library/WebServer/Documents/drupal-4.7.4/database (there is also a database.4.1.mysql in this folder) Question 1. Did I do this right?For now: enjoy tonight's New Years Eve!
-My wife has picked up the tasks which I traditionally are taking care of on New Years Eve, since she supports us to get Drupal working! To be expected early 2007! (Sooner than Leopard??)-
*** I like contributing to improvement of systems. Hic sic: Boulding describes a system as: "that which is not chaos" ***
Who can help me understanding a/m Matt Willmore's article?
I went through Matt Willmore's article "Installing Drupal on Tiger" at MacZealots.com, and the reaction's bij pwohalin and others again and again.
Little by little everything becomes more clear to me.
But I do not have drupal running yet on our eMac.
In the following paragraph over Willmore's article, I see that I have not yet a good understanding:
Willmore writes in the paragraph "Configuring SQL":
Reading this, I have done following attempts
these two sets of lines are puzzeling me:
1) Since I followed the tip of pwohalin to place drupal-files in /User/Shared/www, I typed:
After entering my password, nothing happens
2) Typing in a second time in terminal, terminal gives:
Anyway I hoped would get the Drupal front page, after the last step in the article, viz.:
Unluckily after
"http://localhost/"or"http://127.0.0.1/"following is returned in my browser:"Unable to connect to database serverThis either means that the username and password information in your settings.php file is incorrect or we can't contact the MySQL database server. This could mean your hosting provider's database server is down.
The MySQL error was: Access denied for user: 'username@localhost' (Using password: YES).
Currently, the username is username and the database server is localhost.
a)* Are you sure you have the correct username and password?
b)* Are you sure that you have typed the correct hostname?
c)* Are you sure that the database server is running?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider."
For the three questions, my answers are
a) Yes
b) localhost is the correct hostname, in my opinion
c) I would say yes (but the message "ERROR 1050 at line 6: Table 'access' already exists" makes me unsure
Therefore my a/m question: Who can help me?
*** I like contributing to improvement of systems. Hic sic: Boulding describes a system as: "that which is not chaos" ***
Use an app instead of Unix
I don't know what would be the unix correct commands. But I accomplished to create, give correct permissions and populate my drupal database using a MySQL GUI application. I'd rather YourSQL, better than CocoaMy SQL, but both of them will get things done very easily.
Durval Tabach
Durval Tabach
I would have liked to edit
You can edit it in whatever you like. Open your editor of choice and then command-O for open. Now hit command-shift-3 and navigate to wherever you want to go.
Thanks,
David
http://www.floridapets.org
not true- most editors that
not true- most editors that play nice with the Mac OS won't let you see /etc or other system folders.
I use JEdit, which seems to bypass this contol and seems like a pretty nice GPL, cross-platform programming editor: http://www.jedit.org/
---
Work: BioRAFT
Tis true...
You can even do it with Textedit, the lowliest of all the Mac OS X editors. And if you want to do it with admin privs you can just launch it via Terminal like so:
sudo open /Applications/TextEdit.app/
Thanks,
David
http://www.floridapets.org