Go to advanced search

by G109B
Thu Nov 16, 2017 7:18 pm
Forum: Advanced users
Topic: PHP gives segmentation fault on simple fopen call in Stretch
Replies: 4
Views: 588

Re: PHP gives segmentation fault on simple fopen call in Stretch

$myfile = fopen("log","w"); That's not the right way to log stuff. You got lucky that it worked with php5 on Wheezy. The way to log stuff from your PHP program is error_log("stuff to log to /var/log/apache2/error.log", 0); Er, I think we are losing the plot here. My code was an example of an fopen ...
by G109B
Thu Nov 16, 2017 2:27 pm
Forum: Advanced users
Topic: PHP gives segmentation fault on simple fopen call in Stretch
Replies: 4
Views: 588

Re: PHP gives segmentation fault on simple fopen call in Stretch

Why not use the php logging function http://php.net/manual/en/function.error-log.php that will get written to /var/log/apache2/error.log (unless you change the logging file in /etc/php/7.0/apache2/php.ini). Yes Dougie, this is exactly where I have found the message "Segmentation Fault". Otherwise y...
by G109B
Thu Nov 16, 2017 12:38 pm
Forum: Advanced users
Topic: PHP gives segmentation fault on simple fopen call in Stretch
Replies: 4
Views: 588

PHP gives segmentation fault on simple fopen call in Stretch

I have a php script running from an apache2 web page under Stretch where

$myfile = fopen("log","w");

causes a segmentation fault.

This code runs without problem on Wheezy, is there something I am missing ?
by G109B
Tue Nov 14, 2017 7:52 pm
Forum: General discussion
Topic: Upgrade from Wheezy to Stretch
Replies: 2
Views: 2541

Re: Upgrade from Wheezy to Stretch

Yes, WHH, that is exactly what I expected, and is the reason it was "Surprise 4".
Because you get "Access denied to [email protected]", both on the cmd line and from mysqli_connect.
by G109B
Tue Nov 14, 2017 5:03 pm
Forum: General discussion
Topic: Upgrade from Wheezy to Stretch
Replies: 2
Views: 2541

Upgrade from Wheezy to Stretch

I attempted to upgrade from Wheezy to Stretch. It fails with an error, don't try it. All my systems are ‘headless’, accessed only via ssh from a Win10 PC. I chose to work on a copy of the SD Card from a B+ running Wheezy. This system hosts four websites, and also runs a Flarm monitoring application ...
by G109B
Mon Apr 03, 2017 7:27 pm
Forum: Troubleshooting
Topic: Raspi making DHCP requests to its own hotspot
Replies: 4
Views: 522

Re: Raspi making DHCP requests to its own hotspot

Many thanks elkberry, I still find it difficult to see the difference (!), but it certainly fixed it.
I have made a note to read this stuff up when I get a moment.
by G109B
Mon Apr 03, 2017 2:57 pm
Forum: Troubleshooting
Topic: Raspi making DHCP requests to its own hotspot
Replies: 4
Views: 522

Re: Raspi making DHCP requests to its own hotspot

Thanks for the quick reply. I added "denyinterfaces wlan0" to the end of /etc/dhcp/dhcpd.conf but it seems to have stopped access to the hotspot. (I did think that dhcpd was part of isc-dhcp-server). /etc/dhcpd.conf does not exist. This from syslog: Apr 3 15:47:53 raspi2ag dhcpcd[441]: wlan0: adding...
by G109B
Mon Apr 03, 2017 11:21 am
Forum: Troubleshooting
Topic: Raspi making DHCP requests to its own hotspot
Replies: 4
Views: 522

Raspi making DHCP requests to its own hotspot

My hostapd hotspot with isc-dhcp-server is working just fine. It is hosting a web page to view a local log, and there is NO internet connection, although eth0 is available for use on my home network if I bring it home. I can see from syslog and messages that it makes a DHCP request on its own wlan o...
by G109B
Sun Nov 27, 2016 6:58 pm
Forum: General discussion
Topic: Jessie upgrade
Replies: 3
Views: 678

Re: Jessie upgrade

Thanks Dougie,

I did wonder whether that would fix it when they were already present.

Can you do something similar when the card dates back to when they were not available ?

Colin.
by G109B
Sun Nov 27, 2016 2:43 pm
Forum: General discussion
Topic: Jessie upgrade
Replies: 3
Views: 678

Jessie upgrade

I running an update and upgrade on a 6 month old Jessie SD Card and am receiving masses and masses of stuff I will never need, not to mention the time it is taking. Prime examples are libreoffice, wolfram-engine, and mathematica. Is there a way to exclude these things ? I don't want to start with a ...
by G109B
Thu Mar 17, 2016 7:16 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Have you told your router to forward port 1234 to 10.0.0.1 ?
by G109B
Thu Mar 17, 2016 2:38 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

If you are running apache2 you need to create a site in /etc/apache2/sites-available and link it to sites-enabled using a2ensite.
I copied the default site and modified it accordingly. Otherwise read the docs for your server software, or ditch it and use apache.
by G109B
Sun Nov 22, 2015 4:15 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Yes, I like this one. My 'cheaper' version works for me, but this is the one to go for if all else fails.
by G109B
Sun Nov 22, 2015 2:48 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

More observations

More on this troubling subject: 1. I believe these problems are due to a race condition during startup. Before my additions to rc.local there were just two possible outcomes after boot-up: the correct ip address or the default (incorrect) address, and these two outcomes occurred randomly - my defini...
by G109B
Fri Nov 13, 2015 10:48 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

Sounds like the work of ifplugd, which I do not use.
by G109B
Fri Nov 13, 2015 7:55 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

I put this in /etc/rc.local and have had no more trouble:

/sbin/ifdown wlan0
/sbin/ifup wlan0
/sbin/ifconfig wlan0 192.168.42.1
by G109B
Fri Nov 06, 2015 11:06 pm
Forum: General discussion
Topic: How to reduce the Pi image on the SDcard?
Replies: 39
Views: 5233

Re: How to reduce the Pi image on the SDcard?

[quote="RaTTuS"]1) stuff a usb sd card adapter into the RPI 2) make 2 partitions using fdisk one vfat and one ext2 3) format them both 4) mount both partitions somewhere i.e. /mnt & /mnt/boot 4) sudo cp /boot to /mnt/boot 5) sudo rsync -ax / /mnt 6) sudo sync 7) sudo umount both partitions 8) remove...
by G109B
Sat Oct 31, 2015 7:14 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

There are now lots of people reporting that hostapd and/or udhcpd do not start after boot-up, and I have had the same problem. Mostly the threads lead you in the right direction but fail to report the outcome. Firstly I am running Raspian jessie which is different in some respects. Secondly, I do no...
by G109B
Wed Oct 28, 2015 3:00 pm
Forum: Networking and servers
Topic: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)
Replies: 504
Views: 366137

Re: [Tutorial] Using the RasPi as a WiFi hostspot (8 Nov 12)

It worked "straight out of the box" for me - raspiB+ running jessie, and solved at a stroke my requirement to connect to a stand-alone application with no web connectivity. Some observations: 1. I was forced into using a Realtek 8188A dongle with wheezy due to frequent dropouts and lockups. While th...
by G109B
Sun Sep 15, 2013 11:24 am
Forum: Troubleshooting
Topic: Tired of SD card corruption – What to do?
Replies: 20
Views: 19013

Re: Tired of SD card corruption – What to do?

Several days and several websites later ... still OK, no SD Card corruptions.
by G109B
Thu Sep 12, 2013 10:06 am
Forum: Troubleshooting
Topic: Tired of SD card corruption – What to do?
Replies: 20
Views: 19013

Re: Tired of SD card corruption – What to do?

I ran rpi-update yesterday. Maybe it is early days yet, but the improvement seems dramatic. Prevously writing a whole website via ftp to the pi was guaranteed to corrupt the SD Card, wrecking inodes which prevented access to all the commands in /bin and /usr/bin. Not only that, but the transfers see...

Go to advanced search